• Home
  • Raw
  • Download

Lines Matching refs:set_field

518         packet.set_field(FIELD_OP, FIELD_VALUE_OP_CLIENT_REQUEST)
519 packet.set_field(FIELD_HWTYPE, FIELD_VALUE_HWTYPE_10MB_ETH)
520 packet.set_field(FIELD_HWADDR_LEN, FIELD_VALUE_HWADDR_LEN_10MB_ETH)
521 packet.set_field(FIELD_RELAY_HOPS, 0)
522 packet.set_field(FIELD_TRANSACTION_ID, random.getrandbits(32))
523 packet.set_field(FIELD_TIME_SINCE_START, 0)
524 packet.set_field(FIELD_FLAGS, 0)
525 packet.set_field(FIELD_CLIENT_IP, IPV4_NULL_ADDRESS)
526 packet.set_field(FIELD_YOUR_IP, IPV4_NULL_ADDRESS)
527 packet.set_field(FIELD_SERVER_IP, IPV4_NULL_ADDRESS)
528 packet.set_field(FIELD_GATEWAY_IP, IPV4_NULL_ADDRESS)
529 packet.set_field(FIELD_CLIENT_HWADDR, hwmac_addr)
530 packet.set_field(FIELD_MAGIC_COOKIE, FIELD_VALUE_MAGIC_COOKIE)
545 packet.set_field(FIELD_OP, FIELD_VALUE_OP_SERVER_RESPONSE)
546 packet.set_field(FIELD_HWTYPE, FIELD_VALUE_HWTYPE_10MB_ETH)
547 packet.set_field(FIELD_HWADDR_LEN, FIELD_VALUE_HWADDR_LEN_10MB_ETH)
549 packet.set_field(FIELD_RELAY_HOPS, 0)
550 packet.set_field(FIELD_TRANSACTION_ID, transaction_id)
551 packet.set_field(FIELD_TIME_SINCE_START, 0)
552 packet.set_field(FIELD_FLAGS, 0)
553 packet.set_field(FIELD_CLIENT_IP, IPV4_NULL_ADDRESS)
554 packet.set_field(FIELD_YOUR_IP, offer_ip)
555 packet.set_field(FIELD_SERVER_IP, server_ip)
556 packet.set_field(FIELD_GATEWAY_IP, IPV4_NULL_ADDRESS)
557 packet.set_field(FIELD_CLIENT_HWADDR, hwmac_addr)
558 packet.set_field(FIELD_MAGIC_COOKIE, FIELD_VALUE_MAGIC_COOKIE)
567 packet.set_field(FIELD_OP, FIELD_VALUE_OP_CLIENT_REQUEST)
568 packet.set_field(FIELD_HWTYPE, FIELD_VALUE_HWTYPE_10MB_ETH)
569 packet.set_field(FIELD_HWADDR_LEN, FIELD_VALUE_HWADDR_LEN_10MB_ETH)
571 packet.set_field(FIELD_RELAY_HOPS, 0)
572 packet.set_field(FIELD_TRANSACTION_ID, transaction_id)
573 packet.set_field(FIELD_TIME_SINCE_START, 0)
574 packet.set_field(FIELD_FLAGS, 0)
575 packet.set_field(FIELD_CLIENT_IP, IPV4_NULL_ADDRESS)
576 packet.set_field(FIELD_YOUR_IP, IPV4_NULL_ADDRESS)
577 packet.set_field(FIELD_SERVER_IP, IPV4_NULL_ADDRESS)
578 packet.set_field(FIELD_GATEWAY_IP, IPV4_NULL_ADDRESS)
579 packet.set_field(FIELD_CLIENT_HWADDR, hwmac_addr)
580 packet.set_field(FIELD_MAGIC_COOKIE, FIELD_VALUE_MAGIC_COOKIE)
591 packet.set_field(FIELD_OP, FIELD_VALUE_OP_SERVER_RESPONSE)
592 packet.set_field(FIELD_HWTYPE, FIELD_VALUE_HWTYPE_10MB_ETH)
593 packet.set_field(FIELD_HWADDR_LEN, FIELD_VALUE_HWADDR_LEN_10MB_ETH)
595 packet.set_field(FIELD_RELAY_HOPS, 0)
596 packet.set_field(FIELD_TRANSACTION_ID, transaction_id)
597 packet.set_field(FIELD_TIME_SINCE_START, 0)
598 packet.set_field(FIELD_FLAGS, 0)
599 packet.set_field(FIELD_CLIENT_IP, IPV4_NULL_ADDRESS)
600 packet.set_field(FIELD_YOUR_IP, granted_ip)
601 packet.set_field(FIELD_SERVER_IP, server_ip)
602 packet.set_field(FIELD_GATEWAY_IP, IPV4_NULL_ADDRESS)
603 packet.set_field(FIELD_CLIENT_HWADDR, hwmac_addr)
604 packet.set_field(FIELD_MAGIC_COOKIE, FIELD_VALUE_MAGIC_COOKIE)
618 packet.set_field(FIELD_OP, FIELD_VALUE_OP_SERVER_RESPONSE)
619 packet.set_field(FIELD_HWTYPE, FIELD_VALUE_HWTYPE_10MB_ETH)
620 packet.set_field(FIELD_HWADDR_LEN, FIELD_VALUE_HWADDR_LEN_10MB_ETH)
622 packet.set_field(FIELD_RELAY_HOPS, 0)
623 packet.set_field(FIELD_TRANSACTION_ID, transaction_id)
624 packet.set_field(FIELD_TIME_SINCE_START, 0)
625 packet.set_field(FIELD_FLAGS, 0)
626 packet.set_field(FIELD_CLIENT_IP, IPV4_NULL_ADDRESS)
627 packet.set_field(FIELD_YOUR_IP, IPV4_NULL_ADDRESS)
628 packet.set_field(FIELD_SERVER_IP, IPV4_NULL_ADDRESS)
629 packet.set_field(FIELD_GATEWAY_IP, IPV4_NULL_ADDRESS)
630 packet.set_field(FIELD_CLIENT_HWADDR, hwmac_addr)
631 packet.set_field(FIELD_MAGIC_COOKIE, FIELD_VALUE_MAGIC_COOKIE)
743 def set_field(self, field, field_value): member in DhcpPacket