Home
last modified time | relevance | path

Searched refs:ether_type (Results 1 – 25 of 27) sorted by relevance

12

/xnu-11215/bsd/net/
H A Dether_if_module.c416 *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 &ether_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 Dether_inet6_pr_module.c115 u_int16_t ether_type; in ether_inet6_input() local
117 bcopy(&eh->ether_type, &ether_type, sizeof(ether_type)); in ether_inet6_input()
119 if (ether_type == htons(ETHERTYPE_IPV6)) { in ether_inet6_input()
H A Dether_inet_pr_module.c199 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 Dndrv.h94 u_int16_t ether_type; member
H A Dethernet.h94 u_short ether_type; member
H A Dif_llc.h105 u_int16_t ether_type; member
H A Dif_bridge.c4414 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 Dbridgestp.c323 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 Dif_bond.c1059 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 Dkpi_interface.h3684 u_int8_t ether_type; /* Ether type IPv4 or IPv6 */ member
H A Dkpi_interface.c3447 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 Dif_fake.c651 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 Ddlil.c5021 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 Dfsw_ethernet.c82 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 Dnet_bridge.c524 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 Dnet_test_lib.c238 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 Dkdp_udp.h57 u_short ether_type; member
H A Dkdp_udp.c607 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 Dnx_netif_flow.c144 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 Dskt_netifdirect.c218 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 Dskt_filter.c252 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 Dip_compat.h637 __u16 ether_type;
H A Dudp_usrreq.c3023 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 Dflow_route.c1143 ntohs(fr->fr_eth.ether_type), in flow_route_ev_callback()
/xnu-11215/bsd/netinet6/
H A Dipsec.c5382 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()

12