Home
last modified time | relevance | path

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

/Zephyr-latest/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-latest/subsys/net/l2/ethernet/
Dethernet.c550 uint32_t ptype) in ethernet_fill_header() argument
596 if (ptype == htons(NET_ETH_PTYPE_ARP) || in ethernet_fill_header()
606 hdr_vlan->type = ptype; in ethernet_fill_header()
622 if (ptype == htons(NET_ETH_PTYPE_ARP) || in ethernet_fill_header()
632 hdr->type = ptype; in ethernet_fill_header()
684 uint16_t ptype = 0; in ethernet_send() local
711 ptype = htons(NET_ETH_PTYPE_ARP); in ethernet_send()
722 ptype = htons(NET_ETH_PTYPE_ARP); in ethernet_send()
725 ptype = htons(NET_ETH_PTYPE_IP); in ethernet_send()
730 ptype = htons(NET_ETH_PTYPE_IPV6); in ethernet_send()
[all …]
/Zephyr-latest/include/zephyr/net/
Dcapture.h321 uint16_t ptype);
326 uint16_t ptype) in net_capture_data() argument
332 ARG_UNUSED(ptype); in net_capture_data()