Home
last modified time | relevance | path

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

/include/uapi/linux/
A Dnetlink.h103 #define NLMSG_DATA(nlh) ((void *)(((char *)nlh) + NLMSG_HDRLEN)) argument
104 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ argument
105 (struct nlmsghdr *)(((char *)(nlh)) + \
106 NLMSG_ALIGN((nlh)->nlmsg_len)))
107 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \ argument
108 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
109 (nlh)->nlmsg_len <= (len))
110 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len))) argument
/include/linux/netfilter/
A Dnfnetlink.h13 const struct nlmsghdr *nlh; member
67 static inline void nfnl_fill_hdr(struct nlmsghdr *nlh, u8 family, u8 version, in nfnl_fill_hdr() argument
72 nfmsg = nlmsg_data(nlh); in nfnl_fill_hdr()
83 struct nlmsghdr *nlh; in nfnl_msg_put() local
85 nlh = nlmsg_put(skb, portid, seq, type, sizeof(struct nfgenmsg), flags); in nfnl_msg_put()
86 if (!nlh) in nfnl_msg_put()
89 nfnl_fill_hdr(nlh, family, version, res_id); in nfnl_msg_put()
91 return nlh; in nfnl_msg_put()
/include/net/
A Dnetlink.h494 struct nlmsghdr *nlh; member
619 return nlh->nlmsg_len - NLMSG_HDRLEN; in nlmsg_len()
635 return nlmsg_data(nlh); in nlmsg_payload()
669 nlh->nlmsg_len <= remaining); in nlmsg_ok()
946 return nlh ? !!(nlh->nlmsg_flags & NLM_F_ECHO) : 0; in nlmsg_report()
957 return nlh ? nlh->nlmsg_seq : 0; in nlmsg_seq()
969 nlmsg_attrlen(nlh, hdrlen), rem)
1083 nlh->nlmsg_len = skb_tail_pointer(skb) - (unsigned char *)nlh; in nlmsg_end()
1122 nlmsg_trim(skb, nlh); in nlmsg_cancel()
1234 struct nlmsghdr *nlh) in nl_dump_check_consistent() argument
[all …]
A Drtnetlink.h64 static inline int rtnl_msg_family(const struct nlmsghdr *nlh) in rtnl_msg_family() argument
66 if (nlmsg_len(nlh) >= sizeof(struct rtgenmsg)) in rtnl_msg_family()
67 return ((struct rtgenmsg *) nlmsg_data(nlh))->rtgen_family; in rtnl_msg_family()
252 int rtnl_delete_link(struct net_device *dev, u32 portid, const struct nlmsghdr *nlh);
254 u32 portid, const struct nlmsghdr *nlh);
A Dgenetlink.h387 static inline int genlmsg_parse_deprecated(const struct nlmsghdr *nlh, in genlmsg_parse_deprecated() argument
393 return __nlmsg_parse(nlh, family->hdrsize + GENL_HDRLEN, tb, maxtype, in genlmsg_parse_deprecated()
406 static inline int genlmsg_parse(const struct nlmsghdr *nlh, in genlmsg_parse() argument
412 return __nlmsg_parse(nlh, family->hdrsize + GENL_HDRLEN, tb, maxtype, in genlmsg_parse()
581 struct nlmsghdr *nlh = (struct nlmsghdr *)((unsigned char *)gnlh - in genlmsg_len() local
583 return (nlh->nlmsg_len - GENL_HDRLEN - NLMSG_HDRLEN); in genlmsg_len()
A Dfib_rules.h202 int fib_newrule(struct net *net, struct sk_buff *skb, struct nlmsghdr *nlh,
204 int fib_delrule(struct net *net, struct sk_buff *skb, struct nlmsghdr *nlh,
A Dip_fib.h653 int ip_valid_fib_dump_req(struct net *net, const struct nlmsghdr *nlh,
A Dxfrm.h2248 struct nlmsghdr *(*rcv_msg_compat)(const struct nlmsghdr *nlh,
/include/rdma/
A Drdma_netlink.h18 int (*doit)(struct sk_buff *skb, struct nlmsghdr *nlh,
65 void *ibnl_put_msg(struct sk_buff *skb, struct nlmsghdr **nlh, int seq,
76 int ibnl_put_attr(struct sk_buff *skb, struct nlmsghdr *nlh,
/include/linux/
A Dsock_diag.h18 int (*dump)(struct sk_buff *skb, struct nlmsghdr *nlh);
20 int (*destroy)(struct sk_buff *skb, struct nlmsghdr *nlh);
28 int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh);
A Drtnetlink.h22 u32 group, const struct nlmsghdr *nlh, gfp_t flags);
29 u32 portid, const struct nlmsghdr *nlh);
36 const struct nlmsghdr *nlh);
38 gfp_t flags, u32 portid, const struct nlmsghdr *nlh);
A Dnetlink.h224 void netlink_ack(struct sk_buff *in_skb, struct nlmsghdr *nlh, int err,
283 const struct nlmsghdr *nlh; member
332 const struct nlmsghdr *nlh,
335 const struct nlmsghdr *nlh, in netlink_dump_start() argument
341 return __netlink_dump_start(ssk, skb, nlh, control); in netlink_dump_start()
A Dnetdevice.h1567 int (*ndo_fdb_del_bulk)(struct nlmsghdr *nlh,
1599 struct nlmsghdr *nlh,
1608 struct nlmsghdr *nlh,

Completed in 52 milliseconds