Home
last modified time | relevance | path

Searched defs:nlh (Results 1 – 25 of 128) sorted by relevance

123456

/linux/tools/net/ynl/lib/
H A Dynl-priv.h142 struct nlmsghdr *nlh = (struct nlmsghdr *)buf; in ynl_nlmsg_put_header() local
150 static inline unsigned int ynl_nlmsg_data_len(const struct nlmsghdr *nlh) in ynl_nlmsg_data_len()
155 static inline void *ynl_nlmsg_data(const struct nlmsghdr *nlh) in ynl_nlmsg_data()
161 ynl_nlmsg_data_offset(const struct nlmsghdr *nlh, unsigned int offset) in ynl_nlmsg_data_offset()
166 static inline void *ynl_nlmsg_end_addr(const struct nlmsghdr *nlh) in ynl_nlmsg_end_addr()
172 ynl_nlmsg_put_extra_header(struct nlmsghdr *nlh, unsigned int size) in ynl_nlmsg_put_extra_header()
202 #define ynl_attr_for_each(attr, nlh, fixed_hdr_sz) \ argument
245 __ynl_attr_put_overflow(struct nlmsghdr *nlh, size_t size) in __ynl_attr_put_overflow()
260 ynl_attr_nest_start(struct nlmsghdr *nlh, unsigned int attr_type) in ynl_attr_nest_start()
275 ynl_attr_nest_end(struct nlmsghdr *nlh, struct nlattr *attr) in ynl_attr_nest_end()
[all …]
H A Dynl.c140 ynl_ext_ack_check(struct ynl_sock *ys, const struct nlmsghdr *nlh, in ynl_ext_ack_check()
260 ynl_cb_error(const struct nlmsghdr *nlh, struct ynl_parse_arg *yarg) in ynl_cb_error()
279 static int ynl_cb_done(const struct nlmsghdr *nlh, struct ynl_parse_arg *yarg) in ynl_cb_done()
398 struct nlmsghdr *nlh; in ynl_msg_start() local
416 static int ynl_msg_end(struct ynl_sock *ys, struct nlmsghdr *nlh) in ynl_msg_end()
439 struct nlmsghdr *nlh; in ynl_gemsg_start() local
477 static int ynl_cb_null(const struct nlmsghdr *nlh, struct ynl_parse_arg *yarg) in ynl_cb_null()
489 const struct nlmsghdr *nlh; in __ynl_sock_read_msgs() local
595 ynl_get_family_info_cb(const struct nlmsghdr *nlh, struct ynl_parse_arg *yarg) in ynl_get_family_info_cb()
628 struct nlmsghdr *nlh; in ynl_sock_read_family() local
[all …]
/linux/tools/testing/selftests/net/netfilter/
H A Dconntrack_dump_flush.c20 static int build_cta_tuple_v4(struct nlmsghdr *nlh, int type, in build_cta_tuple_v4()
48 static int build_cta_tuple_v6(struct nlmsghdr *nlh, int type, in build_cta_tuple_v6()
76 static int build_cta_proto(struct nlmsghdr *nlh) in build_cta_proto()
95 static int conntrack_data_insert(struct mnl_socket *sock, struct nlmsghdr *nlh, in conntrack_data_insert()
143 struct nlmsghdr *nlh; in conntrack_data_generate_v4() local
177 struct nlmsghdr *nlh; in conntrack_data_generate_v6() local
207 static int count_entries(const struct nlmsghdr *nlh, void *data) in count_entries()
215 struct nlmsghdr *nlh, *rplnlh; in conntracK_count_zone() local
262 struct nlmsghdr *nlh, *rplnlh; in conntrack_flush_zone() local
H A Dnf_queue.c77 static int queue_cb(const struct nlmsghdr *nlh, void *data) in queue_cb()
123 struct nlmsghdr *nlh = mnl_nlmsg_put_header(buf); in nfq_build_cfg_request() local
147 struct nlmsghdr *nlh = mnl_nlmsg_put_header(buf); in nfq_build_cfg_params() local
174 struct nlmsghdr *nlh; in nfq_build_verdict() local
212 struct nlmsghdr *nlh; in open_queue() local
274 struct nlmsghdr *nlh; in mainloop() local
/linux/net/dcb/
H A Ddcbnl.c221 struct nlmsghdr *nlh; in dcbnl_newmsg() local
241 static int dcbnl_getstate(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getstate()
252 static int dcbnl_getpfccfg(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getpfccfg()
297 static int dcbnl_getperm_hwaddr(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getperm_hwaddr()
311 static int dcbnl_getcap(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getcap()
356 static int dcbnl_getnumtcs(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getnumtcs()
403 static int dcbnl_setnumtcs(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_setnumtcs()
437 static int dcbnl_getpfcstate(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getpfcstate()
447 static int dcbnl_setpfcstate(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_setpfcstate()
465 static int dcbnl_getapp(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getapp()
[all …]
/linux/drivers/staging/gdm724x/
H A Dnetlink_k.c20 #define ND_NLMSG_DATA(nlh) ((void *)((char *)NLMSG_DATA(nlh) + \ argument
23 #define ND_NLMSG_R_LEN(nlh) ((nlh)->nlmsg_len - ND_IFINDEX_LEN) argument
24 #define ND_NLMSG_IFIDX(nlh) NLMSG_DATA(nlh) argument
31 struct nlmsghdr *nlh; in netlink_rcv_cb() local
97 struct nlmsghdr *nlh; in netlink_send() local
/linux/net/xfrm/
H A Dxfrm_user.c885 static int xfrm_add_sa(struct sk_buff *skb, struct nlmsghdr *nlh, in xfrm_add_sa()
964 static int xfrm_del_sa(struct sk_buff *skb, struct nlmsghdr *nlh, in xfrm_del_sa()
1313 struct nlmsghdr *nlh; in dump_one_state() local
1477 struct nlmsghdr *nlh; in build_spdinfo() local
1523 static int xfrm_set_spdinfo(struct sk_buff *skb, struct nlmsghdr *nlh, in xfrm_set_spdinfo()
1577 static int xfrm_get_spdinfo(struct sk_buff *skb, struct nlmsghdr *nlh, in xfrm_get_spdinfo()
1610 struct nlmsghdr *nlh; in build_sadinfo() local
1637 static int xfrm_get_sadinfo(struct sk_buff *skb, struct nlmsghdr *nlh, in xfrm_get_sadinfo()
1658 static int xfrm_get_sa(struct sk_buff *skb, struct nlmsghdr *nlh, in xfrm_get_sa()
1682 static int xfrm_alloc_userspi(struct sk_buff *skb, struct nlmsghdr *nlh, in xfrm_alloc_userspi()
[all …]
/linux/crypto/
H A Dcrypto_user.c158 struct nlmsghdr *nlh; in crypto_report_alg() local
259 static int crypto_update_alg(struct sk_buff *skb, struct nlmsghdr *nlh, in crypto_update_alg()
295 static int crypto_del_alg(struct sk_buff *skb, struct nlmsghdr *nlh, in crypto_del_alg()
333 static int crypto_add_alg(struct sk_buff *skb, struct nlmsghdr *nlh, in crypto_add_alg()
381 static int crypto_del_rng(struct sk_buff *skb, struct nlmsghdr *nlh, in crypto_del_rng()
428 static int crypto_user_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh, in crypto_user_rcv_msg()
/linux/net/ipv6/
H A Daddrlabel.c385 static int ip6addrlbl_newdel(struct sk_buff *skb, struct nlmsghdr *nlh, in ip6addrlbl_newdel()
436 static void ip6addrlbl_putmsg(struct nlmsghdr *nlh, in ip6addrlbl_putmsg()
454 struct nlmsghdr *nlh = nlmsg_put(skb, portid, seq, event, in ip6addrlbl_fill() local
471 static int ip6addrlbl_valid_dump_req(const struct nlmsghdr *nlh, in ip6addrlbl_valid_dump_req()
498 const struct nlmsghdr *nlh = cb->nlh; in ip6addrlbl_dump() local
539 const struct nlmsghdr *nlh, in ip6addrlbl_valid_get_req()
582 static int ip6addrlbl_get(struct sk_buff *in_skb, struct nlmsghdr *nlh, in ip6addrlbl_get()
/linux/net/core/
H A Drtnetlink.c753 const struct nlmsghdr *nlh, gfp_t flags) in rtnl_notify()
1820 struct nlmsghdr *nlh; in rtnl_fill_ifinfo() local
2172 static int rtnl_valid_dump_ifinfo_req(const struct nlmsghdr *nlh, in rtnl_valid_dump_ifinfo_req()
2220 const struct nlmsghdr *nlh = cb->nlh; in rtnl_dump_ifinfo() local
3165 static int rtnl_setlink(struct sk_buff *skb, struct nlmsghdr *nlh, in rtnl_setlink()
3242 int rtnl_delete_link(struct net_device *dev, u32 portid, const struct nlmsghdr *nlh) in rtnl_delete_link()
3258 static int rtnl_dellink(struct sk_buff *skb, struct nlmsghdr *nlh, in rtnl_dellink()
3314 u32 portid, const struct nlmsghdr *nlh) in rtnl_configure_link()
3458 const struct nlmsghdr *nlh, in rtnl_newlink_create()
3554 static int __rtnl_newlink(struct sk_buff *skb, struct nlmsghdr *nlh, in __rtnl_newlink()
[all …]
H A Dfib_rules.c516 static int fib_nl2rule(struct sk_buff *skb, struct nlmsghdr *nlh, in fib_nl2rule()
774 int fib_nl_newrule(struct sk_buff *skb, struct nlmsghdr *nlh, in fib_nl_newrule()
882 int fib_nl_delrule(struct sk_buff *skb, struct nlmsghdr *nlh, in fib_nl_delrule()
1012 struct nlmsghdr *nlh; in fib_nl_fill_rule() local
1116 static int fib_valid_dumprule_req(const struct nlmsghdr *nlh, in fib_valid_dumprule_req()
1144 const struct nlmsghdr *nlh = cb->nlh; in fib_nl_dumprule() local
1187 struct fib_rules_ops *ops, struct nlmsghdr *nlh, in notify_rule_change()
/linux/include/net/
H A Dnetlink.h482 struct nlmsghdr *nlh; member
596 static inline void *nlmsg_data(const struct nlmsghdr *nlh) in nlmsg_data()
605 static inline int nlmsg_len(const struct nlmsghdr *nlh) in nlmsg_len()
615 static inline struct nlattr *nlmsg_attrdata(const struct nlmsghdr *nlh, in nlmsg_attrdata()
627 static inline int nlmsg_attrlen(const struct nlmsghdr *nlh, int hdrlen) in nlmsg_attrlen()
637 static inline int nlmsg_ok(const struct nlmsghdr *nlh, int remaining) in nlmsg_ok()
653 nlmsg_next(const struct nlmsghdr *nlh, int *remaining) in nlmsg_next()
750 static inline int __nlmsg_parse(const struct nlmsghdr *nlh, int hdrlen, in __nlmsg_parse()
777 static inline int nlmsg_parse(const struct nlmsghdr *nlh, int hdrlen, in nlmsg_parse()
797 static inline int nlmsg_parse_deprecated(const struct nlmsghdr *nlh, int hdrlen, in nlmsg_parse_deprecated()
[all …]
/linux/net/phonet/
H A Dpn_netlink.c51 static int addr_doit(struct sk_buff *skb, struct nlmsghdr *nlh, in addr_doit()
99 struct nlmsghdr *nlh; in fill_addr() local
164 struct nlmsghdr *nlh; in fill_route() local
218 static int route_doit(struct sk_buff *skb, struct nlmsghdr *nlh, in route_doit()
/linux/net/netfilter/
H A Dnfnetlink.c216 static int nfnetlink_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh, in nfnetlink_rcv_msg()
318 struct nlmsghdr *nlh; member
323 static int nfnl_err_add(struct list_head *list, struct nlmsghdr *nlh, int err, in nfnl_err_add()
371 static void nfnetlink_rcv_batch(struct sk_buff *skb, struct nlmsghdr *nlh, in nfnetlink_rcv_batch()
612 static void nfnetlink_rcv_skb_batch(struct sk_buff *skb, struct nlmsghdr *nlh) in nfnetlink_rcv_skb_batch()
652 struct nlmsghdr *nlh = nlmsg_hdr(skb); in nfnetlink_rcv() local
/linux/net/mpls/
H A Daf_mpls.c543 struct nlmsghdr *nlh = info ? info->nlh : NULL; in mpls_notify_route() local
1137 struct nlmsghdr *nlh; in mpls_netconf_fill_devconf() local
1212 const struct nlmsghdr *nlh, in mpls_netconf_valid_get_req()
1252 struct nlmsghdr *nlh, in mpls_netconf_get_devconf()
1303 const struct nlmsghdr *nlh = cb->nlh; in mpls_netconf_dump_devconf() local
1790 struct nlmsghdr *nlh, in rtm_to_route_config()
1928 static int mpls_rtm_delroute(struct sk_buff *skb, struct nlmsghdr *nlh, in mpls_rtm_delroute()
1950 static int mpls_rtm_newroute(struct sk_buff *skb, struct nlmsghdr *nlh, in mpls_rtm_newroute()
1975 struct nlmsghdr *nlh; in mpls_dump_route() local
2082 static int mpls_valid_fib_dump_req(struct net *net, const struct nlmsghdr *nlh, in mpls_valid_fib_dump_req()
[all …]
/linux/tools/bpf/bpftool/
H A Dnet.c206 __dump_class_nlmsg(struct nlmsghdr * nlh,dump_nlmsg_t dump_class_nlmsg,void * cookie) __dump_class_nlmsg() argument
226 struct nlmsghdr nlh; netlink_get_class() member
245 __dump_qdisc_nlmsg(struct nlmsghdr * nlh,dump_nlmsg_t dump_qdisc_nlmsg,void * cookie) __dump_qdisc_nlmsg() argument
265 struct nlmsghdr nlh; netlink_get_qdisc() member
284 __dump_filter_nlmsg(struct nlmsghdr * nlh,dump_nlmsg_t dump_filter_nlmsg,void * cookie) __dump_filter_nlmsg() argument
304 struct nlmsghdr nlh; netlink_get_filter() member
324 __dump_link_nlmsg(struct nlmsghdr * nlh,dump_nlmsg_t dump_link_nlmsg,void * cookie) __dump_link_nlmsg() argument
343 struct nlmsghdr nlh; netlink_get_link() member
[all...]
/linux/net/ipv4/
H A Dinet_diag.c209 static int inet_diag_parse_attrs(const struct nlmsghdr *nlh, int hdrlen, in inet_diag_parse_attrs()
247 struct nlmsghdr *nlh; in inet_sk_diag_fill() local
430 struct nlmsghdr *nlh; in inet_twsk_diag_fill() local
470 struct nlmsghdr *nlh; in inet_req_diag_fill() local
601 const struct nlmsghdr *nlh, in inet_diag_cmd_exact()
1305 const struct nlmsghdr *nlh = cb->nlh; in __inet_diag_dump_start() local
1394 const struct nlmsghdr *nlh) in inet_diag_get_exact_compat()
1410 static int inet_diag_rcv_msg_compat(struct sk_buff *skb, struct nlmsghdr *nlh) in inet_diag_rcv_msg_compat()
1457 struct nlmsghdr *nlh; in inet_diag_handler_get_info() local
H A Ddevinet.c369 int destroy, struct nlmsghdr *nlh, u32 portid) in __inet_del_ifa()
491 static int __inet_insert_ifa(struct in_ifaddr *ifa, struct nlmsghdr *nlh, in __inet_insert_ifa()
654 static int inet_rtm_deladdr(struct sk_buff *skb, struct nlmsghdr *nlh, in inet_rtm_deladdr()
837 static struct in_ifaddr *rtm_to_ifaddr(struct net *net, struct nlmsghdr *nlh, in rtm_to_ifaddr()
952 static int inet_rtm_newaddr(struct sk_buff *skb, struct nlmsghdr *nlh, in inet_rtm_newaddr()
1683 struct nlmsghdr *nlh; in inet_fill_ifaddr() local
1757 static int inet_valid_dump_ifaddr_req(const struct nlmsghdr *nlh, in inet_valid_dump_ifaddr_req()
1859 const struct nlmsghdr *nlh = cb->nlh; in inet_dump_ifaddr() local
1917 static void rtmsg_ifa(int event, struct in_ifaddr *ifa, struct nlmsghdr *nlh, in rtmsg_ifa()
2065 struct nlmsghdr *nlh; in inet_netconf_fill_devconf() local
[all …]
/linux/drivers/connector/
H A Dconnector.c68 struct nlmsghdr *nlh; in cn_netlink_send_mult() local
136 struct nlmsghdr *nlh; in cn_call_callback() local
200 struct nlmsghdr *nlh; in cn_rx_skb() local
/linux/include/linux/netfilter/
H 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()
83 struct nlmsghdr *nlh; in nfnl_msg_put() local
/linux/security/selinux/
H A Dnetlink.c43 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() local
/linux/net/ieee802154/
H A Dnetlink.c47 struct nlmsghdr *nlh = nlmsg_hdr(msg); in ieee802154_nl_mcast() local
76 struct nlmsghdr *nlh = nlmsg_hdr(msg); in ieee802154_nl_reply() local
/linux/drivers/infiniband/core/
H A Diwpm_util.c438 struct sk_buff *iwpm_create_nlmsg(u32 nl_op, struct nlmsghdr **nlh, in iwpm_create_nlmsg()
581 struct nlmsghdr *nlh; in send_mapinfo_num() local
620 struct nlmsghdr *nlh = NULL; in send_nlmsg_done() local
642 struct nlmsghdr *nlh; in iwpm_send_mapinfo() local
764 struct nlmsghdr *nlh; in iwpm_send_hello() local
H A Diwpm_msg.c67 struct nlmsghdr *nlh; in iwpm_register_pid() local
147 struct nlmsghdr *nlh; in iwpm_add_mapping() local
230 struct nlmsghdr *nlh; in iwpm_add_and_query_mapping() local
317 struct nlmsghdr *nlh; in iwpm_remove_mapping() local
/linux/net/mctp/
H A Dneigh.c115 static int mctp_rtm_newneigh(struct sk_buff *skb, struct nlmsghdr *nlh, in mctp_rtm_newneigh()
173 static int mctp_rtm_delneigh(struct sk_buff *skb, struct nlmsghdr *nlh, in mctp_rtm_delneigh()
213 struct nlmsghdr *nlh; in mctp_fill_neigh() local

123456