Home
last modified time | relevance | path

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

/net/bluetooth/bnep/
A Dcore.c55 if (ether_addr_equal(dst, s->eh.h_source)) in __bnep_get_session()
358 if (ntohs(s->eh.h_proto) == ETH_P_8021Q) { in bnep_rx_frame()
377 __skb_put_data(nskb, &s->eh, ETH_HLEN); in bnep_rx_frame()
381 __skb_put_data(nskb, s->eh.h_dest, ETH_ALEN); in bnep_rx_frame()
422 struct ethhdr *eh = (void *) skb->data; in bnep_tx_frame() local
438 if (compress_src && ether_addr_equal(eh->h_dest, s->eh.h_source)) in bnep_tx_frame()
441 if (compress_dst && ether_addr_equal(eh->h_source, s->eh.h_dest)) in bnep_tx_frame()
596 memcpy(s->eh.h_dest, &src, ETH_ALEN); in bnep_add_connection()
597 memcpy(s->eh.h_source, &dst, ETH_ALEN); in bnep_add_connection()
598 eth_hw_addr_set(dev, s->eh.h_dest); in bnep_add_connection()
[all …]
A 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()
A Dbnep.h154 struct ethhdr eh; member
/net/ethernet/
A Deth.c398 struct ethhdr *eh, *eh2; in eth_gro_receive() local
404 hlen = off_eth + sizeof(*eh); in eth_gro_receive()
405 eh = skb_gro_header(skb, hlen, off_eth); in eth_gro_receive()
406 if (unlikely(!eh)) in eth_gro_receive()
416 if (compare_ether_header(eh, eh2)) { in eth_gro_receive()
422 type = eh->h_proto; in eth_gro_receive()
430 skb_gro_pull(skb, sizeof(*eh)); in eth_gro_receive()
431 skb_gro_postpull_rcsum(skb, eh, sizeof(*eh)); in eth_gro_receive()
446 struct ethhdr *eh = (struct ethhdr *)(skb->data + nhoff); in eth_gro_complete() local
447 __be16 type = eh->h_proto; in eth_gro_complete()
[all …]
/net/802/
A Dstp.c33 const struct ethhdr *eh = eth_hdr(skb); in stp_pdu_rcv() local
42 if (eh->h_dest[5] >= GARP_ADDR_MIN && eh->h_dest[5] <= GARP_ADDR_MAX) { in stp_pdu_rcv()
43 proto = rcu_dereference(garp_protos[eh->h_dest[5] - in stp_pdu_rcv()
46 !ether_addr_equal(eh->h_dest, proto->group_address)) in stp_pdu_rcv()
/net/netfilter/
A Dxt_esp.c38 const struct ip_esp_hdr *eh; in esp_mt() local
46 eh = skb_header_pointer(skb, par->thoff, sizeof(_esp), &_esp); in esp_mt()
47 if (eh == NULL) { in esp_mt()
56 return spi_match(espinfo->spis[0], espinfo->spis[1], ntohl(eh->spi), in esp_mt()
A Dnf_log_syslog.c484 const struct ip_esp_hdr *eh; in dump_ipv4_packet() local
494 eh = skb_header_pointer(skb, iphoff + ih->ihl * 4, in dump_ipv4_packet()
496 if (!eh) { in dump_ipv4_packet()
503 nf_log_buf_add(m, "SPI=0x%x ", ntohl(eh->spi)); in dump_ipv4_packet()
657 const struct ip_esp_hdr *eh; in dump_ipv6_packet() local
668 eh = skb_header_pointer(skb, ptr, sizeof(_esph), in dump_ipv6_packet()
670 if (!eh) { in dump_ipv6_packet()
678 ntohl(eh->spi)); in dump_ipv6_packet()
/net/ncsi/
A Dncsi-cmd.c325 struct ethhdr *eh; in ncsi_xmit_cmd() local
379 eh = skb_push(nr->cmd, sizeof(*eh)); in ncsi_xmit_cmd()
380 eh->h_proto = htons(ETH_P_NCSI); in ncsi_xmit_cmd()
381 eth_broadcast_addr(eh->h_dest); in ncsi_xmit_cmd()
388 memcpy(eh->h_source, nca->ndp->ndev.dev->dev_addr, ETH_ALEN); in ncsi_xmit_cmd()
390 eth_broadcast_addr(eh->h_source); in ncsi_xmit_cmd()
/net/ipv4/
A Dip_tunnel_core.c103 struct ethhdr *eh; in __iptunnel_pull_header() local
108 eh = (struct ethhdr *)skb->data; in __iptunnel_pull_header()
109 if (likely(eth_proto_is_802_3(eh->h_proto))) in __iptunnel_pull_header()
110 skb->protocol = eh->h_proto; in __iptunnel_pull_header()
203 struct ethhdr eh; in iptunnel_pmtud_build_icmp() local
209 skb_copy_bits(skb, skb_mac_offset(skb), &eh, ETH_HLEN); in iptunnel_pmtud_build_icmp()
251 eth_header(skb, skb->dev, ntohs(eh.h_proto), eh.h_source, eh.h_dest, 0); in iptunnel_pmtud_build_icmp()
296 struct ethhdr eh; in iptunnel_pmtud_build_icmpv6() local
303 skb_copy_bits(skb, skb_mac_offset(skb), &eh, ETH_HLEN); in iptunnel_pmtud_build_icmpv6()
344 eth_header(skb, skb->dev, ntohs(eh.h_proto), eh.h_source, eh.h_dest, 0); in iptunnel_pmtud_build_icmpv6()
/net/ipv6/
A Dioam6_iptunnel.c29 struct ipv6_hopopt_hdr eh; member
221 tuninfo->eh.hdrlen = ((sizeof(*tuninfo) + len_aligned) >> 3) - 1; in ioam6_build_state()
271 hdrlen = (tuninfo->eh.hdrlen + 1) << 3; in ioam6_do_inline()
287 tuninfo->eh.nexthdr = hdr->nexthdr; in ioam6_do_inline()
311 hdrlen = (tuninfo->eh.hdrlen + 1) << 3; in ioam6_do_encap()
325 tuninfo->eh.nexthdr = NEXTHDR_IPV6; in ioam6_do_encap()

Completed in 25 milliseconds