Searched refs:skb (Results 1 – 4 of 4) sorted by relevance
/lib/ |
D | test_blackhole_dev.c | 31 struct sk_buff *skb; in test_blackholedev_init() local 37 skb = alloc_skb(SKB_SIZE, GFP_KERNEL); in test_blackholedev_init() 38 if (!skb) in test_blackholedev_init() 42 skb_reserve(skb, HEAD_SIZE); in test_blackholedev_init() 46 memset(__skb_put(skb, data_len), 0xf, data_len); in test_blackholedev_init() 50 uh = (struct udphdr *)skb_push(skb, sizeof(struct udphdr)); in test_blackholedev_init() 51 skb_set_transport_header(skb, 0); in test_blackholedev_init() 56 ip6h = (struct ipv6hdr *)skb_push(skb, sizeof(struct ipv6hdr)); in test_blackholedev_init() 57 skb_set_network_header(skb, 0); in test_blackholedev_init() 64 ethh = (struct ethhdr *)skb_push(skb, sizeof(struct ethhdr)); in test_blackholedev_init() [all …]
|
D | nlattr.c | 636 struct nlattr *__nla_reserve(struct sk_buff *skb, int attrtype, int attrlen) in __nla_reserve() argument 640 nla = skb_put(skb, nla_total_size(attrlen)); in __nla_reserve() 664 struct nlattr *__nla_reserve_64bit(struct sk_buff *skb, int attrtype, in __nla_reserve_64bit() argument 667 if (nla_need_padding_for_64bit(skb)) in __nla_reserve_64bit() 668 nla_align_64bit(skb, padattr); in __nla_reserve_64bit() 670 return __nla_reserve(skb, attrtype, attrlen); in __nla_reserve_64bit() 684 void *__nla_reserve_nohdr(struct sk_buff *skb, int attrlen) in __nla_reserve_nohdr() argument 686 return skb_put_zero(skb, NLA_ALIGN(attrlen)); in __nla_reserve_nohdr() 702 struct nlattr *nla_reserve(struct sk_buff *skb, int attrtype, int attrlen) in nla_reserve() argument 704 if (unlikely(skb_tailroom(skb) < nla_total_size(attrlen))) in nla_reserve() [all …]
|
D | kobject_uevent.c | 283 struct sk_buff *skb = NULL; in alloc_uevent_skb() local 289 skb = alloc_skb(len + env->buflen, GFP_KERNEL); in alloc_uevent_skb() 290 if (!skb) in alloc_uevent_skb() 294 scratch = skb_put(skb, len); in alloc_uevent_skb() 297 skb_put_data(skb, env->buf, env->buflen); in alloc_uevent_skb() 299 parms = &NETLINK_CB(skb); in alloc_uevent_skb() 305 return skb; in alloc_uevent_skb() 312 struct sk_buff *skb = NULL; in uevent_net_broadcast_untagged() local 323 if (!skb) { in uevent_net_broadcast_untagged() 325 skb = alloc_uevent_skb(env, action_string, devpath); in uevent_net_broadcast_untagged() [all …]
|
D | test_bpf.c | 6470 struct sk_buff *skb; in populate_skb() local 6475 skb = alloc_skb(MAX_DATA, GFP_KERNEL); in populate_skb() 6476 if (!skb) in populate_skb() 6479 __skb_put_data(skb, buf, size); in populate_skb() 6482 skb_reset_mac_header(skb); in populate_skb() 6483 skb->protocol = htons(ETH_P_IP); in populate_skb() 6484 skb->pkt_type = SKB_TYPE; in populate_skb() 6485 skb->mark = SKB_MARK; in populate_skb() 6486 skb->hash = SKB_HASH; in populate_skb() 6487 skb->queue_mapping = SKB_QUEUE_MAP; in populate_skb() [all …]
|