Searched refs:skb (Results 301 - 325 of 3419) sorted by relevance

<<11121314151617181920>>

/linux-master/net/netfilter/
H A Dxt_mac.c25 static bool mac_mt(const struct sk_buff *skb, struct xt_action_param *par) argument
30 if (skb->dev == NULL || skb->dev->type != ARPHRD_ETHER)
32 if (skb_mac_header(skb) < skb->head)
34 if (skb_mac_header(skb) + ETH_HLEN > skb->data)
36 ret = ether_addr_equal(eth_hdr(skb)->h_source, info->srcaddr);
/linux-master/include/net/netfilter/
H A Dnf_nat_masquerade.h9 nf_nat_masquerade_ipv4(struct sk_buff *skb, unsigned int hooknum,
17 nf_nat_masquerade_ipv6(struct sk_buff *skb, const struct nf_nat_range2 *range,
H A Dnf_nat_redirect.h9 nf_nat_redirect_ipv4(struct sk_buff *skb, const struct nf_nat_range2 *range,
12 nf_nat_redirect_ipv6(struct sk_buff *skb, const struct nf_nat_range2 *range,
/linux-master/tools/testing/selftests/bpf/progs/
H A Dfexit_bpf2bpf_simple.c14 int BPF_PROG(test_main2, struct sk_buff *skb, int ret) argument
19 len = skb->len;
H A Dtest_trace_ext.c12 int test_pkt_md_access_new(struct __sk_buff *skb) argument
14 ext_called = skb->len;
H A Dtest_cgroup_link.c10 int egress(struct __sk_buff *skb) argument
17 int egress_alt(struct __sk_buff *skb) argument
H A Dloop5.c9 int while_true(volatile struct __sk_buff* skb) argument
14 if (skb->len)
H A Dskb_load_bytes.c12 int skb_process(struct __sk_buff *skb) argument
16 test_result = bpf_skb_load_bytes(skb, load_offset, buf, 10);
H A Dtest_global_func11.c18 int global_func11(struct __sk_buff *skb) argument
20 return foo((const void *)skb);
H A Dtest_global_func12.c18 int global_func12(struct __sk_buff *skb) argument
20 const struct S s = {.x = skb->len };
H A Dloop4.c11 int combinations(volatile struct __sk_buff* skb) argument
17 if (skb->len)
H A Dfib_lookup.c14 int fib_lookup(struct __sk_buff *skb) argument
16 fib_lookup_ret = bpf_fib_lookup(skb, &fib_params, sizeof(fib_params),
H A Dkfree_skb.c58 * TP_PROTO(struct sk_buff *skb, void *location),
61 int BPF_PROG(trace_kfree_skb, struct sk_buff *skb, void *location) argument
75 users = skb->users.refs.counter;
76 data = skb->data;
77 dev = skb->dev;
80 cb8 = (__u8 *)&skb->cb;
81 cb32 = (__u32 *)&skb->cb;
88 bpf_probe_read_kernel(&pkt_type, sizeof(pkt_type), _(&skb->__pkt_type_offset));
95 bpf_printk("skb->len %d users %d pkt_type %x\n",
96 _(skb
118 BPF_PROG(fentry_eth_type_trans, struct sk_buff *skb, struct net_device *dev, unsigned short protocol) argument
136 BPF_PROG(fexit_eth_type_trans, struct sk_buff *skb, struct net_device *dev, unsigned short protocol) argument
[all...]
/linux-master/include/net/
H A Dl3mdev.h38 struct sk_buff *skb, u16 proto);
40 struct sock *sk, struct sk_buff *skb,
165 struct sk_buff *l3mdev_l3_rcv(struct sk_buff *skb, u16 proto) argument
169 if (netif_is_l3_slave(skb->dev))
170 master = netdev_master_upper_dev_get_rcu(skb->dev);
171 else if (netif_is_l3_master(skb->dev) ||
172 netif_has_l3_rx_handler(skb->dev))
173 master = skb->dev;
176 skb = master->l3mdev_ops->l3mdev_l3_rcv(master, skb, prot
182 l3mdev_ip_rcv(struct sk_buff *skb) argument
188 l3mdev_ip6_rcv(struct sk_buff *skb) argument
194 l3mdev_l3_out(struct sock *sk, struct sk_buff *skb, u16 proto) argument
211 l3mdev_ip_out(struct sock *sk, struct sk_buff *skb) argument
217 l3mdev_ip6_out(struct sock *sk, struct sk_buff *skb) argument
279 l3mdev_ip_rcv(struct sk_buff *skb) argument
285 l3mdev_ip6_rcv(struct sk_buff *skb) argument
291 l3mdev_ip_out(struct sock *sk, struct sk_buff *skb) argument
297 l3mdev_ip6_out(struct sock *sk, struct sk_buff *skb) argument
[all...]
H A Desp.h10 static inline struct ip_esp_hdr *ip_esp_hdr(const struct sk_buff *skb) argument
12 return (struct ip_esp_hdr *)skb_transport_header(skb);
44 int esp_output_head(struct xfrm_state *x, struct sk_buff *skb, struct esp_info *esp);
45 int esp_output_tail(struct xfrm_state *x, struct sk_buff *skb, struct esp_info *esp);
46 int esp_input_done2(struct sk_buff *skb, int err);
47 int esp6_output_head(struct xfrm_state *x, struct sk_buff *skb, struct esp_info *esp);
48 int esp6_output_tail(struct xfrm_state *x, struct sk_buff *skb, struct esp_info *esp);
49 int esp6_input_done2(struct sk_buff *skb, int err);
/linux-master/drivers/nfc/st-nci/
H A Dndlc.c39 #define NDLC_DUMP_SKB(info, skb) \
43 16, 1, skb->data, skb->len, 0); \
73 int ndlc_send(struct llt_ndlc *ndlc, struct sk_buff *skb) argument
79 *(u8 *)skb_push(skb, 1) = pcb;
80 skb_queue_tail(&ndlc->send_q, skb);
90 struct sk_buff *skb; local
99 skb = skb_dequeue(&ndlc->send_q);
100 NDLC_DUMP_SKB("ndlc frame written", skb);
101 r = ndlc->ops->write(ndlc->phy_id, skb);
124 struct sk_buff *skb; local
149 struct sk_buff *skb; local
223 ndlc_recv(struct llt_ndlc *ndlc, struct sk_buff *skb) argument
[all...]
/linux-master/drivers/net/wireless/ath/ath11k/
H A Dtestmode.h11 void ath11k_tm_wmi_event(struct ath11k_base *ab, u32 cmd_id, struct sk_buff *skb);
18 struct sk_buff *skb)
17 ath11k_tm_wmi_event(struct ath11k_base *ab, u32 cmd_id, struct sk_buff *skb) argument
/linux-master/drivers/net/ethernet/sfc/
H A Def100_tx.h25 netdev_tx_t ef100_enqueue_skb(struct efx_tx_queue *tx_queue, struct sk_buff *skb);
26 int __ef100_enqueue_skb(struct efx_tx_queue *tx_queue, struct sk_buff *skb,
/linux-master/net/handshake/
H A Dgenl.h14 int handshake_nl_accept_doit(struct sk_buff *skb, struct genl_info *info);
15 int handshake_nl_done_doit(struct sk_buff *skb, struct genl_info *info);
/linux-master/net/dsa/
H A Dtag_none.c15 static struct sk_buff *dsa_user_notag_xmit(struct sk_buff *skb, argument
19 return skb;
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dtime_tai.c22 struct __sk_buff skb = { local
30 .ctx_in = &skb,
31 .ctx_size_in = sizeof(skb),
32 .ctx_out = &skb,
33 .ctx_size_out = sizeof(skb),
51 ts1 = skb.tstamp;
52 ts2 = skb.cb[0] | ((__u64)skb.cb[1] << 32);
/linux-master/net/netrom/
H A Dnr_out.c32 void nr_output(struct sock *sk, struct sk_buff *skb) argument
38 if (skb->len - NR_TRANSPORT_LEN > NR_MAX_PACKET_SIZE) {
40 skb_copy_from_linear_data(skb, transport, NR_TRANSPORT_LEN);
41 skb_pull(skb, NR_TRANSPORT_LEN);
43 frontlen = skb_headroom(skb);
45 while (skb->len > 0) {
51 len = (NR_MAX_PACKET_SIZE > skb->len) ? skb->len : NR_MAX_PACKET_SIZE;
54 skb_copy_from_linear_data(skb, skb_put(skbn, len), len);
55 skb_pull(skb, le
79 nr_send_iframe(struct sock *sk, struct sk_buff *skb) argument
99 struct sk_buff *skb, *skbn; local
125 struct sk_buff *skb, *skbn; local
185 nr_transmit_buffer(struct sock *sk, struct sk_buff *skb) argument
[all...]
/linux-master/net/ipv4/
H A Desp4.c45 * TODO: Use spare space in skb for this where possible.
99 static void esp_ssg_unref(struct xfrm_state *x, void *tmp, struct sk_buff *skb) argument
114 * Skip the first sg which comes from skb->data.
118 skb_page_unref(sg_page(sg), skb->pp_recycle);
192 static int esp_output_tcp_finish(struct xfrm_state *x, struct sk_buff *skb) argument
206 err = espintcp_queue_out(sk, skb);
208 err = espintcp_push_skb(sk, skb);
217 struct sk_buff *skb)
219 struct dst_entry *dst = skb_dst(skb);
222 return esp_output_tcp_finish(x, skb);
216 esp_output_tcp_encap_cb(struct net *net, struct sock *sk, struct sk_buff *skb) argument
225 esp_output_tail_tcp(struct xfrm_state *x, struct sk_buff *skb) argument
240 esp_output_tail_tcp(struct xfrm_state *x, struct sk_buff *skb) argument
250 struct sk_buff *skb = data; local
287 esp_restore_header(struct sk_buff *skb, unsigned int offset) argument
297 esp_output_restore_header(struct sk_buff *skb) argument
306 esp_output_set_extra(struct sk_buff *skb, struct xfrm_state *x, struct ip_esp_hdr *esph, struct esp_output_extra *extra) argument
338 struct sk_buff *skb = data; local
344 esp_output_udp_encap(struct sk_buff *skb, int encap_type, struct esp_info *esp, __be16 sport, __be16 dport) argument
369 esp_output_tcp_encap(struct xfrm_state *x, struct sk_buff *skb, struct esp_info *esp) argument
395 esp_output_tcp_encap(struct xfrm_state *x, struct sk_buff *skb, struct esp_info *esp) argument
403 esp_output_encap(struct xfrm_state *x, struct sk_buff *skb, struct esp_info *esp) argument
435 esp_output_head(struct xfrm_state *x, struct sk_buff *skb, struct esp_info *esp) argument
525 esp_output_tail(struct xfrm_state *x, struct sk_buff *skb, struct esp_info *esp) argument
647 esp_output(struct xfrm_state *x, struct sk_buff *skb) argument
697 esp_remove_trailer(struct sk_buff *skb) argument
738 esp_input_done2(struct sk_buff *skb, int err) argument
829 struct sk_buff *skb = data; local
834 esp_input_restore_header(struct sk_buff *skb) argument
840 esp_input_set_header(struct sk_buff *skb, __be32 *seqhi) argument
859 struct sk_buff *skb = data; local
870 esp_input(struct xfrm_state *x, struct sk_buff *skb) argument
963 esp4_err(struct sk_buff *skb, u32 info) argument
1192 esp4_rcv_cb(struct sk_buff *skb, int err) argument
[all...]
/linux-master/drivers/staging/gdm724x/
H A Dnetlink_k.c29 static void netlink_rcv_cb(struct sk_buff *skb) argument
42 if (skb->len < NLMSG_HDRLEN) {
43 pr_err("nl cb - invalid skb length\n");
47 nlh = (struct nlmsghdr *)skb->data;
49 if (skb->len < nlh->nlmsg_len || nlh->nlmsg_len > ND_MAX_MSG_LEN) {
51 skb->len, nlh->nlmsg_len);
68 static void netlink_rcv(struct sk_buff *skb) argument
71 netlink_rcv_cb(skb);
96 struct sk_buff *skb = NULL; local
106 skb
[all...]
/linux-master/drivers/net/wireless/ti/wl1251/
H A Dtx.c56 static int wl1251_tx_id(struct wl1251 *wl, struct sk_buff *skb) argument
62 wl->tx_frames[i] = skb;
134 static int wl1251_tx_fill_hdr(struct wl1251 *wl, struct sk_buff *skb, argument
142 if (!skb)
145 id = wl1251_tx_id(wl, skb);
149 fc = *(u16 *)skb->data;
150 tx_hdr = skb_push(skb, sizeof(*tx_hdr));
152 tx_hdr->length = cpu_to_le16(skb->len - sizeof(*tx_hdr));
158 tx_hdr->xmit_queue = wl1251_tx_get_queue(skb_get_queue_mapping(skb));
167 static int wl1251_tx_send_packet(struct wl1251 *wl, struct sk_buff *skb, argument
289 wl1251_tx_frame(struct wl1251 *wl, struct sk_buff *skb) argument
333 struct sk_buff *skb; local
399 struct sk_buff *skb; local
555 struct sk_buff *skb; local
[all...]

Completed in 277 milliseconds

<<11121314151617181920>>