/include/uapi/linux/ |
D | netlink.h | 85 #define NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0))) argument 86 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ argument 87 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 88 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \ argument 89 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \ 90 (nlh)->nlmsg_len <= (len)) 91 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len))) argument
|
/include/net/ |
D | netlink.h | 229 struct nlmsghdr *nlh; member 303 static inline void *nlmsg_data(const struct nlmsghdr *nlh) in nlmsg_data() argument 305 return (unsigned char *) nlh + NLMSG_HDRLEN; in nlmsg_data() 312 static inline int nlmsg_len(const struct nlmsghdr *nlh) in nlmsg_len() argument 314 return nlh->nlmsg_len - NLMSG_HDRLEN; in nlmsg_len() 322 static inline struct nlattr *nlmsg_attrdata(const struct nlmsghdr *nlh, in nlmsg_attrdata() argument 325 unsigned char *data = nlmsg_data(nlh); in nlmsg_attrdata() 334 static inline int nlmsg_attrlen(const struct nlmsghdr *nlh, int hdrlen) in nlmsg_attrlen() argument 336 return nlmsg_len(nlh) - NLMSG_ALIGN(hdrlen); in nlmsg_attrlen() 344 static inline int nlmsg_ok(const struct nlmsghdr *nlh, int remaining) in nlmsg_ok() argument [all …]
|
D | rtnetlink.h | 18 static inline int rtnl_msg_family(const struct nlmsghdr *nlh) in rtnl_msg_family() argument 20 if (nlmsg_len(nlh) >= sizeof(struct rtgenmsg)) in rtnl_msg_family() 21 return ((struct rtgenmsg *) nlmsg_data(nlh))->rtgen_family; in rtnl_msg_family()
|
D | genetlink.h | 216 static inline int genlmsg_parse(const struct nlmsghdr *nlh, in genlmsg_parse() argument 221 return nlmsg_parse(nlh, family->hdrsize + GENL_HDRLEN, tb, maxtype, in genlmsg_parse() 365 struct nlmsghdr *nlh = (struct nlmsghdr *)((unsigned char *)gnlh - in genlmsg_len() local 367 return (nlh->nlmsg_len - GENL_HDRLEN - NLMSG_HDRLEN); in genlmsg_len()
|
D | switchdev.h | 193 struct nlmsghdr *nlh, u16 flags); 195 struct nlmsghdr *nlh, u16 flags); 273 struct nlmsghdr *nlh, in switchdev_port_bridge_setlink() argument 280 struct nlmsghdr *nlh, in switchdev_port_bridge_dellink() argument
|
D | fib_rules.h | 145 int fib_nl_newrule(struct sk_buff *skb, struct nlmsghdr *nlh); 146 int fib_nl_delrule(struct sk_buff *skb, struct nlmsghdr *nlh);
|
D | dn_fib.h | 104 const struct nlmsghdr *nlh, int *errp);
|
/include/rdma/ |
D | rdma_netlink.h | 45 void *ibnl_put_msg(struct sk_buff *skb, struct nlmsghdr **nlh, int seq, 56 int ibnl_put_attr(struct sk_buff *skb, struct nlmsghdr *nlh, 66 int ibnl_unicast(struct sk_buff *skb, struct nlmsghdr *nlh, 77 int ibnl_multicast(struct sk_buff *skb, struct nlmsghdr *nlh,
|
/include/linux/ |
D | sock_diag.h | 16 int (*dump)(struct sk_buff *skb, struct nlmsghdr *nlh); 18 int (*destroy)(struct sk_buff *skb, struct nlmsghdr *nlh); 24 void sock_diag_register_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh)); 25 void sock_diag_unregister_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh));
|
D | netlink.h | 69 extern void netlink_ack(struct sk_buff *in_skb, struct nlmsghdr *nlh, int err); 123 const struct nlmsghdr *nlh; member 156 const struct nlmsghdr *nlh, 159 const struct nlmsghdr *nlh, in netlink_dump_start() argument 165 return __netlink_dump_start(ssk, skb, nlh, control); in netlink_dump_start()
|
D | inet_diag.h | 21 const struct nlmsghdr *nlh, 46 struct sk_buff *in_skb, const struct nlmsghdr *nlh,
|
D | rtnetlink.h | 13 u32 group, struct nlmsghdr *nlh, gfp_t flags);
|
D | netdevice.h | 1286 struct nlmsghdr *nlh, 1294 struct nlmsghdr *nlh,
|
/include/linux/netfilter/ |
D | nfnetlink.h | 12 const struct nlmsghdr *nlh, 15 const struct nlmsghdr *nlh, 18 const struct nlmsghdr *nlh,
|