Home
last modified time | relevance | path

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

123456

/kernel/linux/linux-5.10/tools/testing/selftests/net/mptcp/
Dpm_nl_ctl.c39 struct nlmsghdr *nh = (void *)data; in init_genl_req()
55 static void nl_error(struct nlmsghdr *nh) in nl_error()
86 static int do_nl_req(int fd, struct nlmsghdr *nh, int len, int max) in do_nl_req()
118 static int genl_parse_getfamily(struct nlmsghdr *nlh) in genl_parse_getfamily()
149 char data[NLMSG_ALIGN(sizeof(struct nlmsghdr)) + in resolve_mptcp_pm_netlink()
152 struct nlmsghdr *nh; in resolve_mptcp_pm_netlink()
174 char data[NLMSG_ALIGN(sizeof(struct nlmsghdr)) + in add_addr()
178 struct nlmsghdr *nh; in add_addr()
285 char data[NLMSG_ALIGN(sizeof(struct nlmsghdr)) + in del_addr()
289 struct nlmsghdr *nh; in del_addr()
[all …]
/kernel/linux/linux-5.10/include/linux/netfilter/
Dnfnetlink.h12 const struct nlmsghdr *nlh,
16 const struct nlmsghdr *nlh,
20 const struct nlmsghdr *nlh,
60 static inline void nfnl_fill_hdr(struct nlmsghdr *nlh, u8 family, u8 version, in nfnl_fill_hdr()
71 static inline struct nlmsghdr *nfnl_msg_put(struct sk_buff *skb, u32 portid, in nfnl_msg_put()
76 struct nlmsghdr *nlh; in nfnl_msg_put()
/kernel/linux/linux-5.10/tools/include/uapi/linux/
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;
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dnetlink.h41 struct nlmsghdr { struct
67 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr))) argument
72 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
73 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \
74 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
84 struct nlmsghdr msg;
/kernel/linux/linux-5.10/include/linux/
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));
Dnetlink.h14 static inline struct nlmsghdr *nlmsg_hdr(const struct sk_buff *skb) in nlmsg_hdr()
16 return (struct nlmsghdr *)skb->data; in nlmsg_hdr()
149 void netlink_ack(struct sk_buff *in_skb, struct nlmsghdr *nlh, int err,
205 const struct nlmsghdr *nlh;
234 struct nlmsghdr *
247 const struct nlmsghdr *nlh,
250 const struct nlmsghdr *nlh, in netlink_dump_start()
/kernel/linux/linux-5.10/include/uapi/linux/
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;
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dnetlink.h54 struct nlmsghdr { struct
80 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr))) argument
84 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), (struct nlmsghdr *) (((char *)…
85 … NLMSG_OK(nlh,len) ((len) >= (int) sizeof(struct nlmsghdr) && (nlh)->nlmsg_len >= sizeof(struct nl…
94 struct nlmsghdr msg;
/kernel/linux/linux-5.10/include/net/
Dnetlink.h454 struct nlmsghdr *nlh;
496 int (*cb)(struct sk_buff *, struct nlmsghdr *,
568 static inline void *nlmsg_data(const struct nlmsghdr *nlh) in nlmsg_data()
577 static inline int nlmsg_len(const struct nlmsghdr *nlh) in nlmsg_len()
587 static inline struct nlattr *nlmsg_attrdata(const struct nlmsghdr *nlh, in nlmsg_attrdata()
599 static inline int nlmsg_attrlen(const struct nlmsghdr *nlh, int hdrlen) in nlmsg_attrlen()
609 static inline int nlmsg_ok(const struct nlmsghdr *nlh, int remaining) in nlmsg_ok()
611 return (remaining >= (int) sizeof(struct nlmsghdr) && in nlmsg_ok()
612 nlh->nlmsg_len >= sizeof(struct nlmsghdr) && in nlmsg_ok()
624 static inline struct nlmsghdr *
[all …]
Dgenetlink.h87 struct nlmsghdr * nlhdr;
195 static inline struct nlmsghdr *genlmsg_nlhdr(void *user_hdr) in genlmsg_nlhdr()
197 return (struct nlmsghdr *)((char *)user_hdr - in genlmsg_nlhdr()
211 static inline int genlmsg_parse_deprecated(const struct nlmsghdr *nlh, in genlmsg_parse_deprecated()
230 static inline int genlmsg_parse(const struct nlmsghdr *nlh, in genlmsg_parse()
378 struct nlmsghdr *nlh = (struct nlmsghdr *)((unsigned char *)gnlh - in genlmsg_len()
Ddn_fib.h83 struct nlattr *attrs[], struct nlmsghdr *n,
86 struct nlattr *attrs[], struct nlmsghdr *n,
106 const struct nlmsghdr *nlh, int *errp);
/kernel/linux/linux-5.10/tools/testing/selftests/netfilter/
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()
/kernel/linux/linux-5.10/include/rdma/
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,
/kernel/linux/linux-5.10/samples/bpf/
Dxdp_router_ipv4_user.c94 struct nlmsghdr *nh; in recv_msg()
104 nh = (struct nlmsghdr *)buf_ptr; in recv_msg()
122 static void read_route(struct nlmsghdr *nh, int nll) in read_route()
315 struct nlmsghdr *nh; in get_route_table()
323 struct nlmsghdr nl; in get_route_table()
367 nh = (struct nlmsghdr *)buf; in get_route_table()
377 static void read_arp(struct nlmsghdr *nh, int nll) in read_arp()
455 struct nlmsghdr *nh; in get_arp_table()
462 struct nlmsghdr nl; in get_arp_table()
505 nh = (struct nlmsghdr *)buf; in get_arp_table()
[all …]
/kernel/linux/linux-5.10/net/xfrm/
Dxfrm_compat.c133 static struct nlmsghdr *xfrm_nlmsg_put_compat(struct sk_buff *skb, in xfrm_nlmsg_put_compat()
134 const struct nlmsghdr *nlh_src, u16 type) in xfrm_nlmsg_put_compat()
138 struct nlmsghdr *nlh_dst; in xfrm_nlmsg_put_compat()
288 static int xfrm_xlate64(struct sk_buff *dst, const struct nlmsghdr *nlh_src) in xfrm_xlate64()
292 struct nlmsghdr *nlh_dst; in xfrm_xlate64()
322 static int xfrm_alloc_compat(struct sk_buff *skb, const struct nlmsghdr *nlh_src) in xfrm_alloc_compat()
353 static size_t xfrm_user_rcv_calculate_len64(const struct nlmsghdr *src, in xfrm_user_rcv_calculate_len64()
401 struct nlmsghdr *nlmsg = dst; in xfrm_attr_cpy32()
462 static int xfrm_xlate32(struct nlmsghdr *dst, const struct nlmsghdr *src, in xfrm_xlate32()
581 static struct nlmsghdr *xfrm_user_rcv_msg_compat(const struct nlmsghdr *h32, in xfrm_user_rcv_msg_compat()
[all …]
/kernel/linux/linux-5.10/net/dcb/
Ddcbnl.c183 u32 flags, struct nlmsghdr **nlhp) in dcbnl_newmsg()
187 struct nlmsghdr *nlh; in dcbnl_newmsg()
207 static int dcbnl_getstate(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getstate()
218 static int dcbnl_getpfccfg(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getpfccfg()
263 static int dcbnl_getperm_hwaddr(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getperm_hwaddr()
277 static int dcbnl_getcap(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getcap()
322 static int dcbnl_getnumtcs(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getnumtcs()
369 static int dcbnl_setnumtcs(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_setnumtcs()
403 static int dcbnl_getpfcstate(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getpfcstate()
413 static int dcbnl_setpfcstate(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_setpfcstate()
[all …]
/kernel/linux/linux-5.10/tools/bpf/bpftool/
Dnet.c94 typedef int (*__dump_nlmsg_t)(struct nlmsghdr *nlmsg, dump_nlmsg_t, void *cookie);
145 struct nlmsghdr *nh; in netlink_recv()
160 for (nh = (struct nlmsghdr *)buf; NLMSG_OK(nh, len); in netlink_recv()
197 static int __dump_class_nlmsg(struct nlmsghdr *nlh, in __dump_class_nlmsg()
217 struct nlmsghdr nlh; in netlink_get_class()
236 static int __dump_qdisc_nlmsg(struct nlmsghdr *nlh, in __dump_qdisc_nlmsg()
256 struct nlmsghdr nlh; in netlink_get_qdisc()
275 static int __dump_filter_nlmsg(struct nlmsghdr *nlh, in __dump_filter_nlmsg()
295 struct nlmsghdr nlh; in netlink_get_filter()
315 static int __dump_link_nlmsg(struct nlmsghdr *nlh, in __dump_link_nlmsg()
[all …]
/kernel/linux/linux-5.10/include/crypto/internal/
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()
/kernel/linux/linux-5.10/samples/connector/
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()
/kernel/linux/linux-5.10/crypto/
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()
/kernel/linux/linux-5.10/drivers/infiniband/core/
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()
/kernel/linux/linux-5.10/tools/lib/bpf/
Dnetlink.c24 typedef int (*__dump_nlmsg_t)(struct nlmsghdr *nlmsg, libbpf_dump_nlmsg_t,
82 struct nlmsghdr *nh; in bpf_netlink_recv()
97 for (nh = (struct nlmsghdr *)buf; NLMSG_OK(nh, len); in bpf_netlink_recv()
140 struct nlmsghdr nh; in __bpf_set_link_xdp_fd_replace()
225 static int __dump_link_nlmsg(struct nlmsghdr *nlh, in __dump_link_nlmsg()
356 struct nlmsghdr nlh; in libbpf_nl_get_link()
/kernel/linux/linux-5.10/drivers/staging/gdm724x/
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()
/kernel/linux/linux-5.10/net/core/
Dsock_diag.c19 static int (*inet_rcv_compat)(struct sk_buff *skb, struct nlmsghdr *nlh);
165 void sock_diag_register_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh)) in sock_diag_register_inet_compat()
173 void sock_diag_unregister_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh)) in sock_diag_unregister_inet_compat()
213 static int __sock_diag_cmd(struct sk_buff *skb, struct nlmsghdr *nlh) in __sock_diag_cmd()
244 static int sock_diag_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh, in sock_diag_rcv_msg()
/kernel/linux/linux-5.10/net/wimax/
Dop-msg.c171 struct nlmsghdr *nlh = (void *) msg->head; in wimax_msg_data_len()
193 struct nlmsghdr *nlh = (void *) msg->head; in wimax_msg_data()
214 struct nlmsghdr *nlh = (void *) msg->head; in wimax_msg_len()
322 struct nlmsghdr *nlh = info->nlhdr; in wimax_gnl_doit_msg_from_user()

123456