Lines Matching refs:req
326 req = self._make_discover(self.hwaddr, [('requested_addr', addr)],
328 resp = self._get_response(req)
361 req = self._make_request(self.hwaddr, req_addr, self.server_addr)
362 resp = self._get_response(req)
364 bootp = assert_bootp_response(resp, req)
413 req = self._make_request(self.hwaddr, None, None,
418 resp = self._get_response(req)
421 asserts.assert_equal(hostname1, getopt(req, 'hostname'))
424 setopt(req, 'hostname', hostname2)
425 resp = self._get_response(req)
428 asserts.assert_equal(hostname2, getopt(req, 'hostname'))
532 req = self._make_request(self.hwaddr, reqaddr=None, siaddr=None,
535 resp = self._get_response(req)
610 req = self._make_discover(self.hwaddr,
619 req.getlayer(BOOTP).secs = 2
620 resp = self._get_response(req)
639 req = self._make_discover(self.hwaddr,
648 req.getlayer(BOOTP).secs = 2
649 resp = self._get_response(req)
655 req = self._make_request(self.hwaddr, None, None,
665 req.getlayer(BOOTP).secs = 5
666 resp = self._get_response(req)
674 req = self._make_request(self.hwaddr, None, None,
683 resp = self._get_response(req)
706 req = self._make_discover(self.hwaddr, bcastbit=True,
714 req.getlayer(BOOTP).secs = 2
715 resp = self._get_response(req)
721 req = self._make_request(self.hwaddr, None, None, bcastbit=True,
734 resp = self._get_response(req)
740 req = self._make_request(self.hwaddr, None, None, bcastbit=bcast,
753 resp = self._get_response(req)
786 req = self._make_discover(self.hwaddr,
792 resp = self._get_response(req)
801 req = self._make_request(self.hwaddr, None, None,
808 resp = self._get_response(req)
814 req = self._make_request(self.hwaddr, None, None,
822 resp = self._get_response(req)
999 def assert_bootp_response(resp, req): argument
1005 asserts.assert_equal(req.getlayer(BOOTP).xid, bootp.xid, 'Invalid XID')