Home
last modified time | relevance | path

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

123456

/Linux-v4.19/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()
117 extern void netlink_ack(struct sk_buff *in_skb, struct nlmsghdr *nlh, int err,
172 const struct nlmsghdr *nlh;
191 struct nlmsghdr *
204 const struct nlmsghdr *nlh,
207 const struct nlmsghdr *nlh, in netlink_dump_start()
Dinet_diag.h11 struct nlmsghdr;
22 const struct nlmsghdr *nlh,
48 const struct nlmsghdr *unlh, bool net_admin);
54 struct sk_buff *in_skb, const struct nlmsghdr *nlh,
/Linux-v4.19/include/net/
Dnetlink.h234 struct nlmsghdr *nlh;
241 int (*cb)(struct sk_buff *, struct nlmsghdr *,
313 static inline void *nlmsg_data(const struct nlmsghdr *nlh) in nlmsg_data()
322 static inline int nlmsg_len(const struct nlmsghdr *nlh) in nlmsg_len()
332 static inline struct nlattr *nlmsg_attrdata(const struct nlmsghdr *nlh, in nlmsg_attrdata()
344 static inline int nlmsg_attrlen(const struct nlmsghdr *nlh, int hdrlen) in nlmsg_attrlen()
354 static inline int nlmsg_ok(const struct nlmsghdr *nlh, int remaining) in nlmsg_ok()
356 return (remaining >= (int) sizeof(struct nlmsghdr) && in nlmsg_ok()
357 nlh->nlmsg_len >= sizeof(struct nlmsghdr) && in nlmsg_ok()
369 static inline struct nlmsghdr *
[all …]
Dgenetlink.h93 struct nlmsghdr * nlhdr;
160 static inline struct nlmsghdr *genlmsg_nlhdr(void *user_hdr) in genlmsg_nlhdr()
162 return (struct nlmsghdr *)((char *)user_hdr - in genlmsg_nlhdr()
176 static inline int genlmsg_parse(const struct nlmsghdr *nlh, in genlmsg_parse()
324 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);
/Linux-v4.19/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;
/Linux-v4.19/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;
/Linux-v4.19/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-v4.19/samples/bpf/
Dxdp_router_ipv4_user.c78 struct nlmsghdr *nh; in recv_msg()
88 nh = (struct nlmsghdr *)buf_ptr; in recv_msg()
106 static void read_route(struct nlmsghdr *nh, int nll) in read_route()
299 struct nlmsghdr *nh; in get_route_table()
307 struct nlmsghdr nl; in get_route_table()
351 nh = (struct nlmsghdr *)buf; in get_route_table()
361 static void read_arp(struct nlmsghdr *nh, int nll) in read_arp()
437 struct nlmsghdr *nh; in get_arp_table()
444 struct nlmsghdr nl; in get_arp_table()
487 nh = (struct nlmsghdr *)buf; in get_arp_table()
[all …]
/Linux-v4.19/net/dcb/
Ddcbnl.c194 u32 flags, struct nlmsghdr **nlhp) in dcbnl_newmsg()
198 struct nlmsghdr *nlh; in dcbnl_newmsg()
218 static int dcbnl_getstate(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getstate()
229 static int dcbnl_getpfccfg(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getpfccfg()
273 static int dcbnl_getperm_hwaddr(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getperm_hwaddr()
287 static int dcbnl_getcap(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getcap()
331 static int dcbnl_getnumtcs(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getnumtcs()
377 static int dcbnl_setnumtcs(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_setnumtcs()
410 static int dcbnl_getpfcstate(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getpfcstate()
420 static int dcbnl_setpfcstate(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_setpfcstate()
[all …]
/Linux-v4.19/net/batman-adv/
Dnetlink.h27 struct nlmsghdr;
31 int batadv_netlink_get_ifindex(const struct nlmsghdr *nlh, int attrtype);
/Linux-v4.19/drivers/infiniband/core/
Dnetlink.c136 void *ibnl_put_msg(struct sk_buff *skb, struct nlmsghdr **nlh, int seq, in ibnl_put_msg()
146 int ibnl_put_attr(struct sk_buff *skb, struct nlmsghdr *nlh, in ibnl_put_attr()
157 static int rdma_nl_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh, in rdma_nl_rcv_msg()
207 struct nlmsghdr *, in rdma_nl_rcv_skb() argument
211 struct nlmsghdr *nlh; in rdma_nl_rcv_skb()
/Linux-v4.19/include/linux/netfilter/
Dnfnetlink.h12 const struct nlmsghdr *nlh,
16 const struct nlmsghdr *nlh,
20 const struct nlmsghdr *nlh,
/Linux-v4.19/samples/connector/
Ducon.c62 struct nlmsghdr *nlh; in netlink_send()
70 nlh = (struct nlmsghdr *)buf; in netlink_send()
116 struct nlmsghdr *reply; in main()
228 reply = (struct nlmsghdr *)buf; in main()
/Linux-v4.19/crypto/
Dcrypto_user.c232 struct nlmsghdr *nlh; in crypto_report_alg()
257 static int crypto_report(struct sk_buff *in_skb, struct nlmsghdr *in_nlh, in crypto_report()
327 static int crypto_update_alg(struct sk_buff *skb, struct nlmsghdr *nlh, in crypto_update_alg()
363 static int crypto_del_alg(struct sk_buff *skb, struct nlmsghdr *nlh, in crypto_del_alg()
400 static int crypto_add_alg(struct sk_buff *skb, struct nlmsghdr *nlh, in crypto_add_alg()
448 static int crypto_del_rng(struct sk_buff *skb, struct nlmsghdr *nlh, in crypto_del_rng()
473 int (*doit)(struct sk_buff *, struct nlmsghdr *, struct nlattr **);
486 static int crypto_user_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh, in crypto_user_rcv_msg()
/Linux-v4.19/drivers/staging/gdm724x/
Dnetlink_k.c31 struct nlmsghdr *nlh; in netlink_rcv_cb()
47 nlh = (struct nlmsghdr *)skb->data; in netlink_rcv_cb()
96 struct nlmsghdr *nlh; in netlink_send()
/Linux-v4.19/net/core/
Dsock_diag.c19 static int (*inet_rcv_compat)(struct sk_buff *skb, struct nlmsghdr *nlh);
163 void sock_diag_register_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh)) in sock_diag_register_inet_compat()
171 void sock_diag_unregister_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh)) in sock_diag_unregister_inet_compat()
211 static int __sock_diag_cmd(struct sk_buff *skb, struct nlmsghdr *nlh) in __sock_diag_cmd()
242 static int sock_diag_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh, in sock_diag_rcv_msg()
/Linux-v4.19/net/wimax/
Dop-msg.c186 struct nlmsghdr *nlh = (void *) msg->head; in wimax_msg_data_len()
208 struct nlmsghdr *nlh = (void *) msg->head; in wimax_msg_data()
229 struct nlmsghdr *nlh = (void *) msg->head; in wimax_msg_len()
337 struct nlmsghdr *nlh = info->nlhdr; in wimax_gnl_doit_msg_from_user()
/Linux-v4.19/net/tipc/
Ddiag.c54 struct nlmsghdr *nlh; in __tipc_add_sock_diag()
77 struct nlmsghdr *h) in tipc_sock_diag_handler_dump()
/Linux-v4.19/net/ipv4/
Dinet_diag.c166 const struct nlmsghdr *unlh, in inet_sk_diag_fill()
173 struct nlmsghdr *nlh; in inet_sk_diag_fill()
316 const struct nlmsghdr *unlh, in inet_csk_diag_fill()
326 const struct nlmsghdr *unlh) in inet_twsk_diag_fill()
330 struct nlmsghdr *nlh; in inet_twsk_diag_fill()
362 const struct nlmsghdr *unlh, bool net_admin) in inet_req_diag_fill()
366 struct nlmsghdr *nlh; in inet_req_diag_fill()
402 const struct nlmsghdr *unlh, bool net_admin) in sk_diag_fill()
462 const struct nlmsghdr *nlh, in inet_diag_dump_one_icsk()
504 const struct nlmsghdr *nlh, in inet_diag_cmd_exact()
[all …]
/Linux-v4.19/net/netfilter/ipset/
Dip_set_core.c779 flag_exist(const struct nlmsghdr *nlh) in flag_exist()
784 static struct nlmsghdr *
788 struct nlmsghdr *nlh; in start_msg()
868 const struct nlmsghdr *nlh, in ip_set_none()
876 struct sk_buff *skb, const struct nlmsghdr *nlh, in ip_set_create()
1018 struct sk_buff *skb, const struct nlmsghdr *nlh, in ip_set_destroy()
1097 const struct nlmsghdr *nlh, in ip_set_flush()
1137 struct sk_buff *skb, const struct nlmsghdr *nlh, in ip_set_rename()
1187 const struct nlmsghdr *nlh, in ip_set_swap()
1266 dump_attrs(struct nlmsghdr *nlh) in dump_attrs()
[all …]
/Linux-v4.19/security/selinux/
Dnetlink.c46 static void selnl_add_payload(struct nlmsghdr *nlh, int len, int msgtype, void *data) in selnl_add_payload()
75 struct nlmsghdr *nlh; in selnl_notify()
/Linux-v4.19/net/netfilter/
Dnfnetlink_cttimeout.c79 const struct nlmsghdr *nlh, in cttimeout_new_timeout()
166 struct nlmsghdr *nlh; in ctnl_timeout_fill_info()
252 const struct nlmsghdr *nlh, in cttimeout_get_timeout()
324 const struct nlmsghdr *nlh, in cttimeout_del_timeout()
356 const struct nlmsghdr *nlh, in cttimeout_default_set()
397 struct nlmsghdr *nlh; in cttimeout_default_fill_info()
442 const struct nlmsghdr *nlh, in cttimeout_default_get()
/Linux-v4.19/drivers/connector/
Dconnector.c80 struct nlmsghdr *nlh; in cn_netlink_send_mult()
146 struct nlmsghdr *nlh; in cn_call_callback()
185 struct nlmsghdr *nlh; in cn_rx_skb()

123456