/linux-master/net/netfilter/ |
H A D | xt_mac.c | 25 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 D | nf_nat_masquerade.h | 9 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 D | nf_nat_redirect.h | 9 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 D | fexit_bpf2bpf_simple.c | 14 int BPF_PROG(test_main2, struct sk_buff *skb, int ret) argument 19 len = skb->len;
|
H A D | test_trace_ext.c | 12 int test_pkt_md_access_new(struct __sk_buff *skb) argument 14 ext_called = skb->len;
|
H A D | test_cgroup_link.c | 10 int egress(struct __sk_buff *skb) argument 17 int egress_alt(struct __sk_buff *skb) argument
|
H A D | loop5.c | 9 int while_true(volatile struct __sk_buff* skb) argument 14 if (skb->len)
|
H A D | skb_load_bytes.c | 12 int skb_process(struct __sk_buff *skb) argument 16 test_result = bpf_skb_load_bytes(skb, load_offset, buf, 10);
|
H A D | test_global_func11.c | 18 int global_func11(struct __sk_buff *skb) argument 20 return foo((const void *)skb);
|
H A D | test_global_func12.c | 18 int global_func12(struct __sk_buff *skb) argument 20 const struct S s = {.x = skb->len };
|
H A D | loop4.c | 11 int combinations(volatile struct __sk_buff* skb) argument 17 if (skb->len)
|
H A D | fib_lookup.c | 14 int fib_lookup(struct __sk_buff *skb) argument 16 fib_lookup_ret = bpf_fib_lookup(skb, &fib_params, sizeof(fib_params),
|
H A D | kfree_skb.c | 58 * 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 D | l3mdev.h | 38 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 D | esp.h | 10 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 D | ndlc.c | 39 #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 D | testmode.h | 11 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 D | ef100_tx.h | 25 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 D | genl.h | 14 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 D | tag_none.c | 15 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 D | time_tai.c | 22 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 D | nr_out.c | 32 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 D | esp4.c | 45 * 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 D | netlink_k.c | 29 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 D | tx.c | 56 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...] |