| /net/ethtool/ |
| A D | tsinfo.c | 300 void *ehdr = NULL; in ethnl_tsinfo_prepare_dump() local 304 if (!ehdr) in ethnl_tsinfo_prepare_dump() 313 return ehdr; in ethnl_tsinfo_prepare_dump() 320 void *ehdr) in ethnl_tsinfo_end_dump() argument 349 void *ehdr = NULL; in ethnl_tsinfo_dump_one_phydev() local 358 if (IS_ERR(ehdr)) in ethnl_tsinfo_dump_one_phydev() 359 return PTR_ERR(ehdr); in ethnl_tsinfo_dump_one_phydev() 388 void *ehdr = NULL; in ethnl_tsinfo_dump_one_netdev() local 403 if (IS_ERR(ehdr)) { in ethnl_tsinfo_dump_one_netdev() 404 ret = PTR_ERR(ehdr); in ethnl_tsinfo_dump_one_netdev() [all …]
|
| A D | tunnels.c | 247 void *ehdr; in ethnl_tunnel_info_dumpit() local 251 ehdr = ethnl_dump_put(skb, cb, in ethnl_tunnel_info_dumpit() 253 if (!ehdr) { in ethnl_tunnel_info_dumpit() 261 genlmsg_cancel(skb, ehdr); in ethnl_tunnel_info_dumpit() 269 genlmsg_cancel(skb, ehdr); in ethnl_tunnel_info_dumpit() 274 genlmsg_end(skb, ehdr); in ethnl_tunnel_info_dumpit()
|
| A D | cabletest.c | 24 void *ehdr; in ethnl_cable_test_started() local 30 ehdr = ethnl_bcastmsg_put(skb, cmd); in ethnl_cable_test_started() 31 if (!ehdr) { in ethnl_cable_test_started() 46 genlmsg_end(skb, ehdr); in ethnl_cable_test_started() 120 phydev->ehdr = ethnl_bcastmsg_put(phydev->skb, cmd); in ethnl_cable_test_alloc() 121 if (!phydev->ehdr) { in ethnl_cable_test_alloc() 163 genlmsg_end(phydev->skb, phydev->ehdr); in ethnl_cable_test_finished()
|
| A D | rss.c | 404 void *ehdr; in rss_dump_one_ctx() local 409 ehdr = ethnl_dump_put(skb, cb, ETHTOOL_MSG_RSS_GET_REPLY); in rss_dump_one_ctx() 410 if (!ehdr) in rss_dump_one_ctx() 424 genlmsg_end(skb, ehdr); in rss_dump_one_ctx() 432 genlmsg_cancel(skb, ehdr); in rss_dump_one_ctx()
|
| A D | netlink.c | 579 void *ehdr; in ethnl_default_dump_one() local 582 ehdr = genlmsg_put(skb, info->snd_portid, info->snd_seq, in ethnl_default_dump_one() 585 if (!ehdr) in ethnl_default_dump_one() 607 genlmsg_cancel(skb, ehdr); in ethnl_default_dump_one() 609 genlmsg_end(skb, ehdr); in ethnl_default_dump_one()
|
| /net/tipc/ |
| A D | crypto.c | 742 struct tipc_ehdr *ehdr; in tipc_aead_encrypt() local 894 struct tipc_ehdr *ehdr; in tipc_aead_decrypt() local 1011 struct tipc_ehdr *ehdr; in tipc_ehdr_validate() local 1044 struct tipc_ehdr *ehdr; in tipc_ehdr_build() local 1072 ehdr->user = 0; in tipc_ehdr_build() 1073 ehdr->keepalive = 0; in tipc_ehdr_build() 1074 ehdr->tx_key = tx_key; in tipc_ehdr_build() 1079 ehdr->reserved_1 = 0; in tipc_ehdr_build() 1080 ehdr->reserved_2 = 0; in tipc_ehdr_build() 1411 if (ehdr->rx_nokey) { in tipc_crypto_key_synch() [all …]
|
| A D | node.c | 2094 struct tipc_ehdr *ehdr; in tipc_rcv() local 2100 ehdr = (struct tipc_ehdr *)skb->data; in tipc_rcv() 2101 if (likely(ehdr->user != LINK_CONFIG)) { in tipc_rcv() 2102 n = tipc_node_find(net, ntohl(ehdr->addr)); in tipc_rcv() 2106 n = tipc_node_find_by_id(net, ehdr->id); in tipc_rcv()
|
| /net/core/ |
| A D | selftests.c | 62 struct ethhdr *ehdr; in net_test_get_skb() local 82 ehdr = skb_push(skb, ETH_HLEN); in net_test_get_skb() 94 eth_zero_addr(ehdr->h_dest); in net_test_get_skb() 97 ether_addr_copy(ehdr->h_source, attr->src); in net_test_get_skb() 99 ether_addr_copy(ehdr->h_dest, attr->dst); in net_test_get_skb() 101 ehdr->h_proto = htons(ETH_P_IP); in net_test_get_skb() 114 (sizeof(*ihdr) + sizeof(*ehdr))); in net_test_get_skb() 132 iplen = attr->max_size - sizeof(*ehdr); in net_test_get_skb() 203 struct ethhdr *ehdr; in net_test_loopback_validate() local 217 ehdr = (struct ethhdr *)skb_mac_header(skb); in net_test_loopback_validate() [all …]
|
| /net/mac80211/ |
| A D | rx.c | 2539 struct ethhdr *ehdr; in __ieee80211_data_to_8023() local 2563 ehdr = (struct ethhdr *) rx->skb->data; in __ieee80211_data_to_8023() 2564 if (ehdr->h_proto == rx->sdata->control_port_protocol) in __ieee80211_data_to_8023() 2608 struct ethhdr *ehdr = (struct ethhdr *) rx->skb->data; in ieee80211_frame_allowed() local 2642 struct ethhdr *ehdr = (void *)skb_mac_header(skb); in ieee80211_deliver_skb_to_local_stack() local 2663 ether_addr_copy(ehdr->h_dest, sdata->vif.addr); in ieee80211_deliver_skb_to_local_stack() 2682 struct ethhdr *ehdr = (struct ethhdr *) rx->skb->data; in ieee80211_deliver_skb() local 2706 if (is_multicast_ether_addr(ehdr->h_dest) && in ieee80211_deliver_skb() 2716 } else if (!is_multicast_ether_addr(ehdr->h_dest) && in ieee80211_deliver_skb() 2717 !ether_addr_equal(ehdr->h_dest, ehdr->h_source)) { in ieee80211_deliver_skb() [all …]
|
| A D | tx.c | 4687 struct ethhdr *ehdr = (struct ethhdr *)skb->data; in ieee80211_subif_start_xmit_8023() local 4705 sdata->control_port_protocol == ehdr->h_proto)) in ieee80211_subif_start_xmit_8023() 6228 struct ethhdr *ehdr; in ieee80211_tx_control_port() local 6264 ehdr = skb_push(skb, sizeof(struct ethhdr)); in ieee80211_tx_control_port() 6265 memcpy(ehdr->h_dest, dest, ETH_ALEN); in ieee80211_tx_control_port() 6271 memcpy(ehdr->h_source, sdata->vif.addr, ETH_ALEN); in ieee80211_tx_control_port() 6285 memcpy(ehdr->h_source, link_conf->addr, ETH_ALEN); in ieee80211_tx_control_port() 6289 ehdr->h_proto = proto; in ieee80211_tx_control_port() 6321 memcpy(ehdr->h_source, sdata->vif.addr, ETH_ALEN); in ieee80211_tx_control_port()
|
| /net/wireless/ |
| A D | util.c | 599 int ieee80211_data_to_8023_exthdr(struct sk_buff *skb, struct ethhdr *ehdr, in ieee80211_data_to_8023_exthdr() argument 672 if (!ehdr) in ieee80211_data_to_8023_exthdr() 673 ehdr = skb_push(skb, sizeof(struct ethhdr)); in ieee80211_data_to_8023_exthdr() 674 memcpy(ehdr, &tmp, sizeof(tmp)); in ieee80211_data_to_8023_exthdr()
|
| A D | nl80211.c | 19974 struct ethhdr *ehdr = eth_hdr(skb); in __nl80211_rx_control_port() local 19975 const u8 *addr = ehdr->h_source; in __nl80211_rx_control_port()
|
| /net/key/ |
| A D | af_key.c | 515 const struct sadb_ext *ehdr = (const struct sadb_ext *) p; in parse_exthdrs() local 519 if (len < sizeof(*ehdr)) in parse_exthdrs() 522 ext_len = ehdr->sadb_ext_len; in parse_exthdrs() 524 ext_type = ehdr->sadb_ext_type; in parse_exthdrs()
|