/kernel/ |
D | audit.c | 194 struct sk_buff *skb; /* formatted skb ready to send */ member 202 struct sk_buff *skb; member 526 static void kauditd_printk_skb(struct sk_buff *skb) in kauditd_printk_skb() argument 528 struct nlmsghdr *nlh = nlmsg_hdr(skb); in kauditd_printk_skb() 543 static void kauditd_rehold_skb(struct sk_buff *skb) in kauditd_rehold_skb() argument 546 skb_queue_head(&audit_hold_queue, skb); in kauditd_rehold_skb() 561 static void kauditd_hold_skb(struct sk_buff *skb) in kauditd_hold_skb() argument 565 kauditd_printk_skb(skb); in kauditd_hold_skb() 569 kfree_skb(skb); in kauditd_hold_skb() 576 skb_queue_tail(&audit_hold_queue, skb); in kauditd_hold_skb() [all …]
|
D | taskstats.c | 72 struct sk_buff *skb; in prepare_reply() local 78 skb = genlmsg_new(size, GFP_KERNEL); in prepare_reply() 79 if (!skb) in prepare_reply() 85 reply = genlmsg_put(skb, 0, seq, &family, 0, cmd); in prepare_reply() 87 reply = genlmsg_put_reply(skb, info, &family, 0, cmd); in prepare_reply() 89 nlmsg_free(skb); in prepare_reply() 93 *skbp = skb; in prepare_reply() 100 static int send_reply(struct sk_buff *skb, struct genl_info *info) in send_reply() argument 102 struct genlmsghdr *genlhdr = nlmsg_data(nlmsg_hdr(skb)); in send_reply() 105 genlmsg_end(skb, reply); in send_reply() [all …]
|
D | auditfilter.c | 1064 struct sk_buff *skb; in audit_list_rules() local 1077 skb = audit_make_reply(seq, AUDIT_LIST_RULES, 0, 1, in audit_list_rules() 1080 if (skb) in audit_list_rules() 1081 skb_queue_tail(q, skb); in audit_list_rules() 1085 skb = audit_make_reply(seq, AUDIT_LIST_RULES, 1, 1, NULL, 0); in audit_list_rules() 1086 if (skb) in audit_list_rules() 1087 skb_queue_tail(q, skb); in audit_list_rules()
|
/kernel/bpf/ |
D | cpumap.c | 165 struct sk_buff *skb) in cpu_map_build_skb() argument 195 skb = build_skb_around(skb, pkt_data_start, frame_size); in cpu_map_build_skb() 196 if (unlikely(!skb)) in cpu_map_build_skb() 199 skb_reserve(skb, hard_start_headroom); in cpu_map_build_skb() 200 __skb_put(skb, xdpf->len); in cpu_map_build_skb() 202 skb_metadata_set(skb, xdpf->metasize); in cpu_map_build_skb() 205 skb->protocol = eth_type_trans(skb, xdpf->dev_rx); in cpu_map_build_skb() 219 return skb; in cpu_map_build_skb() 309 struct sk_buff *skb = skbs[i]; in cpu_map_kthread_run() local 312 skb = cpu_map_build_skb(rcpu, xdpf, skb); in cpu_map_kthread_run() [all …]
|
D | cgroup.c | 624 struct sk_buff *skb, in __cgroup_bpf_run_filter_skb() argument 627 unsigned int offset = skb->data - skb_network_header(skb); in __cgroup_bpf_run_filter_skb() 640 save_sk = skb->sk; in __cgroup_bpf_run_filter_skb() 641 skb->sk = sk; in __cgroup_bpf_run_filter_skb() 642 __skb_push(skb, offset); in __cgroup_bpf_run_filter_skb() 645 bpf_compute_and_save_data_end(skb, &saved_data_end); in __cgroup_bpf_run_filter_skb() 649 cgrp->bpf.effective[type], skb, __bpf_prog_run_save_cb); in __cgroup_bpf_run_filter_skb() 651 ret = BPF_PROG_RUN_ARRAY(cgrp->bpf.effective[type], skb, in __cgroup_bpf_run_filter_skb() 655 bpf_restore_data_end(skb, saved_data_end); in __cgroup_bpf_run_filter_skb() 656 __skb_pull(skb, offset); in __cgroup_bpf_run_filter_skb() [all …]
|
D | devmap.c | 481 int dev_map_generic_redirect(struct bpf_dtab_netdev *dst, struct sk_buff *skb, in dev_map_generic_redirect() argument 486 err = xdp_ok_fwd_dev(dst->dev, skb->len); in dev_map_generic_redirect() 489 skb->dev = dst->dev; in dev_map_generic_redirect() 490 generic_xdp_tx(skb, xdp_prog); in dev_map_generic_redirect()
|
D | core.c | 62 void *bpf_internal_load_pointer_neg_helper(const struct sk_buff *skb, int k, unsigned int size) in bpf_internal_load_pointer_neg_helper() argument 67 ptr = skb_network_header(skb) + k - SKF_NET_OFF; in bpf_internal_load_pointer_neg_helper() 69 ptr = skb_mac_header(skb) + k - SKF_LL_OFF; in bpf_internal_load_pointer_neg_helper() 71 if (ptr >= skb->head && ptr + size <= skb_tail_pointer(skb)) in bpf_internal_load_pointer_neg_helper() 2111 int __weak skb_copy_bits(const struct sk_buff *skb, int offset, void *to, in skb_copy_bits() argument
|