/kernel/ |
D | audit.c | 200 struct sk_buff *skb; /* formatted skb ready to send */ member 208 struct sk_buff *skb; member 501 struct sk_buff *skb, bool *ack) in auditd_set() argument 519 nlh = nlmsg_hdr(skb); in auditd_set() 520 netlink_ack(skb, nlh, 0, NULL); in auditd_set() 543 static void kauditd_printk_skb(struct sk_buff *skb) in kauditd_printk_skb() argument 545 struct nlmsghdr *nlh = nlmsg_hdr(skb); in kauditd_printk_skb() 561 static void kauditd_rehold_skb(struct sk_buff *skb, __always_unused int error) in kauditd_rehold_skb() argument 564 skb_queue_tail(&audit_hold_queue, skb); in kauditd_rehold_skb() 580 static void kauditd_hold_skb(struct sk_buff *skb, int error) in kauditd_hold_skb() argument [all …]
|
D | taskstats.c | 68 struct sk_buff *skb; in prepare_reply() local 74 skb = genlmsg_new(size, GFP_KERNEL); in prepare_reply() 75 if (!skb) in prepare_reply() 81 reply = genlmsg_put(skb, 0, seq, &family, 0, cmd); in prepare_reply() 83 reply = genlmsg_put_reply(skb, info, &family, 0, cmd); in prepare_reply() 85 nlmsg_free(skb); in prepare_reply() 89 *skbp = skb; in prepare_reply() 96 static int send_reply(struct sk_buff *skb, struct genl_info *info) in send_reply() argument 98 struct genlmsghdr *genlhdr = nlmsg_data(nlmsg_hdr(skb)); in send_reply() 101 genlmsg_end(skb, reply); in send_reply() [all …]
|
D | auditfilter.c | 1071 struct sk_buff *skb; in audit_list_rules() local 1084 skb = audit_make_reply(seq, AUDIT_LIST_RULES, 0, 1, in audit_list_rules() 1087 if (skb) in audit_list_rules() 1088 skb_queue_tail(q, skb); in audit_list_rules() 1092 skb = audit_make_reply(seq, AUDIT_LIST_RULES, 1, 1, NULL, 0); in audit_list_rules() 1093 if (skb) in audit_list_rules() 1094 skb_queue_tail(q, skb); in audit_list_rules()
|
/kernel/bpf/ |
D | cpumap.c | 159 struct sk_buff *skb) in cpu_map_build_skb() argument 174 skb = build_skb_around(skb, pkt_data_start, frame_size); in cpu_map_build_skb() 175 if (unlikely(!skb)) in cpu_map_build_skb() 178 skb_reserve(skb, hard_start_headroom); in cpu_map_build_skb() 179 __skb_put(skb, xdpf->len); in cpu_map_build_skb() 181 skb_metadata_set(skb, xdpf->metasize); in cpu_map_build_skb() 184 skb->protocol = eth_type_trans(skb, xdpf->dev_rx); in cpu_map_build_skb() 198 return skb; in cpu_map_build_skb() 364 struct sk_buff *skb = skbs[i]; in cpu_map_kthread_run() local 367 skb = cpu_map_build_skb(xdpf, skb); in cpu_map_kthread_run() [all …]
|
D | cgroup.c | 1040 struct sk_buff *skb, in __cgroup_bpf_run_filter_skb() argument 1043 unsigned int offset = skb->data - skb_network_header(skb); in __cgroup_bpf_run_filter_skb() 1056 save_sk = skb->sk; in __cgroup_bpf_run_filter_skb() 1057 skb->sk = sk; in __cgroup_bpf_run_filter_skb() 1058 __skb_push(skb, offset); in __cgroup_bpf_run_filter_skb() 1061 bpf_compute_and_save_data_end(skb, &saved_data_end); in __cgroup_bpf_run_filter_skb() 1065 cgrp->bpf.effective[type], skb, __bpf_prog_run_save_cb); in __cgroup_bpf_run_filter_skb() 1067 ret = BPF_PROG_RUN_ARRAY(cgrp->bpf.effective[type], skb, in __cgroup_bpf_run_filter_skb() 1071 bpf_restore_data_end(skb, saved_data_end); in __cgroup_bpf_run_filter_skb() 1072 __skb_pull(skb, offset); in __cgroup_bpf_run_filter_skb() [all …]
|
D | devmap.c | 514 int dev_map_generic_redirect(struct bpf_dtab_netdev *dst, struct sk_buff *skb, in dev_map_generic_redirect() argument 519 err = xdp_ok_fwd_dev(dst->dev, skb->len); in dev_map_generic_redirect() 522 skb->dev = dst->dev; in dev_map_generic_redirect() 523 generic_xdp_tx(skb, xdp_prog); in dev_map_generic_redirect()
|
D | core.c | 68 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 73 ptr = skb_network_header(skb) + k - SKF_NET_OFF; in bpf_internal_load_pointer_neg_helper() 75 if (unlikely(!skb_mac_header_was_set(skb))) in bpf_internal_load_pointer_neg_helper() 77 ptr = skb_mac_header(skb) + k - SKF_LL_OFF; in bpf_internal_load_pointer_neg_helper() 79 if (ptr >= skb->head && ptr + size <= skb_tail_pointer(skb)) in bpf_internal_load_pointer_neg_helper() 2336 int __weak skb_copy_bits(const struct sk_buff *skb, int offset, void *to, in skb_copy_bits() argument
|