Searched refs:RFC_MAGIC_SIZE (Results 1 - 3 of 3) sorted by relevance

/macosx-10.5.8/xnu-1228.15.4/bsd/netinet/
H A Ddhcp_options.c379 if (len < (sizeof(*pkt) + RFC_MAGIC_SIZE)) {
381 len, (int)sizeof(*pkt) + RFC_MAGIC_SIZE));
384 if (bcmp(pkt->dp_options, rfc_magic, RFC_MAGIC_SIZE)) {
388 if (dhcpol_parse_buffer(options, pkt->dp_options + RFC_MAGIC_SIZE,
389 len - sizeof(*pkt) - RFC_MAGIC_SIZE) == FALSE)
H A Ddhcp_options.h66 #define RFC_MAGIC_SIZE 4 /* bytes */ macro
H A Din_dhcp.c212 uint8_t rfc_magic[RFC_MAGIC_SIZE] = RFC_OPTIONS_MAGIC;
224 bcopy(rfc_magic, request->dp_options, RFC_MAGIC_SIZE);
225 dhcpoa_init(options_p, request->dp_options + RFC_MAGIC_SIZE,
226 request_size - sizeof(struct dhcp) - RFC_MAGIC_SIZE);
536 request_size = sizeof(*request) + RFC_MAGIC_SIZE
742 request_size = sizeof(*request) + RFC_MAGIC_SIZE

Completed in 29 milliseconds