Home
last modified time | relevance | path

Searched refs:nlh (Results 1 – 14 of 14) sorted by relevance

/linux-4.19.296/include/uapi/linux/
Dnetlink.h94 #define NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0))) argument
95 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ argument
96 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
97 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \ argument
98 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
99 (nlh)->nlmsg_len <= (len))
100 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len))) argument
/linux-4.19.296/include/net/
Dnetlink.h234 struct nlmsghdr *nlh; member
313 static inline void *nlmsg_data(const struct nlmsghdr *nlh) in nlmsg_data() argument
315 return (unsigned char *) nlh + NLMSG_HDRLEN; in nlmsg_data()
322 static inline int nlmsg_len(const struct nlmsghdr *nlh) in nlmsg_len() argument
324 return nlh->nlmsg_len - NLMSG_HDRLEN; in nlmsg_len()
332 static inline struct nlattr *nlmsg_attrdata(const struct nlmsghdr *nlh, in nlmsg_attrdata() argument
335 unsigned char *data = nlmsg_data(nlh); in nlmsg_attrdata()
344 static inline int nlmsg_attrlen(const struct nlmsghdr *nlh, int hdrlen) in nlmsg_attrlen() argument
346 return nlmsg_len(nlh) - NLMSG_ALIGN(hdrlen); in nlmsg_attrlen()
354 static inline int nlmsg_ok(const struct nlmsghdr *nlh, int remaining) in nlmsg_ok() argument
[all …]
Drtnetlink.h23 static inline int rtnl_msg_family(const struct nlmsghdr *nlh) in rtnl_msg_family() argument
25 if (nlmsg_len(nlh) >= sizeof(struct rtgenmsg)) in rtnl_msg_family()
26 return ((struct rtgenmsg *) nlmsg_data(nlh))->rtgen_family; in rtnl_msg_family()
Dgenetlink.h168 static inline int genlmsg_parse(const struct nlmsghdr *nlh, in genlmsg_parse() argument
174 return nlmsg_parse(nlh, family->hdrsize + GENL_HDRLEN, tb, maxtype, in genlmsg_parse()
316 struct nlmsghdr *nlh = (struct nlmsghdr *)((unsigned char *)gnlh - in genlmsg_len() local
318 return (nlh->nlmsg_len - GENL_HDRLEN - NLMSG_HDRLEN); in genlmsg_len()
Dfib_rules.h200 int fib_nl_newrule(struct sk_buff *skb, struct nlmsghdr *nlh,
202 int fib_nl_delrule(struct sk_buff *skb, struct nlmsghdr *nlh,
/linux-4.19.296/include/linux/netfilter/
Dnfnetlink.h12 const struct nlmsghdr *nlh,
16 const struct nlmsghdr *nlh,
20 const struct nlmsghdr *nlh,
52 static inline void nfnl_fill_hdr(struct nlmsghdr *nlh, u8 family, u8 version, in nfnl_fill_hdr() argument
57 nfmsg = nlmsg_data(nlh); in nfnl_fill_hdr()
68 struct nlmsghdr *nlh; in nfnl_msg_put() local
70 nlh = nlmsg_put(skb, portid, seq, type, sizeof(struct nfgenmsg), flags); in nfnl_msg_put()
71 if (!nlh) in nfnl_msg_put()
74 nfnl_fill_hdr(nlh, family, version, res_id); in nfnl_msg_put()
76 return nlh; in nfnl_msg_put()
/linux-4.19.296/crypto/
Dcrypto_user.c235 struct nlmsghdr *nlh; in crypto_report_alg() local
239 nlh = nlmsg_put(skb, NETLINK_CB(in_skb).portid, info->nlmsg_seq, in crypto_report_alg()
241 if (!nlh) { in crypto_report_alg()
246 ualg = nlmsg_data(nlh); in crypto_report_alg()
250 nlmsg_cancel(skb, nlh); in crypto_report_alg()
254 nlmsg_end(skb, nlh); in crypto_report_alg()
309 info.nlmsg_seq = cb->nlh->nlmsg_seq; in crypto_dump_report()
335 static int crypto_update_alg(struct sk_buff *skb, struct nlmsghdr *nlh, in crypto_update_alg() argument
339 struct crypto_user_alg *p = nlmsg_data(nlh); in crypto_update_alg()
371 static int crypto_del_alg(struct sk_buff *skb, struct nlmsghdr *nlh, in crypto_del_alg() argument
[all …]
/linux-4.19.296/include/linux/
Dsock_diag.h17 int (*dump)(struct sk_buff *skb, struct nlmsghdr *nlh);
19 int (*destroy)(struct sk_buff *skb, struct nlmsghdr *nlh);
25 void sock_diag_register_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh));
26 void sock_diag_unregister_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh));
Dnetlink.h117 extern void netlink_ack(struct sk_buff *in_skb, struct nlmsghdr *nlh, int err,
172 const struct nlmsghdr *nlh; member
204 const struct nlmsghdr *nlh,
207 const struct nlmsghdr *nlh, in netlink_dump_start() argument
213 return __netlink_dump_start(ssk, skb, nlh, control); in netlink_dump_start()
Dinet_diag.h17 const struct nlmsghdr *nlh,
49 struct sk_buff *in_skb, const struct nlmsghdr *nlh,
Drtnetlink.h15 u32 group, struct nlmsghdr *nlh, gfp_t flags);
Dnetdevice.h1383 struct nlmsghdr *nlh,
1391 struct nlmsghdr *nlh,
/linux-4.19.296/include/rdma/
Drdma_netlink.h10 int (*doit)(struct sk_buff *skb, struct nlmsghdr *nlh,
57 void *ibnl_put_msg(struct sk_buff *skb, struct nlmsghdr **nlh, int seq,
68 int ibnl_put_attr(struct sk_buff *skb, struct nlmsghdr *nlh,
/linux-4.19.296/lib/
Dkobject_uevent.c723 static int uevent_net_rcv_skb(struct sk_buff *skb, struct nlmsghdr *nlh, in uevent_net_rcv_skb() argument
729 if (!nlmsg_data(nlh)) in uevent_net_rcv_skb()