Searched refs:eth_hdr (Results 1 - 25 of 157) sorted by relevance

1234567

/linux-master/samples/bpf/
H A Dparse_simple.c20 struct eth_hdr { struct
30 struct eth_hdr *eth = data;
H A Dtest_cgrp2_tc.bpf.c13 struct eth_hdr { struct
31 struct eth_hdr *eth = data;
H A Dtc_l2_redirect_kern.c34 struct eth_hdr { struct
63 struct eth_hdr *eth = data;
114 struct eth_hdr *eth = data;
155 struct eth_hdr *eth = data;
210 struct eth_hdr *eth = data;
/linux-master/include/linux/
H A Dif_ether.h22 static inline struct ethhdr *eth_hdr(const struct sk_buff *skb) function
28 * skb_reset_mac_header() + eth_hdr()
/linux-master/net/ipv6/netfilter/
H A Dip6t_eui64.c33 if (eth_hdr(skb)->h_proto == htons(ETH_P_IPV6)) {
35 memcpy(eui64, eth_hdr(skb)->h_source, 3);
36 memcpy(eui64 + 5, eth_hdr(skb)->h_source + 3, 3);
/linux-master/drivers/scsi/qedf/
H A Dqedf_fip.c124 struct ethhdr *eth_hdr; local
137 eth_hdr = (struct ethhdr *)skb_mac_header(skb);
151 "dest=%pM op=%x sub=%x vlan=%04x.", eth_hdr->h_dest, op, sub,
170 struct ethhdr *eth_hdr; local
186 eth_hdr = (struct ethhdr *)skb_mac_header(skb);
193 skb, fiph, eth_hdr->h_source, eth_hdr->h_dest, op,
199 if (!ether_addr_equal(eth_hdr->h_dest, qedf->mac) &&
200 !ether_addr_equal(eth_hdr->h_dest, fcoe_all_enode) &&
201 !ether_addr_equal(eth_hdr
[all...]
/linux-master/net/bridge/netfilter/
H A Debt_redirect.c29 ether_addr_copy(eth_hdr(skb)->h_dest,
32 ether_addr_copy(eth_hdr(skb)->h_dest, xt_in(par)->dev_addr);
H A Debt_log.c89 eth_hdr(skb)->h_source, eth_hdr(skb)->h_dest,
90 ntohs(eth_hdr(skb)->h_proto));
97 if ((bitmask & EBT_LOG_IP) && eth_hdr(skb)->h_proto ==
114 if ((bitmask & EBT_LOG_IP6) && eth_hdr(skb)->h_proto ==
139 ((eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) ||
140 (eth_hdr(skb)->h_proto == htons(ETH_P_RARP)))) {
H A Debt_snat.c28 ether_addr_copy(eth_hdr(skb)->h_source, info->mac);
30 eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) {
H A Debt_among.c73 if (eth_hdr(skb)->h_proto == htons(ETH_P_IP)) {
81 } else if (eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) {
104 if (eth_hdr(skb)->h_proto == htons(ETH_P_IP)) {
112 } else if (eth_hdr(skb)->h_proto == htons(ETH_P_ARP)) {
144 smac = eth_hdr(skb)->h_source;
159 dmac = eth_hdr(skb)->h_dest;
H A Dnft_reject_bridge.c30 ether_addr_copy(eth->h_source, eth_hdr(oldskb)->h_dest);
31 ether_addr_copy(eth->h_dest, eth_hdr(oldskb)->h_source);
32 eth->h_proto = eth_hdr(oldskb)->h_proto;
115 const unsigned char *dest = eth_hdr(pkt->skb)->h_dest;
121 switch (eth_hdr(pkt->skb)->h_proto) {
H A Debt_dnat.c27 ether_addr_copy(eth_hdr(skb)->h_dest, info->mac);
H A Debtable_broute.c77 dest = eth_hdr(skb)->h_dest;
/linux-master/net/bridge/
H A Dbr_input.c113 br_fdb_find_rcu(br, eth_hdr(skb)->h_source, vid);
120 br_fdb_update(br, p, eth_hdr(skb)->h_source,
131 br_fdb_update(br, p, eth_hdr(skb)->h_source, vid,
141 br_fdb_update(br, p, eth_hdr(skb)->h_source, vid, 0);
146 if (is_multicast_ether_addr(eth_hdr(skb)->h_dest)) {
148 if (is_broadcast_ether_addr(eth_hdr(skb)->h_dest)) {
185 br_multicast_querier_exists(brmctx, eth_hdr(skb), mdst)) {
198 dst = br_fdb_find_rcu(br, eth_hdr(skb)->h_dest, vid);
241 br_fdb_update(p->br, p, eth_hdr(skb)->h_source, vid, 0);
329 const unsigned char *dest = eth_hdr(sk
[all...]
H A Dbr_cfm.c169 struct ethhdr *eth_hdr; local
197 eth_hdr = skb_put(skb, sizeof(*eth_hdr));
198 ether_addr_copy(eth_hdr->h_dest, tx_info->dmac.addr);
199 ether_addr_copy(eth_hdr->h_source, mep->config.unicast_mac.addr);
200 eth_hdr->h_proto = htons(ETH_P_CFM);
/linux-master/net/sched/
H A Dact_skbmod.c70 ether_addr_copy(eth_hdr(skb)->h_dest, p->eth_dst);
72 ether_addr_copy(eth_hdr(skb)->h_source, p->eth_src);
74 eth_hdr(skb)->h_proto = p->eth_type;
79 ether_addr_copy((u8 *)tmpaddr, eth_hdr(skb)->h_dest);
80 ether_addr_copy(eth_hdr(skb)->h_dest, eth_hdr(skb)->h_source);
81 ether_addr_copy(eth_hdr(skb)->h_source, (u8 *)tmpaddr);
/linux-master/net/netfilter/
H A Dnft_reject_netdev.c22 eth_hdr(oldskb)->h_source, eth_hdr(oldskb)->h_dest,
88 struct ethhdr *eth = eth_hdr(pkt->skb);
H A Dxt_mac.c36 ret = ether_addr_equal(eth_hdr(skb)->h_source, info->srcaddr);
/linux-master/tools/testing/selftests/bpf/progs/
H A Dtest_xdp_noinline.c211 struct eth_hdr { struct
219 __u64 off = sizeof(struct eth_hdr);
283 struct eth_hdr *new_eth;
284 struct eth_hdr *old_eth;
295 ip6h = data + sizeof(struct eth_hdr);
328 struct eth_hdr *new_eth;
329 struct eth_hdr *old_eth;
343 iph = data + sizeof(struct eth_hdr);
379 struct eth_hdr *eth;
398 if (data + sizeof(struct eth_hdr)
[all...]
/linux-master/net/hsr/
H A Dhsr_forward.c37 struct ethhdr *eth_hdr; local
44 eth_hdr = (struct ethhdr *)skb_mac_header(skb);
47 if (!ether_addr_equal(eth_hdr->h_dest,
52 if (!(eth_hdr->h_proto == htons(ETH_P_PRP) ||
53 eth_hdr->h_proto == htons(ETH_P_HSR)))
57 if (eth_hdr->h_proto == htons(ETH_P_HSR)) { /* Okay HSRv1. */
145 skb->protocol = eth_hdr(skb)->h_proto;
231 skb->protocol = eth_hdr(skb)->h_proto;
378 ether_addr_copy(eth_hdr(skb)->h_source, port->dev->dev_addr);
480 if (hsr_addr_is_self(hsr, eth_hdr(sk
[all...]
H A Dhsr_slave.c45 if (hsr_addr_is_self(port->hsr, eth_hdr(skb)->h_source)) {
55 protocol = eth_hdr(skb)->h_proto;
/linux-master/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_flows.c817 struct ethhdr *eth_hdr = &fsp->h_u.ether_spec; local
828 ether_addr_copy(pkt->smac, eth_hdr->h_source);
833 ether_addr_copy(pkt->dmac, eth_hdr->h_dest);
837 if (eth_hdr->h_proto) {
838 memcpy(&pkt->etype, &eth_hdr->h_proto,
944 struct ethhdr *eth_hdr = &fsp->h_u.ether_spec; local
959 is_valid_ether_addr(eth_hdr->h_dest))
1056 struct ethhdr *eth_hdr; local
1070 eth_hdr = &pf_mac->flow_spec.h_u.ether_spec;
1071 ether_addr_copy(eth_hdr
1088 struct ethhdr *eth_hdr; local
1231 struct ethhdr *eth_hdr; local
1273 struct ethhdr *eth_hdr = &flow->flow_spec.h_u.ether_spec; local
1503 struct ethhdr *eth_hdr; local
[all...]
/linux-master/net/netfilter/ipset/
H A Dip_set_hash_mac.c85 ether_addr_copy(e.ether, eth_hdr(skb)->h_source);
87 ether_addr_copy(e.ether, eth_hdr(skb)->h_dest);
H A Dip_set_hash_ipmac.c97 ether_addr_copy(e.ether, eth_hdr(skb)->h_source);
99 ether_addr_copy(e.ether, eth_hdr(skb)->h_dest);
213 ether_addr_copy(e.ether, eth_hdr(skb)->h_source);
215 ether_addr_copy(e.ether, eth_hdr(skb)->h_dest);
/linux-master/drivers/scsi/fnic/
H A Dfnic_fcs.c1022 struct ethhdr *eth_hdr; local
1027 eth_hdr = (struct ethhdr *)skb_mac_header(skb);
1028 vlan_hdr = skb_push(skb, sizeof(*vlan_hdr) - sizeof(*eth_hdr));
1029 memcpy(vlan_hdr, eth_hdr, 2 * ETH_ALEN);
1031 vlan_hdr->h_vlan_encapsulated_proto = eth_hdr->h_proto;
1034 FNIC_FC_SEND|0x80, (char *)eth_hdr, skb->len)) != 0) {
1076 struct ethhdr *eth_hdr; local
1094 eth_hdr = (struct ethhdr *)vlan_hdr;
1100 eth_hdr_len = sizeof(*eth_hdr) + sizeof(*fcoe_hdr);
1101 eth_hdr
[all...]

Completed in 189 milliseconds

1234567