Lines Matching defs:opt_hdr
740 struct dhcp_option_hdr opt_hdr;
772 opt_hdr.code = htons(DHO_CLIENTID);
773 opt_hdr.len = htons(sizeof(struct dhcp_duid));
774 memcpy(p, &opt_hdr, sizeof(struct dhcp_option_hdr));
785 opt_hdr.code = htons(DHO_SERVERID);
786 opt_hdr.len = htons(iface->serverid_len);
787 memcpy(p, &opt_hdr, sizeof(struct dhcp_option_hdr));
799 opt_hdr.code = htons(DHO_IA_PD);
800 opt_hdr.len = htons(sizeof(struct dhcp_iapd) +
803 memcpy(p, &opt_hdr, sizeof(struct dhcp_option_hdr));
811 opt_hdr.code = htons(DHO_IA_PREFIX);
812 opt_hdr.len = htons(sizeof(struct dhcp_iaprefix));
813 memcpy(p, &opt_hdr, sizeof(struct dhcp_option_hdr));
841 opt_hdr.code = htons(DHO_ORO);
842 opt_hdr.len = htons(sizeof(request_option_code) * nitems(options));
843 memcpy(p, &opt_hdr, sizeof(struct dhcp_option_hdr));
851 opt_hdr.code = htons(DHO_ELAPSED_TIME);
852 opt_hdr.len = htons(2);
853 memcpy(p, &opt_hdr, sizeof(struct dhcp_option_hdr));
860 opt_hdr.code = htons(DHO_RAPID_COMMIT);
861 opt_hdr.len = htons(0);
862 memcpy(p, &opt_hdr, sizeof(struct dhcp_option_hdr));
866 opt_hdr.code = htons(DHO_VENDOR_CLASS);
867 opt_hdr.len = htons(sizeof(struct dhcp_vendor_class) +
869 memcpy(p, &opt_hdr, sizeof(struct dhcp_option_hdr));