| /xnu-11215/bsd/net/ |
| H A D | ether_if_module.c | 416 *ether_type_p = new_eh.ether_type = encap.evle_proto; in ether_remove_vlan_encapsulation() 452 u_short ether_type = eh->ether_type; in ether_demux() local 506 } else if (ether_type == htons(ETHERTYPE_VLAN)) { in ether_demux() 510 ðer_type)) { in ether_demux() 525 if (ether_type == htons(ETHERTYPE_ARP)) { in ether_demux() 534 if (ntohs(ether_type) <= 1500) { in ether_demux() 559 (ed[i].data[0] == ether_type)) { in ether_demux() 606 const char *ether_type) in ether_frameout() 610 return ether_frameout_extended(ifp, m, ndest, edst, ether_type, in ether_frameout() 632 const uint8_t *frame_type = dlil_frame_type(ether_type); in ether_frameout_extended() [all …]
|
| H A D | ether_inet6_pr_module.c | 115 u_int16_t ether_type; in ether_inet6_input() local 117 bcopy(&eh->ether_type, ðer_type, sizeof(ether_type)); in ether_inet6_input() 119 if (ether_type == htons(ETHERTYPE_IPV6)) { in ether_inet6_input()
|
| H A D | ether_inet_pr_module.c | 199 if (__probable(eh->ether_type == htons(ETHERTYPE_IP))) { in ether_inet_input() 219 if (eh->ether_type == htons(ETHERTYPE_ARP)) { in ether_inet_input() 279 bcopy(&eh->ether_type, frame_type, sizeof(eh->ether_type)); in ether_inet_pre_output() 465 eh->ether_type = htons(ETHERTYPE_ARP); in ether_inet_arp()
|
| H A D | ndrv.h | 94 u_int16_t ether_type; member
|
| H A D | ethernet.h | 94 u_short ether_type; member
|
| H A D | if_llc.h | 105 u_int16_t ether_type; member
|
| H A D | if_bridge.c | 4414 switch (eh->ether_type) { 4728 switch (ether_type) { 4750 ether_type = ntohs(eh->ether_type); 4751 switch (ether_type) { 8605 switch (eh->ether_type) { 9715 u_int16_t ether_type; 9733 ether_type = ntohs(eh1->ether_type); 9745 ether_type = htons(llc2->llc_un.type_snap.ether_type); 9759 switch (ether_type) { 9792 switch (ether_type) { [all …]
|
| H A D | bridgestp.c | 323 eh->ether_type = htons(sizeof(bpdu)); in bstp_transmit_tcn() 444 eh->ether_type = htons(BSTP_BPDU_STP_LEN); in bstp_send_bpdu() 453 eh->ether_type = htons(BSTP_BPDU_RSTP_LEN); in bstp_send_bpdu() 562 len = ntohs(eh->ether_type); in bstp_input()
|
| H A D | if_bond.c | 1059 offsetof(struct ether_header, ether_type)); /* dst+src ether */ in get_bpf_header() 1062 evl_p->evl_proto = eh_p->ether_type; /* proto */ in get_bpf_header() 1334 | eh_p->ether_type; in ether_header_hash() 1522 switch (ntohs(eh_p->ether_type)) { in get_packet_hash() 1753 eh_p->ether_type == htons(IEEE8023AD_SLOW_PROTO_ETHERTYPE); in is_slow_proto_multicast() 1922 eh_p->ether_type = htons(IEEE8023AD_SLOW_PROTO_ETHERTYPE); in bondport_slow_proto_transmit()
|
| H A D | kpi_interface.h | 3684 u_int8_t ether_type; /* Ether type IPv4 or IPv6 */ member
|
| H A D | kpi_interface.c | 3447 if (frame->ether_type != IFNET_KEEPALIVE_OFFLOAD_FRAME_ETHERTYPE_IPV4 && in ifnet_notify_tcp_keepalive_offload_timeout() 3448 frame->ether_type != IFNET_KEEPALIVE_OFFLOAD_FRAME_ETHERTYPE_IPV6) { in ifnet_notify_tcp_keepalive_offload_timeout()
|
| H A D | if_fake.c | 651 offsetof(struct ether_header, ether_type)); /* dst+src ether */ in get_bpf_header() 654 evl_p->evl_proto = eh_p->ether_type; /* proto */ in get_bpf_header()
|
| H A D | dlil.c | 5021 etype = ntohs(eh->ether_type); in ifnet_enqueue_ifclassq() 5114 etype = ntohs(eh->ether_type); in ifnet_enqueue_ifclassq() 6085 if (ntohs(ehp->ether_type) != ETHERTYPE_IPV6) { in dlil_input_packet_list_common() 6125 eh.ether_type = htons(ETHERTYPE_IP); in dlil_input_packet_list_common()
|
| /xnu-11215/bsd/skywalk/nexus/flowswitch/ |
| H A D | fsw_ethernet.c | 82 fr->fr_eth.ether_type = ((fr->fr_af == AF_INET) ? in fsw_ethernet_ctor() 93 SK_KVA(fr), ntohs(fr->fr_eth.ether_type), in fsw_ethernet_ctor() 597 uint16_t ether_type = ntohs(eh->ether_type); in fsw_ethernet_demux() local 598 switch (ether_type) { in fsw_ethernet_demux()
|
| /xnu-11215/tests/ |
| H A D | net_bridge.c | 524 uint16_t ether_type; in ethernet_frame_validate() local 530 ether_type = ntohs(eh_p->ether_type); in ethernet_frame_validate() 537 ether_dst, ether_src, ether_type); in ethernet_frame_validate() 539 switch (ether_type) { in ethernet_frame_validate() 630 eh_p->ether_type = htons(ETHERTYPE_ARP); in ethernet_arp_frame_populate() 664 uint16_t ether_type; in ethernet_frame_get_udp4_payload() local 676 ether_type = ntohs(eh_p->ether_type); in ethernet_frame_get_udp4_payload() 678 T_ASSERT_EQ((int)ether_type, ETHERTYPE_IP, NULL); in ethernet_frame_get_udp4_payload() 712 uint16_t ether_type; in ethernet_frame_get_udp6_payload() local 724 ether_type = ntohs(eh_p->ether_type); in ethernet_frame_get_udp6_payload() [all …]
|
| H A D | net_test_lib.c | 238 eh_p->ether_type = htons(ETHERTYPE_IP); in ethernet_udp4_frame_populate() 307 eh_p->ether_type = htons(ETHERTYPE_IPV6); in ethernet_udp6_frame_populate()
|
| /xnu-11215/osfmk/kdp/ |
| H A D | kdp_udp.h | 57 u_short ether_type; member
|
| H A D | kdp_udp.c | 607 eh->ether_type = htons(ETHERTYPE_IP); in kdp_reply() 683 eh->ether_type = htons(ETHERTYPE_IP); in kdp_send() 917 eh->ether_type = htons(ETHERTYPE_ARP); in kdp_arp_reply() 956 if (ntohs(eh->ether_type) == ETHERTYPE_ARP) { in kdp_poll() 968 if (ntohs(eh->ether_type) != ETHERTYPE_IP) { in kdp_poll() 1036 eh->ether_type = htons(ETHERTYPE_ARP); in transmit_ARP_request() 1609 eh->ether_type = htons(ETHERTYPE_IP); in create_panic_header()
|
| /xnu-11215/bsd/skywalk/nexus/netif/ |
| H A D | nx_netif_flow.c | 144 etype = eh->ether_type; in netif_flow_ethertype_info() 146 bcopy(&eh->ether_type, &etype, sizeof(etype)); in netif_flow_ethertype_info() 228 bcopy(&eh->ether_type, &etype, sizeof(etype)); in netif_flow_ipv6_ula_info()
|
| /xnu-11215/tests/skywalk/ |
| H A D | skt_netifdirect.c | 218 eth_hdr.ether_type = htons(ETHERTYPE_IPV6); in skt_netif_ipv6_udp_frame_populate() 273 assert(ntohs(eth_hdr->ether_type) == ETHERTYPE_IPV6); in skt_netif_ipv6_udp_frame_process()
|
| H A D | skt_filter.c | 252 eh->ether_type = htons(args->ethertype); in custom_ether_build_packet() 378 etype = ntohs(eh->ether_type); in custom_ether_verify()
|
| /xnu-11215/bsd/netinet/ |
| H A D | ip_compat.h | 637 __u16 ether_type;
|
| H A D | udp_usrreq.c | 3023 frame->ether_type = in udp_fill_keepalive_offload_frames() 3090 frame->ether_type = in udp_fill_keepalive_offload_frames()
|
| /xnu-11215/bsd/skywalk/nexus/flowswitch/flow/ |
| H A D | flow_route.c | 1143 ntohs(fr->fr_eth.ether_type), in flow_route_ev_callback()
|
| /xnu-11215/bsd/netinet6/ |
| H A D | ipsec.c | 5382 frame->ether_type = IFNET_KEEPALIVE_OFFLOAD_FRAME_ETHERTYPE_IPV6; in ipsec_fill_offload_frame() 5456 frame->ether_type = IFNET_KEEPALIVE_OFFLOAD_FRAME_ETHERTYPE_IPV4; in ipsec_fill_offload_frame()
|