Home
last modified time | relevance | path

Searched refs:ptype (Results 1 – 11 of 11) sorted by relevance

/Zephyr-4.1.0/include/zephyr/net/
Dnet_core.h201 uint16_t ptype,
204 uint16_t ptype; member
207 #define NET_L3_GET_NAME(l3_name, ptype) __net_l3_register_##l3_name##_##ptype argument
212 .ptype = _ptype, \
Dcapture.h321 uint16_t ptype);
326 uint16_t ptype) in net_capture_data() argument
332 ARG_UNUSED(ptype); in net_capture_data()
Dethernet.h1280 #define ETH_NET_L3_REGISTER(name, ptype, handler) \ argument
1281 NET_L3_REGISTER(&NET_L2_GET_NAME(ETHERNET), name, ptype, handler)
/Zephyr-4.1.0/subsys/net/lib/capture/
Dcooked.c148 uint16_t ptype; in interface_recv() local
155 ptype = net_pkt_ll_proto_type(pkt); in interface_recv()
160 if (ctx->link_types[i] == ptype) { in interface_recv()
169 NET_DBG("Handler found for packet type 0x%04x", ptype); in interface_recv()
184 NET_DBG("No handler found for packet type 0x%04x", ptype); in interface_recv()
316 uint16_t ptype) in create_sll_header() argument
329 hdr1.sll_protocol = htons(ptype); in create_sll_header()
335 hdr2.sll2_protocol = htons(ptype); in create_sll_header()
370 uint16_t ptype) in net_capture_data() argument
422 ret = create_sll_header(iface, pkt, ctx, type, ptype); in net_capture_data()
[all …]
/Zephyr-4.1.0/subsys/net/l2/ethernet/
Dethernet.c385 if (l3->ptype != type || l3->l2 != &NET_L2_GET_NAME(ETHERNET) || in ethernet_recv()
434 uint16_t ptype, in ethernet_ip_recv() argument
439 if (ptype == NET_ETH_PTYPE_IP) { in ethernet_ip_recv()
447 } else if (ptype == NET_ETH_PTYPE_IPV6) { in ethernet_ip_recv()
586 uint32_t ptype) in ethernet_fill_header() argument
632 if (ptype == htons(NET_ETH_PTYPE_ARP) || in ethernet_fill_header()
642 hdr_vlan->type = ptype; in ethernet_fill_header()
658 if (ptype == htons(NET_ETH_PTYPE_ARP) || in ethernet_fill_header()
668 hdr->type = ptype; in ethernet_fill_header()
703 uint16_t ptype = htons(net_pkt_ll_proto_type(pkt)); in ethernet_send() local
[all …]
Darp.c1027 uint16_t ptype, in arp_recv() argument
1031 ARG_UNUSED(ptype); in arp_recv()
/Zephyr-4.1.0/subsys/net/lib/ptp/
Dptp.c118 static enum net_verdict ptp_recv(struct net_if *iface, uint16_t ptype, in ptp_recv() argument
122 ARG_UNUSED(ptype); in ptp_recv()
/Zephyr-4.1.0/subsys/net/l2/ethernet/lldp/
Dlldp.c273 static enum net_verdict net_lldp_recv(struct net_if *iface, uint16_t ptype, struct net_pkt *pkt) in net_lldp_recv() argument
279 ARG_UNUSED(ptype); in net_lldp_recv()
/Zephyr-4.1.0/tests/net/vlan/src/
Dmain.c179 uint16_t ptype; in eth_tx() local
186 net_pkt_read_be16(pkt, &ptype); in eth_tx()
187 zassert_equal(ptype, NET_ETH_PTYPE_IPV6, "Invalid ptype 0x%04x", ptype); in eth_tx()
/Zephyr-4.1.0/subsys/net/l2/ethernet/gptp/
Dgptp.c323 static enum net_verdict net_gptp_recv(struct net_if *iface, uint16_t ptype, in net_gptp_recv() argument
328 ARG_UNUSED(ptype); in net_gptp_recv()
/Zephyr-4.1.0/modules/hostap/src/
Dsupp_main.c1223 static enum net_verdict eapol_recv(struct net_if *iface, uint16_t ptype, in eapol_recv() argument
1227 ARG_UNUSED(ptype); in eapol_recv()