Home
last modified time | relevance | path

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

12345

/linux/tools/net/ynl/lib/
H A Dynl-priv.h150 struct nlmsghdr *nlh = (struct nlmsghdr *)buf; in ynl_nlmsg_put_header() local
158 static inline unsigned int ynl_nlmsg_data_len(const struct nlmsghdr *nlh) in ynl_nlmsg_data_len()
163 static inline void *ynl_nlmsg_data(const struct nlmsghdr *nlh) in ynl_nlmsg_data()
169 ynl_nlmsg_data_offset(const struct nlmsghdr *nlh, unsigned int offset) in ynl_nlmsg_data_offset()
174 static inline void *ynl_nlmsg_end_addr(const struct nlmsghdr *nlh) in ynl_nlmsg_end_addr()
180 ynl_nlmsg_put_extra_header(struct nlmsghdr *nlh, unsigned int size) in ynl_nlmsg_put_extra_header()
210 #define ynl_attr_for_each(attr, nlh, fixed_hdr_sz) \ argument
257 __ynl_attr_put_overflow(struct nlmsghdr *nlh, size_t size) in __ynl_attr_put_overflow()
272 ynl_attr_nest_start(struct nlmsghdr *nlh, unsigned int attr_type) in ynl_attr_nest_start()
287 ynl_attr_nest_end(struct nlmsghdr *nlh, struct nlattr *attr) in ynl_attr_nest_end()
[all …]
H A Dynl.c206 ynl_ext_ack_check(struct ynl_sock *ys, const struct nlmsghdr *nlh, in ynl_ext_ack_check() argument
326 ynl_cb_error(const struct nlmsghdr *nlh, struct ynl_parse_arg *yarg) in ynl_cb_error() argument
345 ynl_cb_done(const struct nlmsghdr * nlh,struct ynl_parse_arg * yarg) ynl_cb_done() argument
473 struct nlmsghdr *nlh; ynl_msg_start() local
491 ynl_msg_end(struct ynl_sock * ys,struct nlmsghdr * nlh) ynl_msg_end() argument
514 struct nlmsghdr *nlh; ynl_gemsg_start() local
552 ynl_cb_null(const struct nlmsghdr * nlh,struct ynl_parse_arg * yarg) ynl_cb_null() argument
564 const struct nlmsghdr *nlh; __ynl_sock_read_msgs() local
670 ynl_get_family_info_cb(const struct nlmsghdr * nlh,struct ynl_parse_arg * yarg) ynl_get_family_info_cb() argument
703 struct nlmsghdr *nlh; ynl_sock_read_family() local
868 ynl_ntf_parse(struct ynl_sock * ys,const struct nlmsghdr * nlh) ynl_ntf_parse() argument
914 ynl_ntf_trampoline(const struct nlmsghdr * nlh,struct ynl_parse_arg * yarg) ynl_ntf_trampoline() argument
951 ynl_check_alien(struct ynl_sock * ys,const struct nlmsghdr * nlh,__u32 rsp_cmd) ynl_check_alien() argument
974 ynl_req_trampoline(const struct nlmsghdr * nlh,struct ynl_parse_arg * yarg) ynl_req_trampoline() argument
1007 ynl_dump_trampoline(const struct nlmsghdr * nlh,struct ynl_parse_arg * data) ynl_dump_trampoline() argument
[all...]
/linux/tools/testing/selftests/net/netfilter/
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/xfrm/
H A Dxfrm_user.c1006 static int xfrm_add_sa(struct sk_buff *skb, struct nlmsghdr *nlh, in xfrm_add_sa() argument
1085 static int xfrm_del_sa(struct sk_buff *skb, struct nlmsghdr *nlh, in xfrm_del_sa() argument
1445 struct nlmsghdr *nlh; dump_one_state() local
1609 struct nlmsghdr *nlh; build_spdinfo() local
1655 xfrm_set_spdinfo(struct sk_buff * skb,struct nlmsghdr * nlh,struct nlattr ** attrs,struct netlink_ext_ack * extack) xfrm_set_spdinfo() argument
1709 xfrm_get_spdinfo(struct sk_buff * skb,struct nlmsghdr * nlh,struct nlattr ** attrs,struct netlink_ext_ack * extack) xfrm_get_spdinfo() argument
1742 struct nlmsghdr *nlh; build_sadinfo() local
1769 xfrm_get_sadinfo(struct sk_buff * skb,struct nlmsghdr * nlh,struct nlattr ** attrs,struct netlink_ext_ack * extack) xfrm_get_sadinfo() argument
1790 xfrm_get_sa(struct sk_buff * skb,struct nlmsghdr * nlh,struct nlattr ** attrs,struct netlink_ext_ack * extack) xfrm_get_sa() argument
1814 xfrm_alloc_userspi(struct sk_buff * skb,struct nlmsghdr * nlh,struct nlattr ** attrs,struct netlink_ext_ack * extack) xfrm_alloc_userspi() argument
2225 xfrm_add_policy(struct sk_buff * skb,struct nlmsghdr * nlh,struct nlattr ** attrs,struct netlink_ext_ack * extack) xfrm_add_policy() argument
2354 struct nlmsghdr *nlh; dump_one_policy() local
2460 struct nlmsghdr *nlh; xfrm_notify_userpolicy() local
2494 xfrm_set_default(struct sk_buff * skb,struct nlmsghdr * nlh,struct nlattr ** attrs,struct netlink_ext_ack * extack) xfrm_set_default() argument
2515 xfrm_get_default(struct sk_buff * skb,struct nlmsghdr * nlh,struct nlattr ** attrs,struct netlink_ext_ack * extack) xfrm_get_default() argument
2545 xfrm_get_policy(struct sk_buff * skb,struct nlmsghdr * nlh,struct nlattr ** attrs,struct netlink_ext_ack * extack) xfrm_get_policy() argument
2629 xfrm_flush_sa(struct sk_buff * skb,struct nlmsghdr * nlh,struct nlattr ** attrs,struct netlink_ext_ack * extack) xfrm_flush_sa() argument
2673 struct nlmsghdr *nlh; build_aevent() local
2743 xfrm_get_ae(struct sk_buff * skb,struct nlmsghdr * nlh,struct nlattr ** attrs,struct netlink_ext_ack * extack) xfrm_get_ae() argument
2787 xfrm_new_ae(struct sk_buff * skb,struct nlmsghdr * nlh,struct nlattr ** attrs,struct netlink_ext_ack * extack) xfrm_new_ae() argument
2844 xfrm_flush_policy(struct sk_buff * skb,struct nlmsghdr * nlh,struct nlattr ** attrs,struct netlink_ext_ack * extack) xfrm_flush_policy() argument
2873 xfrm_add_pol_expire(struct sk_buff * skb,struct nlmsghdr * nlh,struct nlattr ** attrs,struct netlink_ext_ack * extack) xfrm_add_pol_expire() argument
2940 xfrm_add_sa_expire(struct sk_buff * skb,struct nlmsghdr * nlh,struct nlattr ** attrs,struct netlink_ext_ack * extack) xfrm_add_sa_expire() argument
2978 xfrm_add_acquire(struct sk_buff * skb,struct nlmsghdr * nlh,struct nlattr ** attrs,struct netlink_ext_ack * extack) xfrm_add_acquire() argument
3094 xfrm_do_migrate(struct sk_buff * skb,struct nlmsghdr * nlh,struct nlattr ** attrs,struct netlink_ext_ack * extack) xfrm_do_migrate() argument
3152 xfrm_do_migrate(struct sk_buff * skb,struct nlmsghdr * nlh,struct nlattr ** attrs,struct netlink_ext_ack * extack) xfrm_do_migrate() argument
3208 struct nlmsghdr *nlh; build_migrate() local
3431 xfrm_user_rcv_msg(struct sk_buff * skb,struct nlmsghdr * nlh,struct netlink_ext_ack * extack) xfrm_user_rcv_msg() argument
3538 struct nlmsghdr *nlh; build_expire() local
3611 struct nlmsghdr *nlh; xfrm_notify_sa_flush() local
3696 struct nlmsghdr *nlh; xfrm_notify_sa() local
3790 struct nlmsghdr *nlh; build_acquire() local
3920 struct nlmsghdr *nlh; build_polexpire() local
3972 struct nlmsghdr *nlh; xfrm_notify_policy() local
4040 struct nlmsghdr *nlh; xfrm_notify_policy_flush() local
4095 struct nlmsghdr *nlh; build_report() local
4141 struct nlmsghdr *nlh; build_mapping() local
[all...]
/linux/net/ipv6/
H A Daddrlabel.c375 static int ip6addrlbl_newdel(struct sk_buff *skb, struct nlmsghdr *nlh, in ip6addrlbl_newdel()
426 static void ip6addrlbl_putmsg(struct nlmsghdr *nlh, in ip6addrlbl_putmsg()
444 struct nlmsghdr *nlh = nlmsg_put(skb, portid, seq, event, in ip6addrlbl_fill() local
461 static int ip6addrlbl_valid_dump_req(const struct nlmsghdr *nlh, in ip6addrlbl_valid_dump_req()
488 const struct nlmsghdr *nlh = cb->nlh; in ip6addrlbl_dump() local
529 const struct nlmsghdr *nlh, in ip6addrlbl_valid_get_req()
572 static int ip6addrlbl_get(struct sk_buff *in_skb, struct nlmsghdr *nlh, in ip6addrlbl_get()
/linux/include/net/
H A Dnetlink.h494 struct nlmsghdr *nlh; member
608 static inline void *nlmsg_data(const struct nlmsghdr *nlh) in nlmsg_data()
617 static inline int nlmsg_len(const struct nlmsghdr *nlh) in nlmsg_len()
630 static inline void *nlmsg_payload(const struct nlmsghdr *nlh, size_t len) in nlmsg_payload()
643 static inline struct nlattr *nlmsg_attrdata(const struct nlmsghdr *nlh, in nlmsg_attrdata()
655 static inline int nlmsg_attrlen(const struct nlmsghdr *nlh, int hdrlen) in nlmsg_attrlen()
665 static inline int nlmsg_ok(const struct nlmsghdr *nlh, int remaining) in nlmsg_ok()
681 nlmsg_next(const struct nlmsghdr *nlh, int *remaining) in nlmsg_next()
778 static inline int __nlmsg_parse(const struct nlmsghdr *nlh, int hdrlen, in __nlmsg_parse()
805 static inline int nlmsg_parse(const struct nlmsghdr *nlh, int hdrlen, in nlmsg_parse()
[all …]
/linux/net/core/
H A Drtnetlink.c954 const struct nlmsghdr *nlh, gfp_t flags) in rtnl_notify()
2030 struct nlmsghdr *nlh; in rtnl_fill_ifinfo() local
2394 static int rtnl_valid_dump_ifinfo_req(const struct nlmsghdr *nlh, in rtnl_valid_dump_ifinfo_req()
2442 const struct nlmsghdr *nlh = cb->nlh; in rtnl_dump_ifinfo() local
3425 static int rtnl_setlink(struct sk_buff *skb, struct nlmsghdr *nlh, in rtnl_setlink()
3511 int rtnl_delete_link(struct net_device *dev, u32 portid, const struct nlmsghdr *nlh) in rtnl_delete_link()
3527 static int rtnl_dellink(struct sk_buff *skb, struct nlmsghdr *nlh, in rtnl_dellink()
3580 u32 portid, const struct nlmsghdr *nlh) in rtnl_configure_link()
3707 static int rtnl_changelink(const struct sk_buff *skb, struct nlmsghdr *nlh, in rtnl_changelink()
3796 const struct nlmsghdr *nlh, in rtnl_newlink_create()
[all …]
H A Dfib_rules.c569 static int fib_nl2rule(struct net *net, struct nlmsghdr *nlh, in fib_nl2rule()
873 int fib_newrule(struct net *net, struct sk_buff *skb, struct nlmsghdr *nlh, in fib_newrule()
996 static int fib_nl_newrule(struct sk_buff *skb, struct nlmsghdr *nlh, in fib_nl_newrule()
1002 int fib_delrule(struct net *net, struct sk_buff *skb, struct nlmsghdr *nlh, in fib_delrule()
1115 static int fib_nl_delrule(struct sk_buff *skb, struct nlmsghdr *nlh, in fib_nl_delrule()
1152 struct nlmsghdr *nlh; in fib_nl_fill_rule() local
1260 static int fib_valid_dumprule_req(const struct nlmsghdr *nlh, in fib_valid_dumprule_req()
1288 const struct nlmsghdr *nlh = cb->nlh; in fib_nl_dumprule() local
1331 struct fib_rules_ops *ops, struct nlmsghdr *nlh, in notify_rule_change()
/linux/net/phonet/
H A Dpn_netlink.c52 static int addr_doit(struct sk_buff *skb, struct nlmsghdr *nlh, in addr_doit()
106 struct nlmsghdr *nlh; in fill_addr() local
177 struct nlmsghdr *nlh; in fill_route() local
231 static int route_doit(struct sk_buff *skb, struct nlmsghdr *nlh, in route_doit()
/linux/drivers/infiniband/core/
H 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()
212 struct nlmsghdr *nlh; in rdma_nl_rcv_skb() local
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/netfilter/
H A Dnfnetlink.c216 static int nfnetlink_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh, in nfnetlink_rcv_msg() argument
318 struct nlmsghdr *nlh; member
323 nfnl_err_add(struct list_head * list,struct nlmsghdr * nlh,int err,const struct netlink_ext_ack * extack) nfnl_err_add() argument
371 nfnetlink_rcv_batch(struct sk_buff * skb,struct nlmsghdr * nlh,u16 subsys_id,u32 genid) nfnetlink_rcv_batch() argument
612 nfnetlink_rcv_skb_batch(struct sk_buff * skb,struct nlmsghdr * nlh) nfnetlink_rcv_skb_batch() argument
652 struct nlmsghdr *nlh = nlmsg_hdr(skb); nfnetlink_rcv() local
[all...]
/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/testing/selftests/net/mptcp/
H A Dmptcp_diag.c67 struct nlmsghdr nlh; send_query() member
163 parse_nlmsg(struct nlmsghdr * nlh) parse_nlmsg() argument
188 recv_nlmsg(int fd,struct nlmsghdr * nlh) recv_nlmsg() argument
228 struct nlmsghdr *nlh = NULL; get_mptcpinfo() local
[all...]
/linux/net/ipv4/
H A Dinet_diag.c209 inet_diag_parse_attrs(const struct nlmsghdr * nlh,int hdrlen,struct nlattr ** req_nlas) inet_diag_parse_attrs() argument
247 struct nlmsghdr *nlh; inet_sk_diag_fill() local
432 struct nlmsghdr *nlh; inet_twsk_diag_fill() local
472 struct nlmsghdr *nlh; inet_req_diag_fill() local
603 inet_diag_cmd_exact(int cmd,struct sk_buff * in_skb,const struct nlmsghdr * nlh,int hdrlen,const struct inet_diag_req_v2 * req) inet_diag_cmd_exact() argument
1307 const struct nlmsghdr *nlh = cb->nlh; __inet_diag_dump_start() local
1394 inet_diag_get_exact_compat(struct sk_buff * in_skb,const struct nlmsghdr * nlh) inet_diag_get_exact_compat() argument
1410 inet_diag_rcv_msg_compat(struct sk_buff * skb,struct nlmsghdr * nlh) inet_diag_rcv_msg_compat() argument
1457 struct nlmsghdr *nlh; inet_diag_handler_get_info() local
[all...]
H A Ddevinet.c372 int destroy, struct nlmsghdr *nlh, u32 portid) in __inet_del_ifa()
490 static int __inet_insert_ifa(struct in_ifaddr *ifa, struct nlmsghdr *nlh, in __inet_insert_ifa()
652 static int inet_rtm_deladdr(struct sk_buff *skb, struct nlmsghdr *nlh, in inet_rtm_deladdr()
844 static int inet_validate_rtm(struct nlmsghdr *nlh, struct nlattr **tb, in inet_validate_rtm()
882 static struct in_ifaddr *inet_rtm_to_ifa(struct net *net, struct nlmsghdr *nlh, in inet_rtm_to_ifa()
960 static int inet_rtm_newaddr(struct sk_buff *skb, struct nlmsghdr *nlh, in inet_rtm_newaddr()
1710 struct nlmsghdr *nlh; in inet_fill_ifaddr() local
1784 static int inet_valid_dump_ifaddr_req(const struct nlmsghdr *nlh, in inet_valid_dump_ifaddr_req()
1931 const struct nlmsghdr *nlh = cb->nlh; in inet_dump_addr() local
1999 static void rtmsg_ifa(int event, struct in_ifaddr *ifa, struct nlmsghdr *nlh, in rtmsg_ifa()
[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/tools/bpf/bpftool/
H A Dnet.c210 static int __dump_class_nlmsg(struct nlmsghdr *nlh, in __dump_class_nlmsg()
230 struct nlmsghdr nlh; in netlink_get_class() member
249 static int __dump_qdisc_nlmsg(struct nlmsghdr *nlh, in __dump_qdisc_nlmsg()
269 struct nlmsghdr nlh; in netlink_get_qdisc() member
288 static int __dump_filter_nlmsg(struct nlmsghdr *nlh, in __dump_filter_nlmsg()
308 struct nlmsghdr nlh; in netlink_get_filter() member
328 static int __dump_link_nlmsg(struct nlmsghdr *nlh, in __dump_link_nlmsg()
347 struct nlmsghdr nlh; in netlink_get_link() member
/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/net/mptcp/
H A Dpm_netlink.c436 struct nlmsghdr *nlh; in mptcp_event_addr_removed() local
470 struct nlmsghdr *nlh; in mptcp_event_addr_announced() local
526 struct nlmsghdr *nlh; in mptcp_event_pm_listener() local
575 struct nlmsghdr *nlh; in mptcp_event() local
/linux/net/mctp/
H A Dneigh.c115 static int mctp_rtm_newneigh(struct sk_buff *skb, struct nlmsghdr *nlh, in mctp_rtm_newneigh() argument
173 static int mctp_rtm_delneigh(struct sk_buff *skb, struct nlmsghdr *nlh, in mctp_rtm_delneigh() argument
213 struct nlmsghdr *nlh; in mctp_fill_neigh() local
[all...]
/linux/tools/lib/bpf/
H A Dnlattr.c81 static inline int nlmsg_len(const struct nlmsghdr *nlh) in nlmsg_len() argument
158 libbpf_nla_dump_errormsg(struct nlmsghdr * nlh) libbpf_nla_dump_errormsg() argument

12345