/linux-master/net/core/ |
H A D | tso.c | 8 void tso_build_hdr(const struct sk_buff *skb, char *hdr, struct tso_t *tso, argument 11 int hdr_len = skb_transport_offset(skb) + tso->tlen; 12 int mac_hdr_len = skb_network_offset(skb); 14 memcpy(hdr, skb->data, hdr_len); 26 hdr += skb_transport_offset(skb); 46 void tso_build_data(const struct sk_buff *skb, struct tso_t *tso, int size) argument 53 (tso->next_frag_idx < skb_shinfo(skb)->nr_frags)) { 54 skb_frag_t *frag = &skb_shinfo(skb)->frags[tso->next_frag_idx]; 64 int tso_start(struct sk_buff *skb, struct tso_t *tso) argument 66 int tlen = skb_is_gso_tcp(skb) [all...] |
H A D | lwt_bpf.c | 38 static int run_lwt_bpf(struct sk_buff *skb, struct bpf_lwt_prog *lwt, argument 48 bpf_compute_data_pointers(skb); 49 ret = bpf_prog_run_save_cb(lwt->prog, skb); 62 skb_reset_mac_header(skb); 63 skb_do_redirect(skb); 69 kfree_skb(skb); 75 kfree_skb(skb); 86 static int bpf_lwt_input_reroute(struct sk_buff *skb) argument 90 if (skb->protocol == htons(ETH_P_IP)) { 91 struct net_device *dev = skb_dst(skb) 115 bpf_input(struct sk_buff *skb) argument 138 bpf_output(struct net *net, struct sock *sk, struct sk_buff *skb) argument 161 xmit_check_hhlen(struct sk_buff *skb, int hh_len) argument 173 bpf_lwt_xmit_reroute(struct sk_buff *skb) argument 267 bpf_xmit(struct sk_buff *skb) argument 443 bpf_fill_lwt_prog(struct sk_buff *skb, int attr, struct bpf_lwt_prog *prog) argument 462 bpf_fill_encap_info(struct sk_buff *skb, struct lwtunnel_state *lwt) argument 523 handle_gso_type(struct sk_buff *skb, unsigned int gso_type, int encap_len) argument 535 handle_gso_encap(struct sk_buff *skb, bool ipv4, int encap_len) argument 591 bpf_lwt_push_ip_encap(struct sk_buff *skb, void *hdr, u32 len, bool ingress) argument [all...] |
/linux-master/net/openvswitch/ |
H A D | actions.c | 38 struct sk_buff *skb; member in struct:deferred_action 125 static struct deferred_action *add_deferred_actions(struct sk_buff *skb, argument 136 da->skb = skb; 155 static int clone_execute(struct datapath *dp, struct sk_buff *skb, 161 static int do_execute_actions(struct datapath *dp, struct sk_buff *skb, 165 static int push_mpls(struct sk_buff *skb, struct sw_flow_key *key, argument 170 err = skb_mpls_push(skb, mpls_lse, mpls_ethertype, mac_len, !!mac_len); 181 static int pop_mpls(struct sk_buff *skb, struct sw_flow_key *key, argument 186 err = skb_mpls_pop(skb, ethertyp 198 set_mpls(struct sk_buff *skb, struct sw_flow_key *flow_key, const __be32 *mpls_lse, const __be32 *mask) argument 218 pop_vlan(struct sk_buff *skb, struct sw_flow_key *key) argument 232 push_vlan(struct sk_buff *skb, struct sw_flow_key *key, const struct ovs_action_push_vlan *vlan) argument 257 set_eth_addr(struct sk_buff *skb, struct sw_flow_key *flow_key, const struct ovs_key_ethernet *key, const struct ovs_key_ethernet *mask) argument 284 pop_eth(struct sk_buff *skb, struct sw_flow_key *key) argument 298 push_eth(struct sk_buff *skb, struct sw_flow_key *key, const struct ovs_action_push_eth *ethh) argument 314 push_nsh(struct sk_buff *skb, struct sw_flow_key *key, const struct nlattr *a) argument 336 pop_nsh(struct sk_buff *skb, struct sw_flow_key *key) argument 353 update_ip_l4_checksum(struct sk_buff *skb, struct iphdr *nh, __be32 addr, __be32 new_addr) argument 379 set_ip_addr(struct sk_buff *skb, struct iphdr *nh, __be32 *addr, __be32 new_addr) argument 389 update_ipv6_checksum(struct sk_buff *skb, u8 l4_proto, __be32 addr[4], const __be32 new_addr[4]) argument 425 set_ipv6_addr(struct sk_buff *skb, u8 l4_proto, __be32 addr[4], const __be32 new_addr[4], bool recalculate_csum) argument 437 set_ipv6_dsfield(struct sk_buff *skb, struct ipv6hdr *nh, u8 ipv6_tclass, u8 mask) argument 450 set_ipv6_fl(struct sk_buff *skb, struct ipv6hdr *nh, u32 fl, u32 mask) argument 466 set_ipv6_ttl(struct sk_buff *skb, struct ipv6hdr *nh, u8 new_ttl, u8 mask) argument 476 set_ip_ttl(struct sk_buff *skb, struct iphdr *nh, u8 new_ttl, u8 mask) argument 485 set_ipv4(struct sk_buff *skb, struct sw_flow_key *flow_key, const struct ovs_key_ipv4 *key, const struct ovs_key_ipv4 *mask) argument 537 set_ipv6(struct sk_buff *skb, struct sw_flow_key *flow_key, const struct ovs_key_ipv6 *key, const struct ovs_key_ipv6 *mask) argument 607 set_nsh(struct sk_buff *skb, struct sw_flow_key *flow_key, const struct nlattr *a) argument 671 set_tp_port(struct sk_buff *skb, __be16 *port, __be16 new_port, __sum16 *check) argument 679 set_udp(struct sk_buff *skb, struct sw_flow_key *flow_key, const struct ovs_key_udp *key, const struct ovs_key_udp *mask) argument 722 set_tcp(struct sk_buff *skb, struct sw_flow_key *flow_key, const struct ovs_key_tcp *key, const struct ovs_key_tcp *mask) argument 751 set_sctp(struct sk_buff *skb, struct sw_flow_key *flow_key, const struct ovs_key_sctp *key, const struct ovs_key_sctp *mask) argument 785 ovs_vport_output(struct net *net, struct sock *sk, struct sk_buff *skb) argument 834 prepare_frag(struct vport *vport, struct sk_buff *skb, u16 orig_network_offset, u8 mac_proto) argument 859 ovs_fragment(struct net *net, struct vport *vport, struct sk_buff *skb, u16 mru, struct sw_flow_key *key) argument 923 do_output(struct datapath *dp, struct sk_buff *skb, int out_port, struct sw_flow_key *key) argument 960 output_userspace(struct datapath *dp, struct sk_buff *skb, struct sw_flow_key *key, const struct nlattr *attr, const struct nlattr *actions, int actions_len, uint32_t cutlen) argument 1019 dec_ttl_exception_handler(struct datapath *dp, struct sk_buff *skb, struct sw_flow_key *key, const struct nlattr *attr) argument 1038 sample(struct datapath *dp, struct sk_buff *skb, struct sw_flow_key *key, const struct nlattr *attr, bool last) argument 1069 clone(struct datapath *dp, struct sk_buff *skb, struct sw_flow_key *key, const struct nlattr *attr, bool last) argument 1087 execute_hash(struct sk_buff *skb, struct sw_flow_key *key, const struct nlattr *attr) argument 1110 execute_set_action(struct sk_buff *skb, struct sw_flow_key *flow_key, const struct nlattr *a) argument 1130 execute_masked_set_action(struct sk_buff *skb, struct sw_flow_key *flow_key, const struct nlattr *a) argument 1205 execute_recirc(struct datapath *dp, struct sk_buff *skb, struct sw_flow_key *key, const struct nlattr *a, bool last) argument 1224 execute_check_pkt_len(struct datapath *dp, struct sk_buff *skb, struct sw_flow_key *key, const struct nlattr *attr, bool last) argument 1263 execute_dec_ttl(struct sk_buff *skb, struct sw_flow_key *key) argument 1303 do_execute_actions(struct datapath *dp, struct sk_buff *skb, struct sw_flow_key *key, const struct nlattr *attr, int len) argument 1523 clone_execute(struct datapath *dp, struct sk_buff *skb, struct sw_flow_key *key, u32 recirc_id, const struct nlattr *actions, int len, bool last, bool clone_flow_key) argument 1601 struct sk_buff *skb = da->skb; local 1617 ovs_execute_actions(struct datapath *dp, struct sk_buff *skb, const struct sw_flow_actions *acts, struct sw_flow_key *key) argument [all...] |
/linux-master/net/bluetooth/ |
H A D | aosp.c | 45 struct sk_buff *skb; local 55 skb = __hci_cmd_sync(hdev, hci_opcode_pack(0x3f, 0x153), 0, NULL, 57 if (IS_ERR_OR_NULL(skb)) { 58 if (!skb) 59 skb = ERR_PTR(-EIO); 62 PTR_ERR(skb)); 67 if (skb->len < VENDOR_CAPA_BASE_SIZE) 70 rp = (struct aosp_rp_le_get_vendor_capa *)skb->data; 89 if (skb->len < VENDOR_CAPA_0_98_SIZE) 105 bt_dev_err(hdev, "AOSP capabilities length %d too short", skb 149 struct sk_buff *skb; local 173 struct sk_buff *skb; local [all...] |
/linux-master/net/sched/ |
H A D | act_csum.c | 125 * @skb: sk_buff to use 133 static void *tcf_csum_skb_nextlayer(struct sk_buff *skb, argument 137 int ntkoff = skb_network_offset(skb); 140 if (!pskb_may_pull(skb, ipl + ntkoff) || (ipl < hl) || 141 skb_try_make_writable(skb, hl + ntkoff)) 144 return (void *)(skb_network_header(skb) + ihl); 147 static int tcf_csum_ipv4_icmp(struct sk_buff *skb, unsigned int ihl, argument 152 icmph = tcf_csum_skb_nextlayer(skb, ihl, ipl, sizeof(*icmph)); 157 skb->csum = csum_partial(icmph, ipl - ihl, 0); 158 icmph->checksum = csum_fold(skb 165 tcf_csum_ipv4_igmp(struct sk_buff *skb, unsigned int ihl, unsigned int ipl) argument 183 tcf_csum_ipv6_icmp(struct sk_buff *skb, unsigned int ihl, unsigned int ipl) argument 205 tcf_csum_ipv4_tcp(struct sk_buff *skb, unsigned int ihl, unsigned int ipl) argument 229 tcf_csum_ipv6_tcp(struct sk_buff *skb, unsigned int ihl, unsigned int ipl) argument 254 tcf_csum_ipv4_udp(struct sk_buff *skb, unsigned int ihl, unsigned int ipl, int udplite) argument 310 tcf_csum_ipv6_udp(struct sk_buff *skb, unsigned int ihl, unsigned int ipl, int udplite) argument 365 tcf_csum_sctp(struct sk_buff *skb, unsigned int ihl, unsigned int ipl) argument 384 tcf_csum_ipv4(struct sk_buff *skb, u32 update_flags) argument 483 tcf_csum_ipv6(struct sk_buff *skb, u32 update_flags) argument 566 tcf_csum_act(struct sk_buff *skb, const struct tc_action *a, struct tcf_result *res) argument 631 tcf_csum_dump(struct sk_buff *skb, struct tc_action *a, int bind, int ref) argument [all...] |
/linux-master/net/mac802154/ |
H A D | rx.c | 24 static int ieee802154_deliver_skb(struct sk_buff *skb) argument 26 skb->ip_summed = CHECKSUM_UNNECESSARY; 27 skb->protocol = htons(ETH_P_IEEE802154); 29 return netif_receive_skb(skb); 43 mac802154_process_beacon(local, mac_pkt->skb, mac_pkt->page, mac_pkt->channel); 46 kfree_skb(mac_pkt->skb); 84 rc = ieee802154_get_mac_cmd(mac_pkt->skb, &mac_cmd); 102 mac802154_process_association_resp(mac_pkt->sdata, mac_pkt->skb); 110 mac802154_process_association_req(mac_pkt->sdata, mac_pkt->skb); 118 mac802154_process_disassociation_notif(mac_pkt->sdata, mac_pkt->skb); 132 ieee802154_subif_frame(struct ieee802154_sub_if_data *sdata, struct sk_buff *skb, const struct ieee802154_hdr *hdr) argument 276 ieee802154_parse_frame_start(struct sk_buff *skb, struct ieee802154_hdr *hdr) argument 335 __ieee802154_rx_handle_packet(struct ieee802154_local *local, struct sk_buff *skb) argument 372 ieee802154_monitors_rx(struct ieee802154_local *local, struct sk_buff *skb) argument 400 ieee802154_rx(struct ieee802154_local *local, struct sk_buff *skb) argument 440 ieee802154_rx_irqsafe(struct ieee802154_hw *hw, struct sk_buff *skb, u8 lqi) argument [all...] |
/linux-master/net/netfilter/ |
H A D | nf_nat_helper.c | 25 static void mangle_contents(struct sk_buff *skb, argument 34 SKB_LINEAR_ASSERT(skb); 35 data = skb_network_header(skb) + dataoff; 40 skb_tail_pointer(skb) - (skb_network_header(skb) + dataoff + 46 /* update skb info */ 49 "%u from %u bytes\n", rep_len - match_len, skb->len); 50 skb_put(skb, rep_len - match_len); 53 "%u from %u bytes\n", match_len - rep_len, skb->len); 54 __skb_trim(skb, sk 67 enlarge_skb(struct sk_buff *skb, unsigned int extra) argument 86 __nf_nat_mangle_tcp_packet(struct sk_buff *skb, struct nf_conn *ct, enum ip_conntrack_info ctinfo, unsigned int protoff, unsigned int match_offset, unsigned int match_len, const char *rep_buffer, unsigned int rep_len, bool adjust) argument 136 nf_nat_mangle_udp_packet(struct sk_buff *skb, struct nf_conn *ct, enum ip_conntrack_info ctinfo, unsigned int protoff, unsigned int match_offset, unsigned int match_len, const char *rep_buffer, unsigned int rep_len) argument [all...] |
H A D | nf_conntrack_ovs.c | 11 /* 'skb' should already be pulled to nh_ofs. */ 12 int nf_ct_helper(struct sk_buff *skb, struct nf_conn *ct, argument 37 protoff = ip_hdrlen(skb); 38 proto = ip_hdr(skb)->protocol; 41 u8 nexthdr = ipv6_hdr(skb)->nexthdr; 45 ofs = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &nexthdr, 63 err = helper->help(skb, protoff, ct, ctinfo); 72 !nf_ct_seq_adjust(skb, ct, ctinfo, protoff)) 109 /* Trim the skb to the length specified by the IP/IPv6 header, 110 * removing any trailing lower-layer padding. This prepares the skb 115 nf_ct_skb_network_trim(struct sk_buff *skb, int family) argument 144 nf_ct_handle_fragments(struct net *net, struct sk_buff *skb, u16 zone, u8 family, u8 *proto, u16 *mru) argument [all...] |
/linux-master/net/dsa/ |
H A D | tag_brcm.c | 84 static struct sk_buff *brcm_tag_xmit_ll(struct sk_buff *skb, argument 89 u16 queue = skb_get_queue_mapping(skb); 101 if (__skb_put_padto(skb, ETH_ZLEN + BRCM_TAG_LEN, false)) 104 skb_push(skb, BRCM_TAG_LEN); 107 dsa_alloc_etype_header(skb, BRCM_TAG_LEN); 109 brcm_tag = skb->data + offset; 125 skb_set_queue_mapping(skb, BRCM_TAG_SET_PORT_QUEUE(dp->index, queue)); 127 return skb; 137 * In both cases, at receive time, skb->data points 2 bytes before the actual 138 * Ethernet type field and we have an offset of 4bytes between where skb 142 brcm_tag_rcv_ll(struct sk_buff *skb, struct net_device *dev, unsigned int offset) argument 181 brcm_tag_xmit(struct sk_buff *skb, struct net_device *dev) argument 189 brcm_tag_rcv(struct sk_buff *skb, struct net_device *dev) argument 216 brcm_leg_tag_xmit(struct sk_buff *skb, struct net_device *dev) argument 253 brcm_leg_tag_rcv(struct sk_buff *skb, struct net_device *dev) argument 298 brcm_tag_xmit_prepend(struct sk_buff *skb, struct net_device *dev) argument 305 brcm_tag_rcv_prepend(struct sk_buff *skb, struct net_device *dev) argument [all...] |
/linux-master/net/ieee802154/6lowpan/ |
H A D | tx.c | 19 lowpan_addr_info *lowpan_skb_priv(const struct sk_buff *skb) argument 21 WARN_ON_ONCE(skb_headroom(skb) < sizeof(struct lowpan_addr_info)); 22 return (struct lowpan_addr_info *)(skb->data - 33 int lowpan_header_create(struct sk_buff *skb, struct net_device *ldev, argument 38 struct lowpan_addr_info *info = lowpan_skb_priv(skb); 40 const struct ipv6hdr *hdr = ipv6_hdr(skb); 101 lowpan_alloc_frag(struct sk_buff *skb, int size, argument 104 struct net_device *wdev = lowpan_802154_dev(skb->dev)->wdev; 113 frag->priority = skb->priority; 116 *mac_cb(frag) = *mac_cb(skb); 137 lowpan_xmit_fragment(struct sk_buff *skb, const struct ieee802154_hdr *wpan_hdr, u8 *frag_hdr, int frag_hdrlen, int offset, int len, bool frag1) argument 158 lowpan_xmit_fragmented(struct sk_buff *skb, struct net_device *ldev, const struct ieee802154_hdr *wpan_hdr, u16 dgram_size, u16 dgram_offset) argument 224 lowpan_header(struct sk_buff *skb, struct net_device *ldev, u16 *dgram_size, u16 *dgram_offset) argument 250 lowpan_xmit(struct sk_buff *skb, struct net_device *ldev) argument [all...] |
/linux-master/drivers/net/wireless/intel/iwlwifi/mei/ |
H A D | net.c | 80 static bool iwl_mei_rx_filter_arp(struct sk_buff *skb, argument 89 if (!pskb_may_pull(skb, arp_hdr_len(skb->dev))) 92 arp = arp_hdr(skb); 138 iwl_mei_rx_filter_tcp_udp(struct sk_buff *skb, bool ip_match, argument 160 ip_hdr(skb)->protocol != IPPROTO_UDP) 164 ip_hdr(skb)->protocol != IPPROTO_TCP) 173 if ((filt->src_port && filt->src_port != udp_hdr(skb)->source) || 174 (filt->dst_port && filt->dst_port != udp_hdr(skb)->dest)) 188 static bool iwl_mei_rx_filter_ipv4(struct sk_buff *skb, argument 266 iwl_mei_rx_filter_ipv6(struct sk_buff *skb, const struct iwl_sap_oob_filters *filters, rx_handler_result_t *rx_handler_res) argument 278 iwl_mei_rx_pass_to_csme(struct sk_buff *skb, const struct iwl_sap_oob_filters *filters, bool *pass_to_csme) argument 333 struct sk_buff *skb; local 374 struct sk_buff *skb; local [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
H A D | ipsec_rxtx.c | 47 static int mlx5e_ipsec_remove_trailer(struct sk_buff *skb, struct xfrm_state *x) argument 50 struct ipv6hdr *ipv6hdr = ipv6_hdr(skb); 51 struct iphdr *ipv4hdr = ip_hdr(skb); 56 ret = skb_copy_bits(skb, skb->len - alen - 2, &plen, 1); 62 ret = pskb_trim(skb, skb->len - trailer_len); 65 if (skb->protocol == htons(ETH_P_IP)) { 75 static void mlx5e_ipsec_set_swp(struct sk_buff *skb, argument 93 eseg->swp_outer_l3_offset = skb_network_offset(skb) / 153 mlx5e_ipsec_set_iv_esn(struct sk_buff *skb, struct xfrm_state *x, struct xfrm_offload *xo) argument 175 mlx5e_ipsec_set_iv(struct sk_buff *skb, struct xfrm_state *x, struct xfrm_offload *xo) argument 195 mlx5e_ipsec_set_state(struct mlx5e_priv *priv, struct sk_buff *skb, struct xfrm_state *x, struct xfrm_offload *xo, struct mlx5e_accel_tx_ipsec_state *ipsec_st) argument 219 mlx5e_ipsec_tx_build_eseg(struct mlx5e_priv *priv, struct sk_buff *skb, struct mlx5_wqe_eth_seg *eseg) argument 261 mlx5e_ipsec_handle_tx_skb(struct net_device *netdev, struct sk_buff *skb, struct mlx5e_accel_tx_ipsec_state *ipsec_st) argument 307 mlx5e_ipsec_offload_handle_rx_skb(struct net_device *netdev, struct sk_buff *skb, u32 ipsec_meta_data) argument [all...] |
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | fexit_bpf2bpf.c | 18 int BPF_PROG(test_main, struct sk_buff *skb, int ret) argument 23 len = skb->len; 33 int BPF_PROG(test_subprog1, struct sk_buff *skb, int ret) argument 38 len = skb->len; 48 * int test_pkt_access_subprog2(int val, volatile struct __sk_buff *skb) 50 * return skb->len * val; 68 struct sk_buff *skb = (void *)ctx->args[0]; local 73 __builtin_preserve_access_index(&skb->len)); 90 int BPF_PROG(test_subprog3, int val, struct sk_buff *skb, int ret) argument 95 len = skb 105 new_get_skb_len(struct __sk_buff *skb) argument 117 new_get_skb_ifindex(int val, struct __sk_buff *skb, int var) argument 157 new_test_pkt_write_access_subprog(struct __sk_buff *skb, __u32 off) argument [all...] |
H A D | test_tc_peer.c | 20 int tc_chk(struct __sk_buff *skb) argument 26 int tc_dst(struct __sk_buff *skb) argument 32 int tc_src(struct __sk_buff *skb) argument 38 int tc_dst_l3(struct __sk_buff *skb) argument 44 int tc_src_l3(struct __sk_buff *skb) argument 46 __u16 proto = skb->protocol; 48 if (bpf_skb_change_head(skb, ETH_HLEN, 0) != 0) 51 if (bpf_skb_store_bytes(skb, 0, &src_mac, ETH_ALEN, 0) != 0) 54 if (bpf_skb_store_bytes(skb, ETH_ALEN, &dst_mac, ETH_ALEN, 0) != 0) 57 if (bpf_skb_store_bytes(skb, ETH_ALE [all...] |
/linux-master/net/ipv4/ |
H A D | netfilter.c | 20 int ip_route_me_harder(struct net *net, struct sock *sk, struct sk_buff *skb, unsigned int addr_type) argument 22 const struct iphdr *iph = ip_hdr(skb); 27 struct net_device *dev = skb_dst(skb)->dev; 49 fl4.flowi4_mark = skb->mark; 51 fib4_rules_early_flow_dissect(net, skb, &fl4, &flkeys); 57 skb_dst_drop(skb); 58 skb_dst_set(skb, &rt->dst); 60 if (skb_dst(skb)->error) 61 return skb_dst(skb)->error; 64 if (!(IPCB(skb) [all...] |
/linux-master/drivers/net/can/ |
H A D | vcan.c | 52 #include <linux/can/skb.h> 72 static void vcan_rx(struct sk_buff *skb, struct net_device *dev) argument 77 stats->rx_bytes += can_skb_get_data_len(skb); 79 skb->pkt_type = PACKET_BROADCAST; 80 skb->dev = dev; 81 skb->ip_summed = CHECKSUM_UNNECESSARY; 83 netif_rx(skb); 86 static netdev_tx_t vcan_tx(struct sk_buff *skb, struct net_device *dev) argument 92 if (can_dropped_invalid_skb(dev, skb)) 95 len = can_skb_get_data_len(skb); [all...] |
/linux-master/net/ipv6/netfilter/ |
H A D | ip6t_eui64.c | 20 eui64_mt6(const struct sk_buff *skb, struct xt_action_param *par) argument 24 if (!(skb_mac_header(skb) >= skb->head && 25 skb_mac_header(skb) + ETH_HLEN <= skb->data) && 33 if (eth_hdr(skb)->h_proto == htons(ETH_P_IPV6)) { 34 if (ipv6_hdr(skb)->version == 0x6) { 35 memcpy(eui64, eth_hdr(skb)->h_source, 3); 36 memcpy(eui64 + 5, eth_hdr(skb)->h_source + 3, 3); 41 if (!memcmp(ipv6_hdr(skb) [all...] |
/linux-master/include/net/netfilter/ |
H A D | nf_tproxy.h | 27 /* assign a socket to the skb -- consumes sk */ 28 static inline void nf_tproxy_assign_sock(struct sk_buff *skb, struct sock *sk) argument 30 skb_orphan(skb); 31 skb->sk = sk; 32 skb->destructor = sock_edemux; 35 __be32 nf_tproxy_laddr4(struct sk_buff *skb, __be32 user_laddr, __be32 daddr); 39 * @skb: The skb being processed. 55 nf_tproxy_handle_time_wait4(struct net *net, struct sk_buff *skb, 82 nf_tproxy_get_sock_v4(struct net *net, struct sk_buff *skb, [all...] |
/linux-master/net/batman-adv/ |
H A D | multicast.h | 45 batadv_mcast_forw_mode(struct batadv_priv *bat_priv, struct sk_buff *skb, 48 int batadv_mcast_forw_send(struct batadv_priv *bat_priv, struct sk_buff *skb, 65 struct sk_buff *skb); 69 bool batadv_mcast_forw_push(struct batadv_priv *bat_priv, struct sk_buff *skb, 72 int batadv_mcast_forw_mcsend(struct batadv_priv *bat_priv, struct sk_buff *skb); 77 batadv_mcast_forw_mode(struct batadv_priv *bat_priv, struct sk_buff *skb, argument 84 batadv_mcast_forw_send(struct batadv_priv *bat_priv, struct sk_buff *skb, argument 87 kfree_skb(skb); 117 struct sk_buff *skb) 119 kfree_skb(skb); 116 batadv_mcast_forw_mcsend(struct batadv_priv *bat_priv, struct sk_buff *skb) argument [all...] |
H A D | routing.h | 15 bool batadv_check_management_packet(struct sk_buff *skb, 22 int batadv_recv_icmp_packet(struct sk_buff *skb, 24 int batadv_recv_unicast_packet(struct sk_buff *skb, 26 int batadv_recv_frag_packet(struct sk_buff *skb, 28 int batadv_recv_bcast_packet(struct sk_buff *skb, 31 int batadv_recv_mcast_packet(struct sk_buff *skb, 34 static inline int batadv_recv_mcast_packet(struct sk_buff *skb, argument 37 kfree_skb(skb); 41 int batadv_recv_unicast_tvlv(struct sk_buff *skb, 43 int batadv_recv_unhandled_unicast_packet(struct sk_buff *skb, [all...] |
/linux-master/drivers/net/wireless/marvell/mwifiex/ |
H A D | uap_txrx.c | 26 struct sk_buff *skb, *tmp; local 35 skb_queue_walk_safe(&ra_list->skb_head, skb, tmp) { 36 tx_info = MWIFIEX_SKB_TXCB(skb); 38 __skb_unlink(skb, &ra_list->skb_head); 39 mwifiex_write_data_complete(adapter, skb, 0, 82 struct sk_buff *skb) 94 uap_rx_pd = (struct uap_rxpd *)(skb->data); 101 kfree_skb(skb); 107 le16_to_cpu(uap_rx_pd->rx_pkt_offset) > skb->len) { 110 skb 81 mwifiex_uap_queue_bridged_pkt(struct mwifiex_private *priv, struct sk_buff *skb) argument 232 mwifiex_handle_uap_rx_forward(struct mwifiex_private *priv, struct sk_buff *skb) argument 277 mwifiex_uap_recv_packet(struct mwifiex_private *priv, struct sk_buff *skb) argument 373 mwifiex_process_uap_rx_packet(struct mwifiex_private *priv, struct sk_buff *skb) argument 473 mwifiex_process_uap_txpd(struct mwifiex_private *priv, struct sk_buff *skb) argument [all...] |
/linux-master/fs/quota/ |
H A D | netlink.c | 41 struct sk_buff *skb; local 50 skb = genlmsg_new(msg_size, GFP_NOFS); 51 if (!skb) { 56 msg_head = genlmsg_put(skb, 0, atomic_add_return(1, &seq), 63 ret = nla_put_u32(skb, QUOTA_NL_A_QTYPE, qid.type); 66 ret = nla_put_u64_64bit(skb, QUOTA_NL_A_EXCESS_ID, 71 ret = nla_put_u32(skb, QUOTA_NL_A_WARNING, warntype); 74 ret = nla_put_u32(skb, QUOTA_NL_A_DEV_MAJOR, MAJOR(dev)); 77 ret = nla_put_u32(skb, QUOTA_NL_A_DEV_MINOR, MINOR(dev)); 80 ret = nla_put_u64_64bit(skb, QUOTA_NL_A_CAUSED_I [all...] |
/linux-master/include/net/ |
H A D | seg6.h | 17 static inline void update_csum_diff4(struct sk_buff *skb, __be32 from, argument 22 skb->csum = ~csum_partial((char *)diff, sizeof(diff), ~skb->csum); 25 static inline void update_csum_diff16(struct sk_buff *skb, __be32 *from, argument 33 skb->csum = ~csum_partial((char *)diff, sizeof(diff), ~skb->csum); 61 extern struct ipv6_sr_hdr *seg6_get_srh(struct sk_buff *skb, int flags); 62 extern void seg6_icmp_srh(struct sk_buff *skb, struct inet6_skb_parm *opt); 63 extern int seg6_do_srh_encap(struct sk_buff *skb, struct ipv6_sr_hdr *osrh, 65 extern int seg6_do_srh_inline(struct sk_buff *skb, struc 73 seg6_get_daddr(struct sk_buff *skb, struct inet6_skb_parm *opt) argument [all...] |
/linux-master/net/nfc/ |
H A D | digital.h | 49 struct sk_buff *skb, struct digital_tg_mdaa_params *params, 55 struct sk_buff *skb, u16 timeout, 59 return digital_send_cmd(ddev, DIGITAL_CMD_IN_SEND, skb, NULL, timeout, 71 struct sk_buff *skb); 73 struct sk_buff *skb); 84 struct nfc_target *target, struct sk_buff *skb, 89 struct sk_buff *skb, u16 timeout, 92 return digital_send_cmd(ddev, DIGITAL_CMD_TG_SEND, skb, NULL, timeout, 112 int digital_tg_send_dep_res(struct nfc_digital_dev *ddev, struct sk_buff *skb); 125 void digital_skb_add_crc(struct sk_buff *skb, crc_func_ 54 digital_in_send_cmd(struct nfc_digital_dev *ddev, struct sk_buff *skb, u16 timeout, nfc_digital_cmd_complete_t cmd_cb, void *cb_context) argument 88 digital_tg_send_cmd(struct nfc_digital_dev *ddev, struct sk_buff *skb, u16 timeout, nfc_digital_cmd_complete_t cmd_cb, void *cb_context) argument 128 digital_skb_add_crc_a(struct sk_buff *skb) argument 133 digital_skb_add_crc_b(struct sk_buff *skb) argument 138 digital_skb_add_crc_f(struct sk_buff *skb) argument 143 digital_skb_add_crc_none(struct sk_buff *skb) argument 151 digital_skb_check_crc_a(struct sk_buff *skb) argument 156 digital_skb_check_crc_b(struct sk_buff *skb) argument 161 digital_skb_check_crc_f(struct sk_buff *skb) argument 166 digital_skb_check_crc_none(struct sk_buff *skb) argument [all...] |
/linux-master/drivers/bluetooth/ |
H A D | btrsi.c | 48 static int rsi_hci_send_pkt(struct hci_dev *hdev, struct sk_buff *skb) argument 53 switch (hci_skb_pkt_type(skb)) { 65 if (skb_headroom(skb) < RSI_HEADROOM_FOR_BT_HAL) { 66 /* Insufficient skb headroom - allocate a new skb */ 67 new_skb = skb_realloc_headroom(skb, RSI_HEADROOM_FOR_BT_HAL); 70 bt_cb(new_skb)->pkt_type = hci_skb_pkt_type(skb); 71 kfree_skb(skb); 72 skb = new_skb; 73 if (!IS_ALIGNED((unsigned long)skb 93 struct sk_buff *skb; local [all...] |