/linux-master/net/dsa/ |
H A D | tag_dsa.c | 129 static struct sk_buff *dsa_xmit_ll(struct sk_buff *skb, struct net_device *dev, argument 138 if (skb->offload_fwd_mark) { 164 if (skb->protocol == htons(ETH_P_8021Q) && 167 skb_push(skb, extra); 168 dsa_alloc_etype_header(skb, extra); 172 dsa_header = dsa_etype_header_pos_tx(skb) + extra; 186 skb_push(skb, DSA_HLEN + extra); 187 dsa_alloc_etype_header(skb, DSA_HLEN + extra); 190 dsa_header = dsa_etype_header_pos_tx(skb) + extra; 198 return skb; 201 dsa_rcv_ll(struct sk_buff *skb, struct net_device *dev, u8 extra) argument 331 dsa_xmit(struct sk_buff *skb, struct net_device *dev) argument 336 dsa_rcv(struct sk_buff *skb, struct net_device *dev) argument 360 edsa_xmit(struct sk_buff *skb, struct net_device *dev) argument 376 edsa_rcv(struct sk_buff *skb, struct net_device *dev) argument [all...] |
H A D | tag_ocelot_8021q.c | 25 struct sk_buff *skb) 43 if (skb->ip_summed == CHECKSUM_PARTIAL && skb_checksum_help(skb)) 56 xmit_work->skb = skb_get(skb); 63 static struct sk_buff *ocelot_xmit(struct sk_buff *skb, argument 67 u16 queue_mapping = skb_get_queue_mapping(skb); 70 struct ethhdr *hdr = eth_hdr(skb); 72 if (ocelot_ptp_rew_op(skb) || is_link_local_ether_addr(hdr->h_dest)) 73 return ocelot_defer_xmit(dp, skb); 24 ocelot_defer_xmit(struct dsa_port *dp, struct sk_buff *skb) argument 79 ocelot_rcv(struct sk_buff *skb, struct net_device *netdev) argument [all...] |
H A D | tag_ocelot.c | 16 static void ocelot_xmit_get_vlan_info(struct sk_buff *skb, struct dsa_port *dp, argument 29 hdr = skb_vlan_eth_hdr(skb); 33 vlan_remove_tag(skb, &tci); 45 static void ocelot_xmit_common(struct sk_buff *skb, struct net_device *netdev, argument 56 ocelot_xmit_get_vlan_info(skb, dp, &vlan_tci, &tag_type); 59 netdev_get_prio_tc_map(netdev, skb->priority) : skb->priority; 61 injection = skb_push(skb, OCELOT_TAG_LEN); 62 prefix = skb_push(skb, OCELOT_SHORT_PREFIX_LEN); 72 rew_op = ocelot_ptp_rew_op(skb); 79 ocelot_xmit(struct sk_buff *skb, struct net_device *netdev) argument 91 seville_xmit(struct sk_buff *skb, struct net_device *netdev) argument 103 ocelot_rcv(struct sk_buff *skb, struct net_device *netdev) argument [all...] |
H A D | tag.c | 22 /* Determine if we should defer delivery of skb until we have a rx timestamp. 31 struct sk_buff *skb) 39 if (skb_headroom(skb) < ETH_HLEN) 42 __skb_push(skb, ETH_HLEN); 44 type = ptp_classify_raw(skb); 46 __skb_pull(skb, ETH_HLEN); 51 return ds->ops->port_rxtstamp(ds, p->dp->index, skb, type); 54 static int dsa_switch_rcv(struct sk_buff *skb, struct net_device *dev, argument 57 struct metadata_dst *md_dst = skb_metadata_dst(skb); 63 kfree_skb(skb); 30 dsa_skb_defer_rx_timestamp(struct dsa_user_priv *p, struct sk_buff *skb) argument [all...] |
/linux-master/net/dccp/ |
H A D | input.c | 22 static void dccp_enqueue_skb(struct sock *sk, struct sk_buff *skb) argument 24 __skb_pull(skb, dccp_hdr(skb)->dccph_doff * 4); 25 __skb_queue_tail(&sk->sk_receive_queue, skb); 26 skb_set_owner_r(skb, sk); 30 static void dccp_fin(struct sock *sk, struct sk_buff *skb) argument 40 dccp_enqueue_skb(sk, skb); 43 static int dccp_rcv_close(struct sock *sk, struct sk_buff *skb) argument 77 dccp_fin(sk, skb); 89 static int dccp_rcv_closereq(struct sock *sk, struct sk_buff *skb) argument 145 dccp_rcv_reset(struct sock *sk, struct sk_buff *skb) argument 159 dccp_handle_ackvec_processing(struct sock *sk, struct sk_buff *skb) argument 170 dccp_deliver_input_to_ccids(struct sock *sk, struct sk_buff *skb) argument 185 dccp_check_seqno(struct sock *sk, struct sk_buff *skb) argument 283 __dccp_rcv_established(struct sock *sk, struct sk_buff *skb, const struct dccp_hdr *dh, const unsigned int len) argument 364 dccp_rcv_established(struct sock *sk, struct sk_buff *skb, const struct dccp_hdr *dh, const unsigned int len) argument 384 dccp_rcv_request_sent_state_process(struct sock *sk, struct sk_buff *skb, const struct dccp_hdr *dh, const unsigned int len) argument 517 dccp_rcv_respond_partopen_state_process(struct sock *sk, struct sk_buff *skb, const struct dccp_hdr *dh, const unsigned int len) argument 571 dccp_rcv_state_process(struct sock *sk, struct sk_buff *skb, struct dccp_hdr *dh, unsigned int len) argument [all...] |
/linux-master/net/ipv4/ |
H A D | ip_output.c | 26 * Alexander Demenshin: Missing sk/skb free in ip_queue_xmit 39 * silently drop skb instead of failing with -EPERM. 88 ip_fragment(struct net *net, struct sock *sk, struct sk_buff *skb, 100 int __ip_local_out(struct net *net, struct sock *sk, struct sk_buff *skb) argument 102 struct iphdr *iph = ip_hdr(skb); 106 iph_set_totlen(iph, skb->len); 110 * skb to its handler for processing 112 skb = l3mdev_ip_out(sk, skb); 113 if (unlikely(!skb)) 123 ip_local_out(struct net *net, struct sock *sk, struct sk_buff *skb) argument 149 ip_build_and_send_pkt(struct sk_buff *skb, const struct sock *sk, __be32 saddr, __be32 daddr, struct ip_options_rcu *opt, u8 tos) argument 198 ip_finish_output2(struct net *net, struct sock *sk, struct sk_buff *skb) argument 247 ip_finish_output_gso(struct net *net, struct sock *sk, struct sk_buff *skb, unsigned int mtu) argument 295 __ip_finish_output(struct net *net, struct sock *sk, struct sk_buff *skb) argument 316 ip_finish_output(struct net *net, struct sock *sk, struct sk_buff *skb) argument 332 ip_mc_finish_output(struct net *net, struct sock *sk, struct sk_buff *skb) argument 366 ip_mc_output(struct net *net, struct sock *sk, struct sk_buff *skb) argument 426 ip_output(struct net *net, struct sock *sk, struct sk_buff *skb) argument 456 __ip_queue_xmit(struct sock *sk, struct sk_buff *skb, struct flowi *fl, __u8 tos) argument 547 ip_queue_xmit(struct sock *sk, struct sk_buff *skb, struct flowi *fl) argument 577 ip_fragment(struct net *net, struct sock *sk, struct sk_buff *skb, unsigned int mtu, int (*output)(struct net *, struct sock *, struct sk_buff *)) argument 599 ip_fraglist_init(struct sk_buff *skb, struct iphdr *iph, unsigned int hlen, struct ip_fraglist_iter *iter) argument 619 ip_fraglist_prepare(struct sk_buff *skb, struct ip_fraglist_iter *iter) argument 644 ip_frag_init(struct sk_buff *skb, unsigned int hlen, unsigned int ll_rs, unsigned int mtu, bool DF, struct ip_frag_state *state) argument 679 ip_frag_next(struct sk_buff *skb, struct ip_frag_state *state) argument 762 ip_do_fragment(struct net *net, struct sock *sk, struct sk_buff *skb, int (*output)(struct net *, struct sock *, struct sk_buff *)) argument 934 ip_generic_getfrag(void *from, char *to, int offset, int len, int odd, struct sk_buff *skb) argument 951 __ip_append_data(struct sock *sk, struct flowi4 *fl4, struct sk_buff_head *queue, struct inet_cork *cork, struct page_frag *pfrag, int getfrag(void *from, char *to, int offset, int len, int odd, struct sk_buff *skb), void *from, int length, int transhdrlen, unsigned int flags) argument 963 struct sk_buff *skb; local 1344 ip_append_data(struct sock *sk, struct flowi4 *fl4, int getfrag(void *from, char *to, int offset, int len, int odd, struct sk_buff *skb), void *from, int length, int transhdrlen, struct ipcm_cookie *ipc, struct rtable **rtp, unsigned int flags) argument 1388 struct sk_buff *skb, *tmp_skb; local 1488 ip_send_skb(struct net *net, struct sk_buff *skb) argument 1505 struct sk_buff *skb; local 1522 struct sk_buff *skb; local 1535 ip_make_skb(struct sock *sk, struct flowi4 *fl4, int getfrag(void *from, char *to, int offset, int len, int odd, struct sk_buff *skb), void *from, int length, int transhdrlen, struct ipcm_cookie *ipc, struct rtable **rtp, struct inet_cork *cork, unsigned int flags) argument 1572 ip_reply_glue_bits(void *dptr, char *to, int offset, int len, int odd, struct sk_buff *skb) argument 1586 ip_send_unicast_reply(struct sock *sk, struct sk_buff *skb, const struct ip_options *sopt, __be32 daddr, __be32 saddr, const struct ip_reply_arg *arg, unsigned int len, u64 transmit_time, u32 txhash) argument [all...] |
/linux-master/net/ax25/ |
H A D | ax25_out.c | 32 ax25_cb *ax25_send_frame(struct sk_buff *skb, int paclen, const ax25_address *src, ax25_address *dest, ax25_digi *digi, struct net_device *dev) argument 52 ax25_output(ax25, paclen, skb); 103 ax25_output(ax25, paclen, skb); 116 void ax25_output(ax25_cb *ax25, int paclen, struct sk_buff *skb) argument 124 kfree_skb(skb); 128 if ((skb->len - 1) > paclen) { 129 if (*skb->data == AX25_P_TEXT) { 130 skb_pull(skb, 1); /* skip PID */ 137 fragno = skb->len / paclen; 138 if (skb 211 ax25_send_iframe(ax25_cb *ax25, struct sk_buff *skb, int poll_bit) argument 243 struct sk_buff *skb, *skbn; local 326 ax25_transmit_buffer(ax25_cb *ax25, struct sk_buff *skb, int type) argument 357 ax25_queue_xmit(struct sk_buff *skb, struct net_device *dev) argument [all...] |
/linux-master/drivers/bluetooth/ |
H A D | hci_h4.c | 87 static int h4_enqueue(struct hci_uart *hu, struct sk_buff *skb) argument 91 BT_DBG("hu %p skb %p", hu, skb); 93 /* Prepend skb with frame type */ 94 memcpy(skb_push(skb, 1), &hci_skb_pkt_type(skb), 1); 95 skb_queue_tail(&h4->txq, skb); 154 struct sk_buff *h4_recv_buf(struct hci_dev *hdev, struct sk_buff *skb, argument 162 if (IS_ERR(skb)) 163 skb [all...] |
/linux-master/net/bluetooth/ |
H A D | hci_codec.c | 58 struct sk_buff *skb; local 75 skb = __hci_cmd_sync_sk(hdev, HCI_OP_READ_LOCAL_CODEC_CAPS, 77 if (IS_ERR(skb)) { 79 PTR_ERR(skb)); 83 if (skb->len < sizeof(*rp)) 86 rp = (void *)skb->data; 97 skb_pull(skb, sizeof(*rp)); 100 caps = (void *)skb->data; 101 if (skb->len < sizeof(*caps)) 103 if (skb 122 struct sk_buff *skb; local 191 struct sk_buff *skb; local [all...] |
/linux-master/net/openvswitch/ |
H A D | flow.c | 62 const struct sk_buff *skb) 66 int len = skb->len + (skb_vlan_tag_present(skb) ? VLAN_HLEN : 0); 179 static int check_header(struct sk_buff *skb, int len) argument 181 if (unlikely(skb->len < len)) 183 if (unlikely(!pskb_may_pull(skb, len))) 188 static bool arphdr_ok(struct sk_buff *skb) argument 190 return pskb_may_pull(skb, skb_network_offset(skb) + 194 static int check_iphdr(struct sk_buff *skb) argument 61 ovs_flow_stats_update(struct sw_flow *flow, __be16 tcp_flags, const struct sk_buff *skb) argument 213 tcphdr_ok(struct sk_buff *skb) argument 229 udphdr_ok(struct sk_buff *skb) argument 235 sctphdr_ok(struct sk_buff *skb) argument 241 icmphdr_ok(struct sk_buff *skb) argument 273 get_ipv6_ext_hdrs(struct sk_buff *skb, struct ipv6hdr *nh, u16 *ext_hdrs) argument 385 parse_ipv6hdr(struct sk_buff *skb, struct sw_flow_key *key) argument 434 icmp6hdr_ok(struct sk_buff *skb) argument 450 parse_vlan_tag(struct sk_buff *skb, struct vlan_head *key_vh, bool untag_vlan) argument 494 parse_vlan(struct sk_buff *skb, struct sw_flow_key *key) argument 516 parse_ethertype(struct sk_buff *skb) argument 554 parse_icmpv6(struct sk_buff *skb, struct sw_flow_key *key, int nh_len) argument 628 parse_nsh(struct sk_buff *skb, struct sw_flow_key *key) argument 682 key_extract_l3l4(struct sk_buff *skb, struct sw_flow_key *key) argument 914 key_extract(struct sk_buff *skb, struct sw_flow_key *key) argument 970 ovs_flow_key_update_l3l4(struct sk_buff *skb, struct sw_flow_key *key) argument 975 ovs_flow_key_update(struct sk_buff *skb, struct sw_flow_key *key) argument 986 key_extract_mac_proto(struct sk_buff *skb) argument 1000 ovs_flow_key_extract(const struct ip_tunnel_info *tun_info, struct sk_buff *skb, struct sw_flow_key *key) argument 1075 ovs_flow_key_extract_userspace(struct net *net, const struct nlattr *attr, struct sk_buff *skb, struct sw_flow_key *key, bool log) argument [all...] |
/linux-master/include/net/ |
H A D | tc_wrapper.h | 21 INDIRECT_CALLABLE_DECLARE(int fname(struct sk_buff *skb, \ 46 static inline int tc_act(struct sk_buff *skb, const struct tc_action *a, argument 54 return tcf_gact_act(skb, a, res); 58 return tcf_mirred_act(skb, a, res); 62 return tcf_pedit_act(skb, a, res); 66 return tcf_skbedit_act(skb, a, res); 70 return tcf_skbmod_act(skb, a, res); 74 return tcf_police_act(skb, a, res); 78 return tcf_bpf_act(skb, a, res); 82 return tcf_connmark_act(skb, 153 tc_classify(struct sk_buff *skb, const struct tcf_proto *tp, struct tcf_result *res) argument 214 tc_act(struct sk_buff *skb, const struct tc_action *a, struct tcf_result *res) argument 220 tc_classify(struct sk_buff *skb, const struct tcf_proto *tp, struct tcf_result *res) argument [all...] |
/linux-master/net/phonet/ |
H A D | af_phonet.c | 117 static int pn_header_create(struct sk_buff *skb, struct net_device *dev, argument 121 u8 *media = skb_push(skb, 1); 132 static int pn_header_parse(const struct sk_buff *skb, unsigned char *haddr) argument 134 const u8 *media = skb_mac_header(skb); 148 static int pn_send(struct sk_buff *skb, struct net_device *dev, argument 154 if (skb->len + 2 > 0xffff /* Phonet length field limit */ || 155 skb->len + sizeof(struct phonethdr) > dev->mtu) { 166 skb_reset_transport_header(skb); 167 WARN_ON(skb_headroom(skb) & 1); /* HW assumes word alignment */ 168 skb_push(skb, sizeo 207 struct sk_buff *skb = alloc_skb(MAX_PHONET_HEADER + len, GFP_ATOMIC); local 224 pn_skb_send(struct sock *sk, struct sk_buff *skb, const struct sockaddr_pn *target) argument 284 can_respond(struct sk_buff *skb) argument 357 phonet_rcv(struct sk_buff *skb, struct net_device *dev, struct packet_type *pkttype, struct net_device *orig_dev) argument [all...] |
/linux-master/drivers/net/ |
H A D | vrf.c | 134 static void vrf_tx_error(struct net_device *vrf_dev, struct sk_buff *skb) argument 137 kfree_skb(skb); 395 static int vrf_local_xmit(struct sk_buff *skb, struct net_device *dev, argument 398 int len = skb->len; 400 skb_orphan(skb); 402 skb_dst_set(skb, dst); 404 /* set pkt_type to avoid skb hitting packet taps twice - 407 skb->pkt_type = PACKET_LOOPBACK; 409 skb->protocol = eth_type_trans(skb, de 419 vrf_nf_set_untracked(struct sk_buff *skb) argument 425 vrf_nf_reset_ct(struct sk_buff *skb) argument 432 vrf_ip6_local_out(struct net *net, struct sock *sk, struct sk_buff *skb) argument 448 vrf_process_v6_outbound(struct sk_buff *skb, struct net_device *dev) argument 503 vrf_process_v6_outbound(struct sk_buff *skb, struct net_device *dev) argument 512 vrf_ip_local_out(struct net *net, struct sock *sk, struct sk_buff *skb) argument 527 vrf_process_v4_outbound(struct sk_buff *skb, struct net_device *vrf_dev) argument 587 is_ip_tx_frame(struct sk_buff *skb, struct net_device *dev) argument 600 vrf_xmit(struct sk_buff *skb, struct net_device *dev) argument 619 vrf_finish_direct(struct sk_buff *skb) argument 641 vrf_finish_output6(struct net *net, struct sock *sk, struct sk_buff *skb) argument 675 vrf_output6(struct net *net, struct sock *sk, struct sk_buff *skb) argument 687 vrf_ip6_out_redirect(struct net_device *vrf_dev, struct sk_buff *skb) argument 715 vrf_output6_direct_finish(struct net *net, struct sock *sk, struct sk_buff *skb) argument 723 vrf_output6_direct(struct net *net, struct sock *sk, struct sk_buff *skb) argument 740 vrf_ip6_out_direct_finish(struct net *net, struct sock *sk, struct sk_buff *skb) argument 752 vrf_ip6_out_direct(struct net_device *vrf_dev, struct sock *sk, struct sk_buff *skb) argument 773 vrf_ip6_out(struct net_device *vrf_dev, struct sock *sk, struct sk_buff *skb) argument 842 vrf_ip6_out(struct net_device *vrf_dev, struct sock *sk, struct sk_buff *skb) argument 860 vrf_finish_output(struct net *net, struct sock *sk, struct sk_buff *skb) argument 898 vrf_output(struct net *net, struct sock *sk, struct sk_buff *skb) argument 917 vrf_ip_out_redirect(struct net_device *vrf_dev, struct sk_buff *skb) argument 945 vrf_output_direct_finish(struct net *net, struct sock *sk, struct sk_buff *skb) argument 953 vrf_output_direct(struct net *net, struct sock *sk, struct sk_buff *skb) argument 970 vrf_ip_out_direct_finish(struct net *net, struct sock *sk, struct sk_buff *skb) argument 982 vrf_ip_out_direct(struct net_device *vrf_dev, struct sock *sk, struct sk_buff *skb) argument 1003 vrf_ip_out(struct net_device *vrf_dev, struct sock *sk, struct sk_buff *skb) argument 1022 vrf_l3_out(struct net_device *vrf_dev, struct sock *sk, struct sk_buff *skb, u16 proto) argument 1210 vrf_rcv_finish(struct net *net, struct sock *sk, struct sk_buff *skb) argument 1216 vrf_rcv_nfhook(u8 pf, unsigned int hook, struct sk_buff *skb, struct net_device *dev) argument 1228 vrf_prepare_mac_header(struct sk_buff *skb, struct net_device *vrf_dev, u16 proto) argument 1274 vrf_add_mac_header_if_unset(struct sk_buff *skb, struct net_device *vrf_dev, u16 proto, struct net_device *orig_dev) argument 1290 ipv6_ndisc_frame(const struct sk_buff *skb) argument 1319 vrf_ip6_route_lookup(struct net *net, const struct net_device *dev, struct flowi6 *fl6, int ifindex, const struct sk_buff *skb, int flags) argument 1331 vrf_ip6_input_dst(struct sk_buff *skb, struct net_device *vrf_dev, int ifindex) argument 1357 vrf_ip6_rcv(struct net_device *vrf_dev, struct sk_buff *skb) argument 1415 vrf_ip6_rcv(struct net_device *vrf_dev, struct sk_buff *skb) argument 1422 vrf_ip_rcv(struct net_device *vrf_dev, struct sk_buff *skb) argument 1462 vrf_l3_rcv(struct net_device *vrf_dev, struct sk_buff *skb, u16 proto) argument 1546 struct sk_buff *skb; local 1783 vrf_fillinfo(struct sk_buff *skb, const struct net_device *dev) argument 1797 vrf_fill_slave_info(struct sk_buff *skb, const struct net_device *vrf_dev, const struct net_device *slave_dev) argument [all...] |
/linux-master/net/ethtool/ |
H A D | cabletest.c | 21 struct sk_buff *skb; local 25 skb = genlmsg_new(NLMSG_GOODSIZE, GFP_KERNEL); 26 if (!skb) 29 ehdr = ethnl_bcastmsg_put(skb, cmd); 35 err = ethnl_fill_reply_header(skb, phydev->attached_dev, 40 err = nla_put_u8(skb, ETHTOOL_A_CABLE_TEST_NTF_STATUS, 45 genlmsg_end(skb, ehdr); 47 return ethnl_multicast(skb, phydev->attached_dev); 50 nlmsg_free(skb); 56 int ethnl_act_cable_test(struct sk_buff *skb, struc argument 307 ethnl_act_cable_test_tdr(struct sk_buff *skb, struct genl_info *info) argument [all...] |
/linux-master/drivers/net/wireless/silabs/wfx/ |
H A D | queue.c | 96 struct sk_buff *skb, *tmp; local 99 skb_queue_walk_safe(skb_queue, skb, tmp) { 100 __skb_unlink(skb, skb_queue); 101 skb_queue_head(dropped, skb); 115 void wfx_tx_queues_put(struct wfx_vif *wvif, struct sk_buff *skb) argument 117 struct wfx_queue *queue = &wvif->tx_queue[skb_get_queue_mapping(skb)]; 118 struct ieee80211_tx_info *tx_info = IEEE80211_SKB_CB(skb); 121 skb_queue_tail(&queue->offchan, skb); 123 skb_queue_tail(&queue->cab, skb); 125 skb_queue_tail(&queue->normal, skb); 132 struct sk_buff *skb; local 153 struct sk_buff *skb; local 182 struct sk_buff *skb; local 202 wfx_pending_get_pkt_us_delay(struct wfx_dev *wdev, struct sk_buff *skb) argument 237 struct sk_buff *skb; local 310 struct sk_buff *skb; local [all...] |
/linux-master/net/netfilter/ |
H A D | nf_tables_trace.c | 29 const struct sk_buff *skb, 38 if (!nla || skb_copy_bits(skb, off, nla_data(nla), len)) 45 const struct sk_buff *skb) 52 off = skb_mac_header(skb) - skb->data; 56 if (skb_copy_bits(skb, off, &veth, ETH_HLEN)) 59 veth.h_vlan_proto = skb->vlan_proto; 60 veth.h_vlan_TCI = htons(skb_vlan_tag_get(skb)); 61 veth.h_vlan_encapsulated_proto = skb->protocol; 96 const struct sk_buff *skb local 28 trace_fill_header(struct sk_buff *nlskb, u16 type, const struct sk_buff *skb, int off, unsigned int len) argument 44 nf_trace_fill_ll_header(struct sk_buff *nlskb, const struct sk_buff *skb) argument 196 struct sk_buff *skb; local 310 struct sk_buff *skb = pkt->skb; local [all...] |
H A D | nft_chain_route.c | 17 struct sk_buff *skb, 28 nft_set_pktinfo(&pkt, skb, state); 31 mark = skb->mark; 32 iph = ip_hdr(skb); 39 iph = ip_hdr(skb); 43 skb->mark != mark || 45 err = ip_route_me_harder(state->net, state->sk, skb, RTN_UNSPEC); 66 struct sk_buff *skb, 76 nft_set_pktinfo(&pkt, skb, state); 80 memcpy(&saddr, &ipv6_hdr(skb) 16 nf_route_table_hook4(void *priv, struct sk_buff *skb, const struct nf_hook_state *state) argument 65 nf_route_table_hook6(void *priv, struct sk_buff *skb, const struct nf_hook_state *state) argument 115 nf_route_table_inet(void *priv, struct sk_buff *skb, const struct nf_hook_state *state) argument [all...] |
H A D | nf_flow_table_ip.c | 23 struct sk_buff *skb, unsigned int thoff) 30 tcph = (void *)(skb_network_header(skb) + thoff); 39 static void nf_flow_nat_ip_tcp(struct sk_buff *skb, unsigned int thoff, argument 44 tcph = (void *)(skb_network_header(skb) + thoff); 45 inet_proto_csum_replace4(&tcph->check, skb, addr, new_addr, true); 48 static void nf_flow_nat_ip_udp(struct sk_buff *skb, unsigned int thoff, argument 53 udph = (void *)(skb_network_header(skb) + thoff); 54 if (udph->check || skb->ip_summed == CHECKSUM_PARTIAL) { 55 inet_proto_csum_replace4(&udph->check, skb, addr, 62 static void nf_flow_nat_ip_l4proto(struct sk_buff *skb, struc argument 22 nf_flow_state_check(struct flow_offload *flow, int proto, struct sk_buff *skb, unsigned int thoff) argument 76 nf_flow_snat_ip(const struct flow_offload *flow, struct sk_buff *skb, struct iphdr *iph, unsigned int thoff, enum flow_offload_tuple_dir dir) argument 99 nf_flow_dnat_ip(const struct flow_offload *flow, struct sk_buff *skb, struct iphdr *iph, unsigned int thoff, enum flow_offload_tuple_dir dir) argument 122 nf_flow_nat_ip(const struct flow_offload *flow, struct sk_buff *skb, unsigned int thoff, enum flow_offload_tuple_dir dir, struct iphdr *iph) argument 141 nf_flow_tuple_encap(struct sk_buff *skb, struct flow_offload_tuple *tuple) argument 173 nf_flow_tuple_ip(struct nf_flowtable_ctx *ctx, struct sk_buff *skb, struct flow_offload_tuple *tuple) argument 246 nf_flow_exceeds_mtu(const struct sk_buff *skb, unsigned int mtu) argument 266 nf_flow_xmit_xfrm(struct sk_buff *skb, const struct nf_hook_state *state, struct dst_entry *dst) argument 276 nf_flow_skb_encap_protocol(struct sk_buff *skb, __be16 proto, u32 *offset) argument 302 nf_flow_encap_pop(struct sk_buff *skb, struct flow_offload_tuple_rhash *tuplehash) argument 329 nf_flow_queue_xmit(struct net *net, struct sk_buff *skb, const struct flow_offload_tuple_rhash *tuplehash, unsigned short type) argument 348 nf_flow_offload_lookup(struct nf_flowtable_ctx *ctx, struct nf_flowtable *flow_table, struct sk_buff *skb) argument 363 nf_flow_offload_forward(struct nf_flowtable_ctx *ctx, struct nf_flowtable *flow_table, struct flow_offload_tuple_rhash *tuplehash, struct sk_buff *skb) argument 411 nf_flow_offload_ip_hook(void *priv, struct sk_buff *skb, const struct nf_hook_state *state) argument 472 nf_flow_nat_ipv6_tcp(struct sk_buff *skb, unsigned int thoff, struct in6_addr *addr, struct in6_addr *new_addr, struct ipv6hdr *ip6h) argument 484 nf_flow_nat_ipv6_udp(struct sk_buff *skb, unsigned int thoff, struct in6_addr *addr, struct in6_addr *new_addr) argument 499 nf_flow_nat_ipv6_l4proto(struct sk_buff *skb, struct ipv6hdr *ip6h, unsigned int thoff, struct in6_addr *addr, struct in6_addr *new_addr) argument 513 nf_flow_snat_ipv6(const struct flow_offload *flow, struct sk_buff *skb, struct ipv6hdr *ip6h, unsigned int thoff, enum flow_offload_tuple_dir dir) argument 536 nf_flow_dnat_ipv6(const struct flow_offload *flow, struct sk_buff *skb, struct ipv6hdr *ip6h, unsigned int thoff, enum flow_offload_tuple_dir dir) argument 559 nf_flow_nat_ipv6(const struct flow_offload *flow, struct sk_buff *skb, enum flow_offload_tuple_dir dir, struct ipv6hdr *ip6h) argument 576 nf_flow_tuple_ipv6(struct nf_flowtable_ctx *ctx, struct sk_buff *skb, struct flow_offload_tuple *tuple) argument 642 nf_flow_offload_ipv6_forward(struct nf_flowtable_ctx *ctx, struct nf_flowtable *flow_table, struct flow_offload_tuple_rhash *tuplehash, struct sk_buff *skb) argument 689 nf_flow_offload_ipv6_lookup(struct nf_flowtable_ctx *ctx, struct nf_flowtable *flow_table, struct sk_buff *skb) argument 706 nf_flow_offload_ipv6_hook(void *priv, struct sk_buff *skb, const struct nf_hook_state *state) argument [all...] |
/linux-master/samples/bpf/ |
H A D | parse_ldabs.c | 28 int handle_ingress(struct __sk_buff *skb) argument 32 if (load_half(skb, offsetof(struct ethhdr, h_proto)) != ETH_P_IP) 34 if (load_byte(skb, ETH_HLEN + offsetof(struct iphdr, protocol)) != IPPROTO_UDP || 35 load_byte(skb, ETH_HLEN) != 0x45) 37 if (ip_is_fragment(skb, ETH_HLEN)) 39 if (load_half(skb, troff + offsetof(struct udphdr, dest)) == DEFAULT_PKTGEN_UDP_PORT)
|
/linux-master/drivers/infiniband/core/ |
H A D | lag.c | 15 struct sk_buff *skb; local 27 skb = alloc_skb(hdr_len, flags); 28 if (!skb) 31 skb->dev = netdev; 32 skb_reserve(skb, hdr_len); 33 skb_push(skb, sizeof(struct udphdr)); 34 skb_reset_transport_header(skb); 35 uh = udp_hdr(skb); 42 skb_push(skb, sizeof(struct iphdr)); 43 skb_reset_network_header(skb); 86 struct sk_buff *skb; local [all...] |
/linux-master/net/netfilter/ipvs/ |
H A D | ip_vs_proto_udp.c | 28 udp_csum_check(int af, struct sk_buff *skb, struct ip_vs_protocol *pp); 31 udp_conn_schedule(struct netns_ipvs *ipvs, int af, struct sk_buff *skb, argument 42 uh = skb_header_pointer(skb, iph->len, sizeof(_udph), &_udph); 47 skb, iph->len, sizeof(_ports), &_ports); 56 svc = ip_vs_service_find(ipvs, af, skb->mark, iph->protocol, 59 svc = ip_vs_service_find(ipvs, af, skb->mark, iph->protocol, 78 *cpp = ip_vs_schedule(svc, skb, pd, &ignored, iph); 81 *verdict = ip_vs_leave(svc, skb, pd, iph); 136 udp_snat_handler(struct sk_buff *skb, struct ip_vs_protocol *pp, argument 148 oldlen = skb 219 udp_dnat_handler(struct sk_buff *skb, struct ip_vs_protocol *pp, struct ip_vs_conn *cp, struct ip_vs_iphdr *iph) argument 300 udp_csum_check(int af, struct sk_buff *skb, struct ip_vs_protocol *pp) argument 452 udp_state_transition(struct ip_vs_conn *cp, int direction, const struct sk_buff *skb, struct ip_vs_proto_data *pd) argument [all...] |
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | test_tc_tunnel.c | 94 static __always_inline int __encap_ipv4(struct __sk_buff *skb, __u8 encap_proto, argument 120 if (bpf_skb_load_bytes(skb, ETH_HLEN, &iph6_inner, 137 if (bpf_skb_load_bytes(skb, ETH_HLEN, &iph_inner, 148 if (bpf_skb_load_bytes(skb, ETH_HLEN + tcp_off, 218 if (bpf_skb_load_bytes(skb, 0, l2_hdr, ETH_HLEN)) 226 if (bpf_skb_adjust_room(skb, olen, BPF_ADJ_ROOM_MAC, flags)) 238 if (bpf_skb_store_bytes(skb, ETH_HLEN, &h_outer, olen, 246 if (bpf_skb_load_bytes(skb, 0, ð, sizeof(eth)) < 0) 249 if (bpf_skb_store_bytes(skb, 0, ð, sizeof(eth), 0) < 0) 256 static __always_inline int encap_ipv4(struct __sk_buff *skb, __u argument 262 __encap_ipv6(struct __sk_buff *skb, __u8 encap_proto, __u16 l2_proto, __u16 ext_proto) argument 373 encap_ipv6_ipip6(struct __sk_buff *skb) argument 428 encap_ipv6(struct __sk_buff *skb, __u8 encap_proto, __u16 l2_proto) argument 435 __encap_ipip_none(struct __sk_buff *skb) argument 444 __encap_gre_none(struct __sk_buff *skb) argument 453 __encap_gre_mpls(struct __sk_buff *skb) argument 462 __encap_gre_eth(struct __sk_buff *skb) argument 471 __encap_udp_none(struct __sk_buff *skb) argument 480 __encap_udp_mpls(struct __sk_buff *skb) argument 489 __encap_udp_eth(struct __sk_buff *skb) argument 498 __encap_vxlan_eth(struct __sk_buff *skb) argument 509 __encap_sit_none(struct __sk_buff *skb) argument 518 __encap_ip6tnl_none(struct __sk_buff *skb) argument 527 __encap_ipip6_none(struct __sk_buff *skb) argument 536 __encap_ip6gre_none(struct __sk_buff *skb) argument 545 __encap_ip6gre_mpls(struct __sk_buff *skb) argument 554 __encap_ip6gre_eth(struct __sk_buff *skb) argument 563 __encap_ip6udp_none(struct __sk_buff *skb) argument 572 __encap_ip6udp_mpls(struct __sk_buff *skb) argument 581 __encap_ip6udp_eth(struct __sk_buff *skb) argument 590 __encap_ip6vxlan_eth(struct __sk_buff *skb) argument 600 decap_internal(struct __sk_buff *skb, int off, int len, char proto) argument 669 decap_ipv4(struct __sk_buff *skb) argument 684 decap_ipv6(struct __sk_buff *skb) argument 697 decap_f(struct __sk_buff *skb) argument [all...] |
/linux-master/drivers/net/usb/ |
H A D | cdc_eem.c | 47 static void eem_linkcmd(struct usbnet *dev, struct sk_buff *skb) argument 57 skb->data, skb->len, eem_linkcmd_complete, skb); 63 dev_kfree_skb(skb); 89 static struct sk_buff *eem_tx_fixup(struct usbnet *dev, struct sk_buff *skb, argument 93 u16 len = skb->len; 106 if (!skb_cloned(skb)) { 107 int headroom = skb_headroom(skb); 108 int tailroom = skb_tailroom(skb); 154 eem_rx_fixup(struct usbnet *dev, struct sk_buff *skb) argument [all...] |
/linux-master/net/mac802154/ |
H A D | tx.c | 29 struct sk_buff *skb = local->tx_skb; local 30 struct net_device *dev = skb->dev; 33 res = drv_xmit_sync(local, skb); 38 dev->stats.tx_bytes += skb->len; 40 ieee802154_xmit_complete(&local->hw, skb, false); 49 kfree_skb(skb); 54 ieee802154_tx(struct ieee802154_local *local, struct sk_buff *skb) argument 56 struct net_device *dev = skb->dev; 63 if (unlikely(skb_tailroom(skb) < IEEE802154_FCS_LEN)) { 64 nskb = skb_copy_expand(skb, 140 ieee802154_mlme_tx_locked(struct ieee802154_local *local, struct ieee802154_sub_if_data *sdata, struct sk_buff *skb) argument 163 ieee802154_mlme_tx(struct ieee802154_local *local, struct ieee802154_sub_if_data *sdata, struct sk_buff *skb) argument 181 ieee802154_mlme_tx_one(struct ieee802154_local *local, struct ieee802154_sub_if_data *sdata, struct sk_buff *skb) argument 194 ieee802154_mlme_tx_one_locked(struct ieee802154_local *local, struct ieee802154_sub_if_data *sdata, struct sk_buff *skb) argument 213 ieee802154_hot_tx(struct ieee802154_local *local, struct sk_buff *skb) argument 224 ieee802154_monitor_start_xmit(struct sk_buff *skb, struct net_device *dev) argument 234 ieee802154_subif_start_xmit(struct sk_buff *skb, struct net_device *dev) argument [all...] |
/linux-master/include/linux/ |
H A D | icmp.h | 20 static inline struct icmphdr *icmp_hdr(const struct sk_buff *skb) argument 22 return (struct icmphdr *)skb_transport_header(skb); 39 void ip_icmp_error_rfc4884(const struct sk_buff *skb,
|