dhcpcanon/dhcpcapfsm.py
def send_discover(self):
        """Send discover."""
        assert self.client
        assert self.current_state == STATE_INIT or \
            self.current_state == STATE_SELECTING
        pkt = self.client.gen_discover()
        sendp(pkt)
        # FIXME:20 check that this is correct,: all or only discover?
        if self.discover_attempts < MAX_ATTEMPTS_DISCOVER:
            self.discover_attempts += 1
        timeout = gen_timeout_resend(self.discover_attempts)
        self.set_timeout(self.current_state,
                         self.timeout_selecting,
                         timeout)
def send_discover(self):
        assert self.client
        assert self.current_state == STATE_INIT or \
            self.current_state == STATE_SELECTING
        pkt = self.client.gen_discover()
        sendp(pkt)
        # FIXME:20 check that this is correct,: all or only discover?
        if self.discover_attempts < MAX_ATTEMPTS_DISCOVER:
            self.discover_attempts += 1
        timeout = gen_timeout_resend(self.discover_attempts)
        self.set_timeout(self.current_state,
                         self.timeout_selecting,
                         timeout)
def send_discover ( self ) : assert self . client assert self . current_state == STATE_INIT or self . current_state == STATE_SELECTING pkt = self . client . gen_discover ( ) sendp ( pkt ) # FIXME:20 check that this is correct,: all or only discover? if self . discover_attempts < MAX_ATTEMPTS_DISCOVER : self . discover_attempts += 1 timeout = gen_timeout_resend ( self . discover_attempts ) self . set_timeout ( self . current_state , self . timeout_selecting , timeout )
Send discover.
Send discover .