Home
last modified time | relevance | path

Searched refs:nlmsghdr (Results 1 – 25 of 156) sorted by relevance

1234567

/linux-6.3-rc2/tools/include/uapi/linux/
A Dnetlink.h44 struct nlmsghdr { struct
91 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))
96 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
97 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \
98 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
111 struct nlmsghdr msg;
/linux-6.3-rc2/include/linux/
A Dsock_diag.h12 struct nlmsghdr;
17 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));
A Dnetlink.h16 static inline struct nlmsghdr *nlmsg_hdr(const struct sk_buff *skb) in nlmsg_hdr()
18 return (struct nlmsghdr *)skb->data; in nlmsg_hdr()
201 void netlink_ack(struct sk_buff *in_skb, struct nlmsghdr *nlh, int err,
253 const struct nlmsghdr *nlh;
286 struct nlmsghdr *
299 const struct nlmsghdr *nlh,
302 const struct nlmsghdr *nlh, in netlink_dump_start()
A Drtnetlink.h15 u32 group, const struct nlmsghdr *nlh, gfp_t flags);
22 u32 portid, const struct nlmsghdr *nlh);
30 gfp_t flags, u32 portid, const struct nlmsghdr *nlh);
/linux-6.3-rc2/include/net/
A Dnetlink.h470 struct nlmsghdr *nlh;
512 int (*cb)(struct sk_buff *, struct nlmsghdr *,
584 static inline void *nlmsg_data(const struct nlmsghdr *nlh) in nlmsg_data()
593 static inline int nlmsg_len(const struct nlmsghdr *nlh) in nlmsg_len()
627 return (remaining >= (int) sizeof(struct nlmsghdr) && in nlmsg_ok()
628 nlh->nlmsg_len >= sizeof(struct nlmsghdr) && in nlmsg_ok()
640 static inline struct nlmsghdr *
641 nlmsg_next(const struct nlmsghdr *nlh, int *remaining) in nlmsg_next()
904 static inline int nlmsg_report(const struct nlmsghdr *nlh) in nlmsg_report()
915 static inline u32 nlmsg_seq(const struct nlmsghdr *nlh) in nlmsg_seq()
[all …]
A Dgenetlink.h107 struct nlmsghdr * nlhdr;
277 static inline struct nlmsghdr *genlmsg_nlhdr(void *user_hdr) in genlmsg_nlhdr()
279 return (struct nlmsghdr *)((char *)user_hdr - in genlmsg_nlhdr()
293 static inline int genlmsg_parse_deprecated(const struct nlmsghdr *nlh, in genlmsg_parse_deprecated()
312 static inline int genlmsg_parse(const struct nlmsghdr *nlh, in genlmsg_parse()
461 struct nlmsghdr *nlh = (struct nlmsghdr *)((unsigned char *)gnlh - in genlmsg_len()
A Drtnetlink.h8 typedef int (*rtnl_doit_func)(struct sk_buff *, struct nlmsghdr *,
37 static inline int rtnl_msg_family(const struct nlmsghdr *nlh) in rtnl_msg_family()
189 int rtnl_delete_link(struct net_device *dev, u32 portid, const struct nlmsghdr *nlh);
191 u32 portid, const struct nlmsghdr *nlh);
/linux-6.3-rc2/include/uapi/linux/
A Dnetlink.h52 struct nlmsghdr { struct
100 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))
105 (struct nlmsghdr *)(((char *)(nlh)) + \
107 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \
108 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
121 struct nlmsghdr msg;
/linux-6.3-rc2/tools/testing/selftests/netfilter/
A Dnf-queue.c77 static int queue_cb(const struct nlmsghdr *nlh, void *data) in queue_cb()
120 static struct nlmsghdr *
123 struct nlmsghdr *nlh = mnl_nlmsg_put_header(buf); in nfq_build_cfg_request()
144 static struct nlmsghdr *
147 struct nlmsghdr *nlh = mnl_nlmsg_put_header(buf); in nfq_build_cfg_params()
167 static struct nlmsghdr *
174 struct nlmsghdr *nlh; in nfq_build_verdict()
212 struct nlmsghdr *nlh; in open_queue()
274 struct nlmsghdr *nlh; in mainloop()
/linux-6.3-rc2/tools/testing/selftests/net/mptcp/
A Dpm_nl_ctl.c105 struct nlmsghdr *nh; in capture_events()
308 struct nlmsghdr *nh; in resolve_mptcp_pm_netlink()
335 struct nlmsghdr *nh; in dsf()
446 struct nlmsghdr *nh; in csf()
571 struct nlmsghdr *nh; in remove_addr()
624 struct nlmsghdr *nh; in announce_addr()
748 struct nlmsghdr *nh; in add_addr()
879 struct nlmsghdr *nh; in del_addr()
1070 struct nlmsghdr *nh; in get_addr()
1110 struct nlmsghdr *nh; in dump_addrs()
[all …]
/linux-6.3-rc2/tools/testing/selftests/net/
A Dtap.c33 static struct rtattr *rtattr_add(struct nlmsghdr *nh, unsigned short type, in rtattr_add()
44 static struct rtattr *rtattr_begin(struct nlmsghdr *nh, unsigned short type) in rtattr_begin()
49 static void rtattr_end(struct nlmsghdr *nh, struct rtattr *attr) in rtattr_end()
56 static struct rtattr *rtattr_add_str(struct nlmsghdr *nh, unsigned short type, in rtattr_add_str()
65 static struct rtattr *rtattr_add_strsz(struct nlmsghdr *nh, unsigned short type, in rtattr_add_strsz()
74 static struct rtattr *rtattr_add_any(struct nlmsghdr *nh, unsigned short type, in rtattr_add_any()
84 int (*fill_rtattr)(struct nlmsghdr *nh), in dev_create()
85 int (*fill_info_data)(struct nlmsghdr *nh)) in dev_create()
88 struct nlmsghdr nh; in dev_create()
146 struct nlmsghdr nh; in dev_delete()
[all …]
/linux-6.3-rc2/include/linux/netfilter/
A Dnfnetlink.h13 const struct nlmsghdr *nlh;
68 static inline void nfnl_fill_hdr(struct nlmsghdr *nlh, u8 family, u8 version, in nfnl_fill_hdr()
79 static inline struct nlmsghdr *nfnl_msg_put(struct sk_buff *skb, u32 portid, in nfnl_msg_put()
84 struct nlmsghdr *nlh; in nfnl_msg_put()
/linux-6.3-rc2/samples/bpf/
A Dxdp_router_ipv4_user.c63 struct nlmsghdr *nh; in recv_msg()
73 nh = (struct nlmsghdr *)buf_ptr; in recv_msg()
254 struct nlmsghdr *nh; in get_route_table()
262 struct nlmsghdr nl; in get_route_table()
306 nh = (struct nlmsghdr *)buf; in get_route_table()
391 struct nlmsghdr *nh; in get_arp_table()
398 struct nlmsghdr nl; in get_arp_table()
441 nh = (struct nlmsghdr *)buf; in get_arp_table()
456 struct nlmsghdr *nh; in monitor_routes_thread()
517 nh = (struct nlmsghdr *)buf; in monitor_routes_thread()
[all …]
/linux-6.3-rc2/net/xfrm/
A Dxfrm_compat.c134 static struct nlmsghdr *xfrm_nlmsg_put_compat(struct sk_buff *skb, in xfrm_nlmsg_put_compat()
135 const struct nlmsghdr *nlh_src, u16 type) in xfrm_nlmsg_put_compat()
139 struct nlmsghdr *nlh_dst; in xfrm_nlmsg_put_compat()
289 static int xfrm_xlate64(struct sk_buff *dst, const struct nlmsghdr *nlh_src) in xfrm_xlate64()
293 struct nlmsghdr *nlh_dst; in xfrm_xlate64()
323 static int xfrm_alloc_compat(struct sk_buff *skb, const struct nlmsghdr *nlh_src) in xfrm_alloc_compat()
354 static size_t xfrm_user_rcv_calculate_len64(const struct nlmsghdr *src, in xfrm_user_rcv_calculate_len64()
402 struct nlmsghdr *nlmsg = dst; in xfrm_attr_cpy32()
464 static int xfrm_xlate32(struct nlmsghdr *dst, const struct nlmsghdr *src, in xfrm_xlate32()
583 static struct nlmsghdr *xfrm_user_rcv_msg_compat(const struct nlmsghdr *h32, in xfrm_user_rcv_msg_compat()
[all …]
/linux-6.3-rc2/include/rdma/
A Drdma_netlink.h16 int (*doit)(struct sk_buff *skb, struct nlmsghdr *nlh,
63 void *ibnl_put_msg(struct sk_buff *skb, struct nlmsghdr **nlh, int seq,
74 int ibnl_put_attr(struct sk_buff *skb, struct nlmsghdr *nlh,
/linux-6.3-rc2/tools/bpf/bpftool/
A Dnet.c96 typedef int (*__dump_nlmsg_t)(struct nlmsghdr *nlmsg, dump_nlmsg_t, void *cookie);
147 struct nlmsghdr *nh; in netlink_recv()
162 for (nh = (struct nlmsghdr *)buf; NLMSG_OK(nh, (unsigned int)len); in netlink_recv()
199 static int __dump_class_nlmsg(struct nlmsghdr *nlh, in __dump_class_nlmsg()
219 struct nlmsghdr nlh; in netlink_get_class()
238 static int __dump_qdisc_nlmsg(struct nlmsghdr *nlh, in __dump_qdisc_nlmsg()
258 struct nlmsghdr nlh; in netlink_get_qdisc()
277 static int __dump_filter_nlmsg(struct nlmsghdr *nlh, in __dump_filter_nlmsg()
297 struct nlmsghdr nlh; in netlink_get_filter()
317 static int __dump_link_nlmsg(struct nlmsghdr *nlh, in __dump_link_nlmsg()
[all …]
/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/
A Dxfrm_info.c186 static struct rtattr *rtattr_add(struct nlmsghdr *nh, unsigned short type, in rtattr_add()
197 static struct rtattr *rtattr_add_str(struct nlmsghdr *nh, unsigned short type, in rtattr_add_str()
206 static struct rtattr *rtattr_begin(struct nlmsghdr *nh, unsigned short type) in rtattr_begin()
211 static void rtattr_end(struct nlmsghdr *nh, struct rtattr *attr) in rtattr_end()
221 struct nlmsghdr nh; in setup_xfrmi_external_dev()
228 struct nlmsghdr *nh; in setup_xfrmi_external_dev()
/linux-6.3-rc2/samples/connector/
A Ducon.c48 struct nlmsghdr *nlh; in netlink_send()
56 nlh = (struct nlmsghdr *)buf; in netlink_send()
102 struct nlmsghdr *reply; in main()
214 reply = (struct nlmsghdr *)buf; in main()
/linux-6.3-rc2/include/crypto/internal/
A Dcryptouser.h8 int crypto_reportstat(struct sk_buff *in_skb, struct nlmsghdr *in_nlh, struct nlattr **attrs);
11 struct nlmsghdr *in_nlh, in crypto_reportstat()
/linux-6.3-rc2/net/dcb/
A Ddcbnl.c217 u32 flags, struct nlmsghdr **nlhp) in dcbnl_newmsg()
221 struct nlmsghdr *nlh; in dcbnl_newmsg()
241 static int dcbnl_getstate(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getstate()
311 static int dcbnl_getcap(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getcap()
465 static int dcbnl_getapp(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getapp()
535 static int dcbnl_setapp(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_setapp()
781 static int dcbnl_setall(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_setall()
1511 struct nlmsghdr *nlh; in dcbnl_notify()
1877 int (*cb)(struct net_device *, struct nlmsghdr *, u32,
1911 static int dcb_doit(struct sk_buff *skb, struct nlmsghdr *nlh, in dcb_doit()
[all …]
/linux-6.3-rc2/crypto/
A Dcrypto_user_base.c159 struct nlmsghdr *nlh; in crypto_report_alg()
184 static int crypto_report(struct sk_buff *in_skb, struct nlmsghdr *in_nlh, in crypto_report()
260 static int crypto_update_alg(struct sk_buff *skb, struct nlmsghdr *nlh, in crypto_update_alg()
296 static int crypto_del_alg(struct sk_buff *skb, struct nlmsghdr *nlh, in crypto_del_alg()
334 static int crypto_add_alg(struct sk_buff *skb, struct nlmsghdr *nlh, in crypto_add_alg()
382 static int crypto_del_rng(struct sk_buff *skb, struct nlmsghdr *nlh, in crypto_del_rng()
408 int (*doit)(struct sk_buff *, struct nlmsghdr *, struct nlattr **);
422 static int crypto_user_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh, in crypto_user_rcv_msg()
/linux-6.3-rc2/Documentation/userspace-api/netlink/
A Dintro.rst112 struct nlmsghdr {
160 :c:member:`nlmsghdr.nlmsg_seq` of ``0``.
197 | struct nlmsghdr - response header |
201 | struct nlmsghdr - original request header |
224 :c:member:`nlmsghdr.nlmsg_flags`.
230 | struct nlmsghdr - response header |
259 struct nlmsghdr:
289 struct nlmsghdr:
327 struct nlmsghdr:
349 the :c:member:`nlmsghdr.nlmsg_type` field.
[all …]
/linux-6.3-rc2/drivers/infiniband/core/
A Dnetlink.c131 void *ibnl_put_msg(struct sk_buff *skb, struct nlmsghdr **nlh, int seq, in ibnl_put_msg()
141 int ibnl_put_attr(struct sk_buff *skb, struct nlmsghdr *nlh, in ibnl_put_attr()
152 static int rdma_nl_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh, in rdma_nl_rcv_msg()
208 struct nlmsghdr *, in rdma_nl_rcv_skb() argument
212 struct nlmsghdr *nlh; in rdma_nl_rcv_skb()
/linux-6.3-rc2/drivers/staging/gdm724x/
A Dnetlink_k.c31 struct nlmsghdr *nlh; in netlink_rcv_cb()
47 nlh = (struct nlmsghdr *)skb->data; in netlink_rcv_cb()
97 struct nlmsghdr *nlh; in netlink_send()
/linux-6.3-rc2/net/core/
A Dsock_diag.c20 static int (*inet_rcv_compat)(struct sk_buff *skb, struct nlmsghdr *nlh);
169 void sock_diag_register_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh)) in sock_diag_register_inet_compat()
177 void sock_diag_unregister_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh)) in sock_diag_unregister_inet_compat()
217 static int __sock_diag_cmd(struct sk_buff *skb, struct nlmsghdr *nlh) in __sock_diag_cmd()
248 static int sock_diag_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh, in sock_diag_rcv_msg()

Completed in 65 milliseconds

1234567