Home
last modified time | relevance | path

Searched refs:eh (Results 1 – 10 of 10) sorted by relevance

/net/bluetooth/bnep/
Dcore.c55 if (ether_addr_equal(dst, s->eh.h_source)) in __bnep_get_session()
349 s->eh.h_proto = get_unaligned((__be16 *) (skb->data - 2)); in bnep_rx_frame()
358 if (ntohs(s->eh.h_proto) == ETH_P_8021Q) { in bnep_rx_frame()
361 s->eh.h_proto = get_unaligned((__be16 *) (skb->data - 2)); in bnep_rx_frame()
377 memcpy(__skb_put(nskb, ETH_HLEN), &s->eh, ETH_HLEN); in bnep_rx_frame()
381 memcpy(__skb_put(nskb, ETH_ALEN), s->eh.h_dest, ETH_ALEN); in bnep_rx_frame()
383 put_unaligned(s->eh.h_proto, (__be16 *) __skb_put(nskb, 2)); in bnep_rx_frame()
389 memcpy(__skb_put(nskb, ETH_ALEN + 2), s->eh.h_source, in bnep_rx_frame()
396 put_unaligned(s->eh.h_proto, (__be16 *) __skb_put(nskb, 2)); in bnep_rx_frame()
424 struct ethhdr *eh = (void *) skb->data; in bnep_tx_frame() local
[all …]
Dnetdev.c124 struct ethhdr *eh = (void *) skb->data; in bnep_net_mc_filter() local
126 if ((eh->h_dest[0] & 1) && !test_bit(bnep_mc_hash(eh->h_dest), (ulong *) &s->mc_filter)) in bnep_net_mc_filter()
136 struct ethhdr *eh = (void *) skb->data; in bnep_net_eth_proto() local
137 u16 proto = ntohs(eh->h_proto); in bnep_net_eth_proto()
Dbnep.h164 struct ethhdr eh; member
/net/ethernet/
Deth.c404 struct ethhdr *eh, *eh2; in eth_gro_receive() local
411 hlen = off_eth + sizeof(*eh); in eth_gro_receive()
412 eh = skb_gro_header_fast(skb, off_eth); in eth_gro_receive()
414 eh = skb_gro_header_slow(skb, hlen, off_eth); in eth_gro_receive()
415 if (unlikely(!eh)) in eth_gro_receive()
426 if (compare_ether_header(eh, eh2)) { in eth_gro_receive()
432 type = eh->h_proto; in eth_gro_receive()
441 skb_gro_pull(skb, sizeof(*eh)); in eth_gro_receive()
442 skb_gro_postpull_rcsum(skb, eh, sizeof(*eh)); in eth_gro_receive()
456 struct ethhdr *eh = (struct ethhdr *)(skb->data + nhoff); in eth_gro_complete() local
[all …]
/net/802/
Dstp.c36 const struct ethhdr *eh = eth_hdr(skb); in stp_pdu_rcv() local
45 if (eh->h_dest[5] >= GARP_ADDR_MIN && eh->h_dest[5] <= GARP_ADDR_MAX) { in stp_pdu_rcv()
46 proto = rcu_dereference(garp_protos[eh->h_dest[5] - in stp_pdu_rcv()
49 !ether_addr_equal(eh->h_dest, proto->group_address)) in stp_pdu_rcv()
/net/netfilter/
Dxt_esp.c41 const struct ip_esp_hdr *eh; in esp_mt() local
49 eh = skb_header_pointer(skb, par->thoff, sizeof(_esp), &_esp); in esp_mt()
50 if (eh == NULL) { in esp_mt()
59 return spi_match(espinfo->spis[0], espinfo->spis[1], ntohl(eh->spi), in esp_mt()
/net/ncsi/
Dncsi-cmd.c309 struct ethhdr *eh; in ncsi_xmit_cmd() local
346 eh = (struct ethhdr *)skb_push(nr->cmd, sizeof(*eh)); in ncsi_xmit_cmd()
347 eh->h_proto = htons(ETH_P_NCSI); in ncsi_xmit_cmd()
348 eth_broadcast_addr(eh->h_dest); in ncsi_xmit_cmd()
349 eth_broadcast_addr(eh->h_source); in ncsi_xmit_cmd()
/net/ipv4/netfilter/
Dnf_log_ipv4.c226 const struct ip_esp_hdr *eh; in dump_ipv4_packet() local
235 eh = skb_header_pointer(skb, iphoff+ih->ihl*4, in dump_ipv4_packet()
237 if (eh == NULL) { in dump_ipv4_packet()
244 nf_log_buf_add(m, "SPI=0x%x ", ntohl(eh->spi)); in dump_ipv4_packet()
/net/ipv6/netfilter/
Dnf_log_ipv6.c166 const struct ip_esp_hdr *eh; in dump_ipv6_packet() local
179 eh = skb_header_pointer(skb, ptr, sizeof(_esph), in dump_ipv6_packet()
181 if (eh == NULL) { in dump_ipv6_packet()
189 ntohl(eh->spi)); in dump_ipv6_packet()
/net/ipv4/
Dip_tunnel_core.c107 struct ethhdr *eh; in __iptunnel_pull_header() local
112 eh = (struct ethhdr *)skb->data; in __iptunnel_pull_header()
113 if (likely(eth_proto_is_802_3(eh->h_proto))) in __iptunnel_pull_header()
114 skb->protocol = eh->h_proto; in __iptunnel_pull_header()