Searched refs:skb (Results 151 - 175 of 3407) sorted by relevance

1234567891011>>

/linux-master/net/ipv6/
H A Dnetfilter.c23 int ip6_route_me_harder(struct net *net, struct sock *sk_partial, struct sk_buff *skb) argument
25 const struct ipv6hdr *iph = ipv6_hdr(skb);
27 struct net_device *dev = skb_dst(skb)->dev;
35 .flowi6_mark = skb->mark,
47 fib6_rules_early_flow_dissect(net, skb, &fl6, &flkeys);
58 skb_dst_drop(skb);
60 skb_dst_set(skb, dst);
63 if (!(IP6CB(skb)->flags & IP6SKB_XFRM_TRANSFORMED) &&
64 xfrm_decode_session(net, skb, flowi6_to_flowi(&fl6), AF_INET6) == 0) {
65 skb_dst_set(skb, NUL
84 nf_ip6_reroute(struct sk_buff *skb, const struct nf_queue_entry *entry) argument
122 br_ip6_fragment(struct net *net, struct sock *sk, struct sk_buff *skb, struct nf_bridge_frag_data *data, int (*output)(struct net *, struct sock *sk, const struct nf_bridge_frag_data *data, struct sk_buff *)) argument
[all...]
/linux-master/net/batman-adv/
H A Dsend.h25 struct sk_buff *skb);
32 int batadv_send_skb_to_orig(struct sk_buff *skb,
35 int batadv_send_skb_packet(struct sk_buff *skb,
38 int batadv_send_broadcast_skb(struct sk_buff *skb,
40 int batadv_send_unicast_skb(struct sk_buff *skb,
43 struct sk_buff *skb,
47 struct sk_buff *skb,
54 struct sk_buff *skb,
58 struct sk_buff *skb, int packet_type,
63 struct sk_buff *skb, in
82 batadv_send_skb_via_tt(struct batadv_priv *bat_priv, struct sk_buff *skb, u8 *dst_hint, unsigned short vid) argument
105 batadv_send_skb_via_tt_4addr(struct batadv_priv *bat_priv, struct sk_buff *skb, int packet_subtype, u8 *dst_hint, unsigned short vid) argument
[all...]
/linux-master/net/dsa/
H A Dtag_rzn1_a5psw.c40 static struct sk_buff *a5psw_tag_xmit(struct sk_buff *skb, struct net_device *dev) argument
52 if (__skb_put_padto(skb, ETH_ZLEN, false))
56 skb_push(skb, A5PSW_TAG_LEN);
59 dsa_alloc_etype_header(skb, A5PSW_TAG_LEN);
61 ptag = dsa_etype_header_pos_tx(skb);
69 return skb;
72 static struct sk_buff *a5psw_tag_rcv(struct sk_buff *skb, argument
78 if (unlikely(!pskb_may_pull(skb, A5PSW_TAG_LEN))) {
84 tag = dsa_etype_header_pos_rx(skb);
93 skb
[all...]
H A Dtag_sja1105.c78 static bool sja1105_is_link_local(const struct sk_buff *skb) argument
80 const struct ethhdr *hdr = eth_hdr(skb);
102 static void sja1105_meta_unpack(const struct sk_buff *skb, argument
105 u8 *buf = skb_mac_header(skb) + ETH_HLEN;
124 static bool sja1105_is_meta_frame(const struct sk_buff *skb) argument
126 const struct ethhdr *hdr = eth_hdr(skb);
141 struct sk_buff *skb)
164 xmit_work->skb = skb_get(skb);
210 static struct sk_buff *sja1105_imprecise_xmit(struct sk_buff *skb, argument
140 sja1105_defer_xmit(struct dsa_port *dp, struct sk_buff *skb) argument
240 sja1105_pvid_tag_control_pkt(struct dsa_port *dp, struct sk_buff *skb, u8 pcp) argument
266 sja1105_xmit(struct sk_buff *skb, struct net_device *netdev) argument
293 sja1110_xmit(struct sk_buff *skb, struct net_device *netdev) argument
346 sja1105_transfer_meta(struct sk_buff *skb, const struct sja1105_meta *meta) argument
377 sja1105_rcv_meta_state_machine(struct sk_buff *skb, struct sja1105_meta *meta, bool is_link_local, bool is_meta) argument
462 sja1105_skb_has_tag_8021q(const struct sk_buff *skb) argument
470 sja1110_skb_has_inband_control_extension(const struct sk_buff *skb) argument
479 sja1105_vlan_rcv(struct sk_buff *skb, int *source_port, int *switch_id, int *vbid, u16 *vid) argument
497 sja1105_rcv(struct sk_buff *skb, struct net_device *netdev) argument
570 sja1110_rcv_meta(struct sk_buff *skb, u16 rx_header) argument
612 sja1110_rcv_inband_control_extension(struct sk_buff *skb, int *source_port, int *switch_id, bool *host_only) argument
677 sja1110_rcv(struct sk_buff *skb, struct net_device *netdev) argument
713 sja1105_flow_dissect(const struct sk_buff *skb, __be16 *proto, int *offset) argument
723 sja1110_flow_dissect(const struct sk_buff *skb, __be16 *proto, int *offset) argument
[all...]
H A Dtag_trailer.c15 static struct sk_buff *trailer_xmit(struct sk_buff *skb, struct net_device *dev) argument
20 trailer = skb_put(skb, 4);
26 return skb;
29 static struct sk_buff *trailer_rcv(struct sk_buff *skb, struct net_device *dev) argument
34 if (skb_linearize(skb))
37 trailer = skb_tail_pointer(skb) - 4;
44 skb->dev = dsa_conduit_find_user(dev, 0, source_port);
45 if (!skb->dev)
48 if (pskb_trim_rcsum(skb, skb
[all...]
H A Dtag_xrs700x.c14 static struct sk_buff *xrs700x_xmit(struct sk_buff *skb, struct net_device *dev) argument
19 trailer = skb_put(skb, 1);
27 return skb;
30 static struct sk_buff *xrs700x_rcv(struct sk_buff *skb, struct net_device *dev) argument
35 trailer = skb_tail_pointer(skb) - 1;
42 skb->dev = dsa_conduit_find_user(dev, 0, source_port);
43 if (!skb->dev)
46 if (pskb_trim_rcsum(skb, skb->len - 1))
50 dsa_default_offload_fwd_mark(skb);
[all...]
/linux-master/lib/
H A Dtest_blackhole_dev.c5 * by injecting an skb into the stack with skb->dev as the
31 struct sk_buff *skb; local
36 skb = alloc_skb(SKB_SIZE, GFP_KERNEL);
37 if (!skb)
41 skb_reserve(skb, HEAD_SIZE);
43 /* Add data to the skb */
45 memset(__skb_put(skb, data_len), 0xf, data_len);
49 uh = (struct udphdr *)skb_push(skb, sizeof(struct udphdr));
50 skb_set_transport_header(skb,
[all...]
/linux-master/net/bluetooth/bnep/
H A Dnetdev.c56 struct sk_buff *skb; local
62 skb = alloc_skb(size, GFP_ATOMIC);
63 if (!skb) {
68 r = (void *) skb->data;
69 __skb_put(skb, sizeof(*r));
78 __skb_put_data(skb, start, ETH_ALEN);
79 __skb_put_data(skb, dev->broadcast, ETH_ALEN);
83 int i, len = skb->len;
86 __skb_put_data(skb, dev->broadcast, ETH_ALEN);
87 __skb_put_data(skb, de
122 bnep_net_mc_filter(struct sk_buff *skb, struct bnep_session *s) argument
134 bnep_net_eth_proto(struct sk_buff *skb) argument
148 bnep_net_proto_filter(struct sk_buff *skb, struct bnep_session *s) argument
164 bnep_net_xmit(struct sk_buff *skb, struct net_device *dev) argument
[all...]
/linux-master/include/net/
H A Dinet_ecn.h130 * meaning both changes have no effect on skb->csum if/when CHECKSUM_COMPLETE
132 * so we have to update skb->csum.
134 static inline int IP6_ECN_set_ce(struct sk_buff *skb, struct ipv6hdr *iph) argument
144 if (skb->ip_summed == CHECKSUM_COMPLETE)
145 skb->csum = csum_add(csum_sub(skb->csum, (__force __wsum)from),
150 static inline int IP6_ECN_set_ect1(struct sk_buff *skb, struct ipv6hdr *iph) argument
160 if (skb->ip_summed == CHECKSUM_COMPLETE)
161 skb->csum = csum_add(csum_sub(skb
172 INET_ECN_set_ce(struct sk_buff *skb) argument
191 skb_get_dsfield(struct sk_buff *skb) argument
208 INET_ECN_set_ect1(struct sk_buff *skb) argument
269 INET_ECN_decapsulate(struct sk_buff *skb, __u8 outer, __u8 inner) argument
286 IP_ECN_decapsulate(const struct iphdr *oiph, struct sk_buff *skb) argument
305 IP6_ECN_decapsulate(const struct ipv6hdr *oipv6h, struct sk_buff *skb) argument
[all...]
H A Dudp.h111 static inline __sum16 __udp_lib_checksum_complete(struct sk_buff *skb) argument
113 return (UDP_SKB_CB(skb)->cscov == skb->len ?
114 __skb_checksum_complete(skb) :
115 __skb_checksum_complete_head(skb, UDP_SKB_CB(skb)->cscov));
118 static inline int udp_lib_checksum_complete(struct sk_buff *skb) argument
120 return !skb_csum_unnecessary(skb) &&
121 __udp_lib_checksum_complete(skb);
127 * @skb
130 udp_csum_outgoing(struct sock *sk, struct sk_buff *skb) argument
140 udp_csum(struct sk_buff *skb) argument
160 udp_csum_pull_header(struct sk_buff *skb) argument
207 udp_flow_src_port(struct net *net, struct sk_buff *skb, int min, int max, bool use_eth) argument
341 udp_skb_scratch(struct sk_buff *skb) argument
347 udp_skb_len(struct sk_buff *skb) argument
352 udp_skb_csum_unnecessary(struct sk_buff *skb) argument
357 udp_skb_is_linear(struct sk_buff *skb) argument
363 udp_skb_len(struct sk_buff *skb) argument
368 udp_skb_csum_unnecessary(struct sk_buff *skb) argument
373 udp_skb_is_linear(struct sk_buff *skb) argument
379 copy_linear_skb(struct sk_buff *skb, int len, int off, struct iov_iter *to) argument
464 udp_rcv_segment(struct sock *sk, struct sk_buff *skb, bool ipv4) argument
504 udp_post_segment_fix_csum(struct sk_buff *skb) argument
[all...]
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dskb_helpers.c7 struct __sk_buff skb = { local
15 .ctx_in = &skb,
16 .ctx_size_in = sizeof(skb),
17 .ctx_out = &skb,
18 .ctx_size_out = sizeof(skb),
/linux-master/tools/testing/selftests/bpf/progs/
H A Dtailcall_bpf2bpf6.c18 int classifier_0(struct __sk_buff *skb __unused)
25 int subprog_tail(struct __sk_buff *skb) argument
30 bpf_tail_call_static(skb, &jmp_table, 0);
35 int entry(struct __sk_buff *skb) argument
42 return subprog_tail(skb);
H A Dtest_skb_cgroup_id_kern.c20 static __always_inline void log_nth_level(struct __sk_buff *skb, __u32 level) argument
27 id = bpf_skb_ancestor_cgroup_id(skb, level);
32 int log_cgroup_id(struct __sk_buff *skb) argument
37 log_nth_level(skb, 0);
38 log_nth_level(skb, 1);
39 log_nth_level(skb, 2);
40 log_nth_level(skb, 3);
/linux-master/drivers/nfc/st21nfca/
H A Ddep.c117 struct sk_buff *skb; local
121 skb = info->dep_info.tx_pending;
126 ST21NFCA_WR_XCHG_DATA, skb->data, skb->len,
129 kfree_skb(skb);
134 struct sk_buff *skb)
136 info->dep_info.tx_pending = skb;
144 struct sk_buff *skb; local
150 skb = alloc_skb(atr_req->length + 1, GFP_KERNEL);
151 if (!skb)
133 st21nfca_im_send_pdu(struct st21nfca_hci_info *info, struct sk_buff *skb) argument
190 st21nfca_tm_recv_atr_req(struct nfc_hci_dev *hdev, struct sk_buff *skb) argument
228 struct sk_buff *skb; local
270 st21nfca_tm_recv_psl_req(struct nfc_hci_dev *hdev, struct sk_buff *skb) argument
288 st21nfca_tm_send_dep_res(struct nfc_hci_dev *hdev, struct sk_buff *skb) argument
306 st21nfca_tm_recv_dep_req(struct nfc_hci_dev *hdev, struct sk_buff *skb) argument
348 st21nfca_tm_event_send_data(struct nfc_hci_dev *hdev, struct sk_buff *skb) argument
383 st21nfca_dep_event_received(struct nfc_hci_dev *hdev, u8 event, struct sk_buff *skb) argument
418 struct sk_buff *skb; local
444 st21nfca_im_recv_atr_res_cb(void *context, struct sk_buff *skb, int err) argument
493 struct sk_buff *skb; local
555 st21nfca_im_recv_dep_res_cb(void *context, struct sk_buff *skb, int err) argument
620 st21nfca_im_send_dep_req(struct nfc_hci_dev *hdev, struct sk_buff *skb) argument
[all...]
/linux-master/net/xfrm/
H A Dxfrm_input.c41 int (*finish)(struct net *net, struct sock *sk, struct sk_buff *skb);
103 static int xfrm_rcv_cb(struct sk_buff *skb, unsigned int family, u8 protocol, argument
114 ret = afinfo->callback(skb, protocol, err);
120 struct sec_path *secpath_set(struct sk_buff *skb) argument
122 struct sec_path *sp, *tmp = skb_ext_find(skb, SKB_EXT_SEC_PATH);
124 sp = skb_ext_add(skb, SKB_EXT_SEC_PATH);
143 int xfrm_parse_spi(struct sk_buff *skb, u8 nexthdr, __be32 *spi, __be32 *seq) argument
160 if (!pskb_may_pull(skb, sizeof(struct ip_comp_hdr)))
162 *spi = htonl(ntohs(*(__be16 *)(skb_transport_header(skb) + 2)));
169 if (!pskb_may_pull(skb, hle
178 xfrm4_remove_beet_encap(struct xfrm_state *x, struct sk_buff *skb) argument
226 ipip_ecn_decapsulate(struct sk_buff *skb) argument
234 xfrm4_remove_tunnel_encap(struct xfrm_state *x, struct sk_buff *skb) argument
263 ipip6_ecn_decapsulate(struct sk_buff *skb) argument
271 xfrm6_remove_tunnel_encap(struct xfrm_state *x, struct sk_buff *skb) argument
300 xfrm6_remove_beet_encap(struct xfrm_state *x, struct sk_buff *skb) argument
338 xfrm_inner_mode_encap_remove(struct xfrm_state *x, struct sk_buff *skb) argument
365 xfrm_prepare_input(struct xfrm_state *x, struct sk_buff *skb) argument
390 xfrm4_transport_input(struct xfrm_state *x, struct sk_buff *skb) argument
404 xfrm6_transport_input(struct xfrm_state *x, struct sk_buff *skb) argument
424 xfrm_inner_mode_input(struct xfrm_state *x, struct sk_buff *skb) argument
448 xfrm_input(struct sk_buff *skb, int nexthdr, __be32 spi, int encap_type) argument
736 xfrm_input_resume(struct sk_buff *skb, int nexthdr) argument
746 struct sk_buff *skb; local
760 xfrm_trans_queue_net(struct net *net, struct sk_buff *skb, int (*finish)(struct net *, struct sock *, struct sk_buff *)) argument
783 xfrm_trans_queue(struct sk_buff *skb, int (*finish)(struct net *, struct sock *, struct sk_buff *)) argument
[all...]
/linux-master/net/caif/
H A Dcfpkt_skbuff.c20 skb_reset_tail_pointer(&pkt->skb); \
36 struct sk_buff skb; member in struct:cfpkt
47 return (struct cfpkt_priv_data *) pkt->skb.cb;
57 return &pkt->skb;
60 static inline struct cfpkt *skb_to_pkt(struct sk_buff *skb) argument
62 return (struct cfpkt *) skb;
81 struct sk_buff *skb; local
83 skb = alloc_skb(len + pfx, GFP_ATOMIC);
84 if (unlikely(skb == NULL))
87 skb_reserve(skb, pf
98 struct sk_buff *skb = pkt_to_skb(pkt); local
104 struct sk_buff *skb = pkt_to_skb(pkt); local
110 struct sk_buff *skb = pkt_to_skb(pkt); local
121 struct sk_buff *skb = pkt_to_skb(pkt); local
147 struct sk_buff *skb = pkt_to_skb(pkt); local
174 struct sk_buff *skb = pkt_to_skb(pkt); local
217 struct sk_buff *skb = pkt_to_skb(pkt); local
249 struct sk_buff *skb = pkt_to_skb(pkt); local
272 struct sk_buff *skb = pkt_to_skb(pkt); local
334 struct sk_buff *skb = pkt_to_skb(pkt); local
[all...]
/linux-master/net/netrom/
H A Dnr_loopback.c30 int nr_loopback_queue(struct sk_buff *skb) argument
34 if ((skbn = alloc_skb(skb->len, GFP_ATOMIC)) != NULL) {
35 skb_copy_from_linear_data(skb, skb_put(skbn, skb->len), skb->len);
44 kfree_skb(skb);
50 struct sk_buff *skb; local
54 if ((skb = skb_dequeue(&loopback_queue)) != NULL) {
55 nr_dest = (ax25_address *)(skb->data + 7);
59 if (dev == NULL || nr_rx_frame(skb, de
[all...]
/linux-master/drivers/net/wireless/marvell/mwifiex/
H A Dutil.h41 static inline struct mwifiex_rxinfo *MWIFIEX_SKB_RXCB(struct sk_buff *skb) argument
43 struct mwifiex_cb *cb = (struct mwifiex_cb *)skb->cb;
45 BUILD_BUG_ON(sizeof(struct mwifiex_cb) > sizeof(skb->cb));
49 static inline struct mwifiex_txinfo *MWIFIEX_SKB_TXCB(struct sk_buff *skb) argument
51 struct mwifiex_cb *cb = (struct mwifiex_cb *)skb->cb;
56 static inline void mwifiex_store_mapping(struct sk_buff *skb, argument
59 struct mwifiex_cb *cb = (struct mwifiex_cb *)skb->cb;
64 static inline void mwifiex_get_mapping(struct sk_buff *skb, argument
67 struct mwifiex_cb *cb = (struct mwifiex_cb *)skb->cb;
72 static inline dma_addr_t MWIFIEX_SKB_DMA_ADDR(struct sk_buff *skb) argument
[all...]
/linux-master/net/nfc/nci/
H A Ddata.c25 /* Complete data exchange transaction and forward skb to nfc core */
26 void nci_data_exchange_complete(struct nci_dev *ndev, struct sk_buff *skb, argument
35 kfree_skb(skb);
42 pr_debug("len %d, err %d\n", skb ? skb->len : 0, err);
49 /* forward skb to nfc core */
50 cb(cb_context, skb, err);
51 } else if (skb) {
54 /* no waiting callback, free skb */
55 kfree_skb(skb);
64 nci_push_data_hdr(struct nci_dev *ndev, __u8 conn_id, struct sk_buff *skb, __u8 pbf) argument
93 nci_queue_tx_data_frags(struct nci_dev *ndev, __u8 conn_id, struct sk_buff *skb) argument
167 nci_send_data(struct nci_dev *ndev, __u8 conn_id, struct sk_buff *skb) argument
210 nci_add_rx_data_frag(struct nci_dev *ndev, struct sk_buff *skb, __u8 pbf, __u8 conn_id, __u8 status) argument
267 nci_rx_data_packet(struct nci_dev *ndev, struct sk_buff *skb) argument
[all...]
/linux-master/drivers/net/ethernet/chelsio/cxgb4/
H A Dcxgb4_ptp.h55 static inline bool cxgb4_xmit_with_hwtstamp(struct sk_buff *skb) argument
57 return skb_shinfo(skb)->tx_flags & SKBTX_HW_TSTAMP;
60 static inline void cxgb4_xmit_hwtstamp_pending(struct sk_buff *skb) argument
62 skb_shinfo(skb)->tx_flags |= SKBTX_IN_PROGRESS;
67 bool cxgb4_ptp_is_ptp_tx(struct sk_buff *skb);
68 bool cxgb4_ptp_is_ptp_rx(struct sk_buff *skb);
73 bool is_ptp_enabled(struct sk_buff *skb, struct net_device *dev);
/linux-master/drivers/net/usb/
H A Dgl620a.c67 static int genelink_rx_fixup(struct usbnet *dev, struct sk_buff *skb) argument
76 if (skb->len < dev->net->hard_header_len)
79 header = (struct gl_header *) skb->data;
81 // get the packet count of the received skb
94 skb_pull(skb, 4);
107 // allocate the skb for the individual packet
111 // copy the packet data to the new skb
121 skb_pull(skb, size + 4);
125 skb_pull(skb, 4);
127 if (skb
136 genelink_tx_fixup(struct usbnet *dev, struct sk_buff *skb, gfp_t flags) argument
[all...]
/linux-master/drivers/nfc/microread/
H A Di2c.c48 #define I2C_DUMP_SKB(info, skb) \
52 16, 1, (skb)->data, (skb)->len, 0); \
55 static void microread_i2c_add_len_crc(struct sk_buff *skb) argument
61 len = skb->len;
62 *(u8 *)skb_push(skb, 1) = len;
64 for (i = 0; i < skb->len; i++)
65 crc = crc ^ skb->data[i];
67 skb_put_u8(skb, crc);
70 static void microread_i2c_remove_len_crc(struct sk_buff *skb) argument
76 check_crc(const struct sk_buff *skb) argument
103 microread_i2c_write(void *phy_id, struct sk_buff *skb) argument
138 microread_i2c_read(struct microread_i2c_phy *phy, struct sk_buff **skb) argument
201 struct sk_buff *skb = NULL; local
[all...]
/linux-master/drivers/net/wireguard/
H A Dqueueing.h31 void wg_packet_receive(struct wg_device *wg, struct sk_buff *skb);
67 #define PACKET_CB(skb) ((struct packet_cb *)((skb)->cb))
68 #define PACKET_PEER(skb) (PACKET_CB(skb)->keypair->entry.peer)
70 static inline bool wg_check_packet_protocol(struct sk_buff *skb) argument
72 __be16 real_protocol = ip_tunnel_parse_protocol(skb);
73 return real_protocol && skb->protocol == real_protocol;
76 static inline void wg_reset_packet(struct sk_buff *skb, bool encapsulating) argument
78 u8 l4_hash = skb
157 wg_queue_enqueue_per_device_and_peer( struct crypt_queue *device_queue, struct prev_queue *peer_queue, struct sk_buff *skb, struct workqueue_struct *wq) argument
180 wg_queue_enqueue_per_peer_tx(struct sk_buff *skb, enum packet_state state) argument
193 wg_queue_enqueue_per_peer_rx(struct sk_buff *skb, enum packet_state state) argument
[all...]
/linux-master/net/core/
H A Dtso.c8 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...]
/linux-master/net/bluetooth/
H A Daosp.c45 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...]

Completed in 969 milliseconds

1234567891011>>