Searched refs:dhcp (Results 1 – 6 of 6) sorted by relevance
| /xnu-8019.80.24/bsd/netinet/ |
| H A D | dhcp.h | 42 struct dhcp { struct 63 struct dhcp dhcp; argument 68 #define DHCP_PAYLOAD_MIN (sizeof(struct dhcp) + DHCP_OPTIONS_MIN)
|
| H A D | dhcp_options.c | 361 dhcpol_parse_packet(dhcpol_t * options, const struct dhcp * pkt, int len) in dhcpol_parse_packet() 477 struct dhcp * pkt = (struct dhcp *)buf; in main()
|
| H A D | dhcp_options.h | 197 const struct dhcp * pkt, int len);
|
| /xnu-8019.80.24/bsd/kern/ |
| H A D | netboot.c | 277 if (pkt != NULL && pkt_len >= (int)sizeof(struct dhcp)) { in get_root_path() 282 if (pkt != NULL && pkt_len >= (int)sizeof(struct dhcp)) { in get_root_path() 290 const struct dhcp * reply; in get_root_path() 292 reply = (const struct dhcp *)pkt; in get_root_path() 480 if (pkt != NULL && pkt_len >= (int)sizeof(struct dhcp)) { in get_ip_parameters() 484 if (pkt != NULL && pkt_len >= (int)sizeof(struct dhcp)) { in get_ip_parameters() 492 const struct dhcp * reply; in get_ip_parameters() 494 reply = (const struct dhcp *)pkt; in get_ip_parameters()
|
| /xnu-8019.80.24/tests/ |
| H A D | net_bridge.c | 2631 struct bootp * dhcp; in make_dhcp_payload() local 2636 dhcp = (struct bootp *)payload; in make_dhcp_payload() 2637 bzero(dhcp, payload_length); in make_dhcp_payload() 2638 dhcp->bp_op = BOOTREQUEST; in make_dhcp_payload() 2639 dhcp->bp_htype = ARPHRD_ETHER; in make_dhcp_payload() 2640 dhcp->bp_hlen = sizeof(*eaddr); in make_dhcp_payload() 2641 bcopy(eaddr->octet, dhcp->bp_chaddr, sizeof(eaddr->octet)); in make_dhcp_payload()
|
| /xnu-8019.80.24/bsd/net/ |
| H A D | if_bridge.c | 7094 struct dhcp dhcp; 7100 error = mbuf_copydata(m, offset, sizeof(struct dhcp), &dhcp); 7105 if (dhcp.dp_op != BOOTREQUEST) { 7112 if (dhcp.dp_htype != ARPHRD_ETHER) { 7116 if (dhcp.dp_hlen != ETHER_ADDR_LEN) { 7120 if (bcmp(dhcp.dp_chaddr, bif->bif_hf_hwsrc, 7128 if (dhcp.dp_ciaddr.s_addr != bif->bif_hf_ipsrc.s_addr && 7129 dhcp.dp_ciaddr.s_addr != INADDR_ANY) { 7292 minlen += sizeof(struct dhcp); 7932 offset += sizeof(struct udphdr) + offsetof(struct dhcp, dp_flags); [all …]
|