/Linux-v5.4/include/linux/ |
D | sock_diag.h | 12 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));
|
D | netlink.h | 14 static inline struct nlmsghdr *nlmsg_hdr(const struct sk_buff *skb) in nlmsg_hdr() 16 return (struct nlmsghdr *)skb->data; in nlmsg_hdr() 126 void netlink_ack(struct sk_buff *in_skb, struct nlmsghdr *nlh, int err, 182 const struct nlmsghdr *nlh; 211 struct nlmsghdr * 224 const struct nlmsghdr *nlh, 227 const struct nlmsghdr *nlh, in netlink_dump_start()
|
D | inet_diag.h | 11 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-v5.4/include/uapi/linux/ |
D | netlink.h | 44 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-v5.4/tools/include/uapi/linux/ |
D | netlink.h | 44 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-v5.4/include/net/ |
D | netlink.h | 387 struct nlmsghdr *nlh; 429 int (*cb)(struct sk_buff *, struct nlmsghdr *, 501 static inline void *nlmsg_data(const struct nlmsghdr *nlh) in nlmsg_data() 510 static inline int nlmsg_len(const struct nlmsghdr *nlh) in nlmsg_len() 520 static inline struct nlattr *nlmsg_attrdata(const struct nlmsghdr *nlh, in nlmsg_attrdata() 532 static inline int nlmsg_attrlen(const struct nlmsghdr *nlh, int hdrlen) in nlmsg_attrlen() 542 static inline int nlmsg_ok(const struct nlmsghdr *nlh, int remaining) in nlmsg_ok() 544 return (remaining >= (int) sizeof(struct nlmsghdr) && in nlmsg_ok() 545 nlh->nlmsg_len >= sizeof(struct nlmsghdr) && in nlmsg_ok() 557 static inline struct nlmsghdr * [all …]
|
D | genetlink.h | 95 struct nlmsghdr * nlhdr; 167 static inline struct nlmsghdr *genlmsg_nlhdr(void *user_hdr) in genlmsg_nlhdr() 169 return (struct nlmsghdr *)((char *)user_hdr - in genlmsg_nlhdr() 183 static inline int genlmsg_parse_deprecated(const struct nlmsghdr *nlh, in genlmsg_parse_deprecated() 202 static inline int genlmsg_parse(const struct nlmsghdr *nlh, in genlmsg_parse() 350 struct nlmsghdr *nlh = (struct nlmsghdr *)((unsigned char *)gnlh - in genlmsg_len()
|
D | dn_fib.h | 83 struct nlattr *attrs[], struct nlmsghdr *n, 86 struct nlattr *attrs[], struct nlmsghdr *n, 106 const struct nlmsghdr *nlh, int *errp);
|
/Linux-v5.4/tools/lib/bpf/ |
D | netlink.c | 21 typedef int (*__dump_nlmsg_t)(struct nlmsghdr *nlmsg, libbpf_dump_nlmsg_t, 79 struct nlmsghdr *nh; in bpf_netlink_recv() 94 for (nh = (struct nlmsghdr *)buf; NLMSG_OK(nh, len); in bpf_netlink_recv() 136 struct nlmsghdr nh; in bpf_set_link_xdp_fd() 190 static int __dump_link_nlmsg(struct nlmsghdr *nlh, in __dump_link_nlmsg() 288 struct nlmsghdr nlh; in libbpf_nl_get_link() 306 static int __dump_class_nlmsg(struct nlmsghdr *nlh, in __dump_class_nlmsg() 326 struct nlmsghdr nlh; in libbpf_nl_get_class() 345 static int __dump_qdisc_nlmsg(struct nlmsghdr *nlh, in __dump_qdisc_nlmsg() 365 struct nlmsghdr nlh; in libbpf_nl_get_qdisc() [all …]
|
/Linux-v5.4/include/rdma/ |
D | rdma_netlink.h | 16 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-v5.4/samples/bpf/ |
D | xdp_router_ipv4_user.c | 94 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 …]
|
/Linux-v5.4/net/dcb/ |
D | dcbnl.c | 183 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 …]
|
/Linux-v5.4/include/linux/netfilter/ |
D | nfnetlink.h | 12 const struct nlmsghdr *nlh, 16 const struct nlmsghdr *nlh, 20 const struct nlmsghdr *nlh,
|
/Linux-v5.4/include/crypto/internal/ |
D | cryptouser.h | 8 int crypto_reportstat(struct sk_buff *in_skb, struct nlmsghdr *in_nlh, struct nlattr **attrs); 11 struct nlmsghdr *in_nlh, in crypto_reportstat()
|
/Linux-v5.4/samples/connector/ |
D | ucon.c | 48 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-v5.4/crypto/ |
D | crypto_user_base.c | 159 struct nlmsghdr *nlh; in crypto_report_alg() 184 static int crypto_report(struct sk_buff *in_skb, struct nlmsghdr *in_nlh, in crypto_report() 258 static int crypto_update_alg(struct sk_buff *skb, struct nlmsghdr *nlh, in crypto_update_alg() 294 static int crypto_del_alg(struct sk_buff *skb, struct nlmsghdr *nlh, in crypto_del_alg() 331 static int crypto_add_alg(struct sk_buff *skb, struct nlmsghdr *nlh, in crypto_add_alg() 379 static int crypto_del_rng(struct sk_buff *skb, struct nlmsghdr *nlh, in crypto_del_rng() 405 int (*doit)(struct sk_buff *, struct nlmsghdr *, struct nlattr **); 419 static int crypto_user_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh, in crypto_user_rcv_msg()
|
/Linux-v5.4/drivers/infiniband/core/ |
D | netlink.c | 131 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-v5.4/drivers/staging/gdm724x/ |
D | netlink_k.c | 31 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-v5.4/net/core/ |
D | sock_diag.c | 19 static int (*inet_rcv_compat)(struct sk_buff *skb, struct nlmsghdr *nlh); 164 void sock_diag_register_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh)) in sock_diag_register_inet_compat() 172 void sock_diag_unregister_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh)) in sock_diag_unregister_inet_compat() 212 static int __sock_diag_cmd(struct sk_buff *skb, struct nlmsghdr *nlh) in __sock_diag_cmd() 243 static int sock_diag_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh, in sock_diag_rcv_msg()
|
/Linux-v5.4/net/netfilter/ipset/ |
D | ip_set_core.c | 789 flag_exist(const struct nlmsghdr *nlh) in flag_exist() 794 static struct nlmsghdr * 798 struct nlmsghdr *nlh; in start_msg() 878 const struct nlmsghdr *nlh, in ip_set_none() 886 struct sk_buff *skb, const struct nlmsghdr *nlh, in ip_set_create() 1028 struct sk_buff *skb, const struct nlmsghdr *nlh, in ip_set_destroy() 1107 const struct nlmsghdr *nlh, in ip_set_flush() 1147 struct sk_buff *skb, const struct nlmsghdr *nlh, in ip_set_rename() 1197 const struct nlmsghdr *nlh, in ip_set_swap() 1276 dump_attrs(struct nlmsghdr *nlh) in dump_attrs() [all …]
|
/Linux-v5.4/net/wimax/ |
D | op-msg.c | 171 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()
|
/Linux-v5.4/net/tipc/ |
D | diag.c | 54 struct nlmsghdr *nlh; in __tipc_add_sock_diag() 77 struct nlmsghdr *h) in tipc_sock_diag_handler_dump()
|
/Linux-v5.4/net/ipv4/ |
D | inet_diag.c | 163 const struct nlmsghdr *unlh, in inet_sk_diag_fill() 170 struct nlmsghdr *nlh; in inet_sk_diag_fill() 320 const struct nlmsghdr *unlh, in inet_csk_diag_fill() 330 const struct nlmsghdr *unlh) in inet_twsk_diag_fill() 334 struct nlmsghdr *nlh; in inet_twsk_diag_fill() 366 const struct nlmsghdr *unlh, bool net_admin) in inet_req_diag_fill() 370 struct nlmsghdr *nlh; in inet_req_diag_fill() 406 const struct nlmsghdr *unlh, bool net_admin) in sk_diag_fill() 466 const struct nlmsghdr *nlh, in inet_diag_dump_one_icsk() 508 const struct nlmsghdr *nlh, in inet_diag_cmd_exact() [all …]
|
/Linux-v5.4/security/selinux/ |
D | netlink.c | 43 static void selnl_add_payload(struct nlmsghdr *nlh, int len, int msgtype, void *data) in selnl_add_payload() 72 struct nlmsghdr *nlh; in selnl_notify()
|
/Linux-v5.4/net/netfilter/ |
D | nfnetlink_cttimeout.c | 76 const struct nlmsghdr *nlh, in cttimeout_new_timeout() 162 struct nlmsghdr *nlh; in ctnl_timeout_fill_info() 243 const struct nlmsghdr *nlh, in cttimeout_get_timeout() 314 const struct nlmsghdr *nlh, in cttimeout_del_timeout() 346 const struct nlmsghdr *nlh, in cttimeout_default_set() 384 struct nlmsghdr *nlh; in cttimeout_default_fill_info() 425 const struct nlmsghdr *nlh, in cttimeout_default_get()
|