Home
last modified time | relevance | path

Searched refs:skb (Results 1 – 3 of 3) sorted by relevance

/lib/
Dnlattr.c343 struct nlattr *__nla_reserve(struct sk_buff *skb, int attrtype, int attrlen) in __nla_reserve() argument
347 nla = (struct nlattr *) skb_put(skb, nla_total_size(attrlen)); in __nla_reserve()
367 void *__nla_reserve_nohdr(struct sk_buff *skb, int attrlen) in __nla_reserve_nohdr() argument
371 start = skb_put(skb, NLA_ALIGN(attrlen)); in __nla_reserve_nohdr()
390 struct nlattr *nla_reserve(struct sk_buff *skb, int attrtype, int attrlen) in nla_reserve() argument
392 if (unlikely(skb_tailroom(skb) < nla_total_size(attrlen))) in nla_reserve()
395 return __nla_reserve(skb, attrtype, attrlen); in nla_reserve()
409 void *nla_reserve_nohdr(struct sk_buff *skb, int attrlen) in nla_reserve_nohdr() argument
411 if (unlikely(skb_tailroom(skb) < NLA_ALIGN(attrlen))) in nla_reserve_nohdr()
414 return __nla_reserve_nohdr(skb, attrlen); in nla_reserve_nohdr()
[all …]
Dkobject_uevent.c90 static int kobj_bcast_filter(struct sock *dsk, struct sk_buff *skb, void *data) in kobj_bcast_filter() argument
293 struct sk_buff *skb; in kobject_uevent_env() local
301 skb = alloc_skb(len + env->buflen, GFP_KERNEL); in kobject_uevent_env()
302 if (skb) { in kobject_uevent_env()
306 scratch = skb_put(skb, len); in kobject_uevent_env()
312 scratch = skb_put(skb, len); in kobject_uevent_env()
316 NETLINK_CB(skb).dst_group = 1; in kobject_uevent_env()
317 retval = netlink_broadcast_filtered(uevent_sock, skb, in kobject_uevent_env()
Dtest_bpf.c5194 struct sk_buff *skb; in populate_skb() local
5199 skb = alloc_skb(MAX_DATA, GFP_KERNEL); in populate_skb()
5200 if (!skb) in populate_skb()
5203 memcpy(__skb_put(skb, size), buf, size); in populate_skb()
5206 skb_reset_mac_header(skb); in populate_skb()
5207 skb->protocol = htons(ETH_P_IP); in populate_skb()
5208 skb->pkt_type = SKB_TYPE; in populate_skb()
5209 skb->mark = SKB_MARK; in populate_skb()
5210 skb->hash = SKB_HASH; in populate_skb()
5211 skb->queue_mapping = SKB_QUEUE_MAP; in populate_skb()
[all …]