/linux/tools/net/ynl/lib/ |
H A D | ynl-priv.h | 142 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 D | ynl.c | 140 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 D | nf_queue.c | 77 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 D | xfrm_user.c | 973 static int xfrm_add_sa(struct sk_buff *skb, struct nlmsghdr *nlh, in xfrm_add_sa() 1052 static int xfrm_del_sa(struct sk_buff *skb, struct nlmsghdr *nlh, in xfrm_del_sa() 1412 struct nlmsghdr *nlh; in dump_one_state() local 1576 struct nlmsghdr *nlh; in build_spdinfo() local 1622 static int xfrm_set_spdinfo(struct sk_buff *skb, struct nlmsghdr *nlh, in xfrm_set_spdinfo() 1676 static int xfrm_get_spdinfo(struct sk_buff *skb, struct nlmsghdr *nlh, in xfrm_get_spdinfo() 1709 struct nlmsghdr *nlh; in build_sadinfo() local 1736 static int xfrm_get_sadinfo(struct sk_buff *skb, struct nlmsghdr *nlh, in xfrm_get_sadinfo() 1757 static int xfrm_get_sa(struct sk_buff *skb, struct nlmsghdr *nlh, in xfrm_get_sa() 1781 static int xfrm_alloc_userspi(struct sk_buff *skb, struct nlmsghdr *nlh, in xfrm_alloc_userspi() [all …]
|
/linux/drivers/infiniband/core/ |
H A D | nldev.c | 1069 nldev_get_doit(struct sk_buff * skb,struct nlmsghdr * nlh,struct netlink_ext_ack * extack) nldev_get_doit() argument 1119 nldev_set_doit(struct sk_buff * skb,struct nlmsghdr * nlh,struct netlink_ext_ack * extack) nldev_set_doit() argument 1178 struct nlmsghdr *nlh; _nldev_get_dumpit() local 1209 nldev_port_get_doit(struct sk_buff * skb,struct nlmsghdr * nlh,struct netlink_ext_ack * extack) nldev_port_get_doit() argument 1273 struct nlmsghdr *nlh; nldev_port_get_dumpit() local 1325 nldev_res_get_doit(struct sk_buff * skb,struct nlmsghdr * nlh,struct netlink_ext_ack * extack) nldev_res_get_doit() argument 1383 struct nlmsghdr *nlh; _nldev_res_get_dumpit() local 1471 res_get_common_doit(struct sk_buff * skb,struct nlmsghdr * nlh,struct netlink_ext_ack * extack,enum rdma_restrack_type res_type,res_fill_func_t fill_func) res_get_common_doit() argument 1568 struct nlmsghdr *nlh; res_get_common_dumpit() local 1755 nldev_newlink(struct sk_buff * skb,struct nlmsghdr * nlh,struct netlink_ext_ack * extack) nldev_newlink() argument 1802 nldev_dellink(struct sk_buff * skb,struct nlmsghdr * nlh,struct netlink_ext_ack * extack) nldev_dellink() argument 1829 nldev_get_chardev(struct sk_buff * skb,struct nlmsghdr * nlh,struct netlink_ext_ack * extack) nldev_get_chardev() argument 1917 nldev_sys_get_doit(struct sk_buff * skb,struct nlmsghdr * nlh,struct netlink_ext_ack * extack) nldev_sys_get_doit() argument 2004 nldev_set_sys_set_doit(struct sk_buff * skb,struct nlmsghdr * nlh,struct netlink_ext_ack * extack) nldev_set_sys_set_doit() argument 2119 nldev_stat_set_doit(struct sk_buff * skb,struct nlmsghdr * nlh,struct netlink_ext_ack * extack) nldev_stat_set_doit() argument 2189 nldev_stat_del_doit(struct sk_buff * skb,struct nlmsghdr * nlh,struct netlink_ext_ack * extack) nldev_stat_del_doit() argument 2260 stat_get_doit_default_counter(struct sk_buff * skb,struct nlmsghdr * nlh,struct netlink_ext_ack * extack,struct nlattr * tb[]) stat_get_doit_default_counter() argument 2352 stat_get_doit_qp(struct sk_buff * skb,struct nlmsghdr * nlh,struct netlink_ext_ack * extack,struct nlattr * tb[]) stat_get_doit_qp() argument 2424 nldev_stat_get_doit(struct sk_buff * skb,struct nlmsghdr * nlh,struct netlink_ext_ack * extack) nldev_stat_get_doit() argument 2482 nldev_stat_get_counter_status_doit(struct sk_buff * skb,struct nlmsghdr * nlh,struct netlink_ext_ack * extack) nldev_stat_get_counter_status_doit() argument 2574 nldev_newdev(struct sk_buff * skb,struct nlmsghdr * nlh,struct netlink_ext_ack * extack) nldev_newdev() argument 2603 nldev_deldev(struct sk_buff * skb,struct nlmsghdr * nlh,struct netlink_ext_ack * extack) nldev_deldev() argument 2838 void *nlh; rdma_nl_notify_event() local [all...] |
H A 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() 212 struct nlmsghdr *nlh; in rdma_nl_rcv_skb() local
|
H A D | iwpm_util.c | 438 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 D | iwpm_msg.c | 67 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/crypto/ |
H A D | crypto_user.c | 158 struct nlmsghdr *nlh; crypto_report_alg() local 259 crypto_update_alg(struct sk_buff * skb,struct nlmsghdr * nlh,struct nlattr ** attrs) crypto_update_alg() argument 295 crypto_del_alg(struct sk_buff * skb,struct nlmsghdr * nlh,struct nlattr ** attrs) crypto_del_alg() argument 333 crypto_add_alg(struct sk_buff * skb,struct nlmsghdr * nlh,struct nlattr ** attrs) crypto_add_alg() argument 381 crypto_del_rng(struct sk_buff * skb,struct nlmsghdr * nlh,struct nlattr ** attrs) crypto_del_rng() argument 428 crypto_user_rcv_msg(struct sk_buff * skb,struct nlmsghdr * nlh,struct netlink_ext_ack * extack) crypto_user_rcv_msg() argument [all...] |
/linux/net/core/ |
H A D | rtnetlink.c | 954 const struct nlmsghdr *nlh, gfp_t flags) in rtnl_notify() 2023 struct nlmsghdr *nlh; in rtnl_fill_ifinfo() local 2381 static int rtnl_valid_dump_ifinfo_req(const struct nlmsghdr *nlh, in rtnl_valid_dump_ifinfo_req() 2429 const struct nlmsghdr *nlh = cb->nlh; in rtnl_dump_ifinfo() local 3423 static int rtnl_setlink(struct sk_buff *skb, struct nlmsghdr *nlh, in rtnl_setlink() 3509 int rtnl_delete_link(struct net_device *dev, u32 portid, const struct nlmsghdr *nlh) in rtnl_delete_link() 3525 static int rtnl_dellink(struct sk_buff *skb, struct nlmsghdr *nlh, in rtnl_dellink() 3578 u32 portid, const struct nlmsghdr *nlh) in rtnl_configure_link() 3704 static int rtnl_changelink(const struct sk_buff *skb, struct nlmsghdr *nlh, in rtnl_changelink() 3793 const struct nlmsghdr *nlh, in rtnl_newlink_create() [all …]
|
H A D | fib_rules.c | 551 static int fib_nl2rule(struct net *net, struct nlmsghdr *nlh, in fib_nl2rule() 851 int fib_newrule(struct net *net, struct sk_buff *skb, struct nlmsghdr *nlh, in fib_newrule() 973 static int fib_nl_newrule(struct sk_buff *skb, struct nlmsghdr *nlh, in fib_nl_newrule() 979 int fib_delrule(struct net *net, struct sk_buff *skb, struct nlmsghdr *nlh, in fib_delrule() 1091 static int fib_nl_delrule(struct sk_buff *skb, struct nlmsghdr *nlh, in fib_nl_delrule() 1128 struct nlmsghdr *nlh; in fib_nl_fill_rule() local 1236 static int fib_valid_dumprule_req(const struct nlmsghdr *nlh, in fib_valid_dumprule_req() 1264 const struct nlmsghdr *nlh = cb->nlh; in fib_nl_dumprule() local 1307 struct fib_rules_ops *ops, struct nlmsghdr *nlh, in notify_rule_change()
|
/linux/net/phonet/ |
H A D | pn_netlink.c | 52 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/include/net/ |
H A D | netlink.h | 486 struct nlmsghdr *nlh; member 600 static inline void *nlmsg_data(const struct nlmsghdr *nlh) in nlmsg_data() 609 static inline int nlmsg_len(const struct nlmsghdr *nlh) in nlmsg_len() 619 static inline struct nlattr *nlmsg_attrdata(const struct nlmsghdr *nlh, in nlmsg_attrdata() 631 static inline int nlmsg_attrlen(const struct nlmsghdr *nlh, int hdrlen) in nlmsg_attrlen() 641 static inline int nlmsg_ok(const struct nlmsghdr *nlh, int remaining) in nlmsg_ok() 657 nlmsg_next(const struct nlmsghdr *nlh, int *remaining) in nlmsg_next() 754 static inline int __nlmsg_parse(const struct nlmsghdr *nlh, int hdrlen, in __nlmsg_parse() 781 static inline int nlmsg_parse(const struct nlmsghdr *nlh, int hdrlen, in nlmsg_parse() 801 static inline int nlmsg_parse_deprecated(const struct nlmsghdr *nlh, int hdrlen, in nlmsg_parse_deprecated() [all …]
|
/linux/net/netfilter/ |
H A D | nfnetlink.c | 216 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 D | af_mpls.c | 543 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 D | mptcp_diag.c | 67 struct nlmsghdr nlh; in send_query() member 163 static void parse_nlmsg(struct nlmsghdr *nlh) in parse_nlmsg() 188 static void recv_nlmsg(int fd, struct nlmsghdr *nlh) in recv_nlmsg() 228 struct nlmsghdr *nlh = NULL; in get_mptcpinfo() local
|
/linux/drivers/connector/ |
H A D | connector.c | 68 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/net/ipv4/ |
H A D | inet_diag.c | 209 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 432 struct nlmsghdr *nlh; in inet_twsk_diag_fill() local 472 struct nlmsghdr *nlh; in inet_req_diag_fill() local 603 const struct nlmsghdr *nlh, in inet_diag_cmd_exact() 1307 const struct nlmsghdr *nlh = cb->nlh; in __inet_diag_dump_start() local 1396 const struct nlmsghdr *nlh) in inet_diag_get_exact_compat() 1412 static int inet_diag_rcv_msg_compat(struct sk_buff *skb, struct nlmsghdr *nlh) in inet_diag_rcv_msg_compat() 1459 struct nlmsghdr *nlh; in inet_diag_handler_get_info() local
|
H A D | devinet.c | 373 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() 653 static int inet_rtm_deladdr(struct sk_buff *skb, struct nlmsghdr *nlh, in inet_rtm_deladdr() 845 static int inet_validate_rtm(struct nlmsghdr *nlh, struct nlattr **tb, in inet_validate_rtm() 883 static struct in_ifaddr *inet_rtm_to_ifa(struct net *net, struct nlmsghdr *nlh, in inet_rtm_to_ifa() 961 static int inet_rtm_newaddr(struct sk_buff *skb, struct nlmsghdr *nlh, in inet_rtm_newaddr() 1711 struct nlmsghdr *nlh; in inet_fill_ifaddr() local 1785 static int inet_valid_dump_ifaddr_req(const struct nlmsghdr *nlh, in inet_valid_dump_ifaddr_req() 1932 const struct nlmsghdr *nlh = cb->nlh; in inet_dump_addr() local 2000 static void rtmsg_ifa(int event, struct in_ifaddr *ifa, struct nlmsghdr *nlh, in rtmsg_ifa() [all …]
|
/linux/security/selinux/ |
H A 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() local
|
/linux/include/linux/netfilter/ |
H A D | nfnetlink.h | 13 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/tools/bpf/bpftool/ |
H A D | net.c | 210 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/net/ieee802154/ |
H A D | netlink.c | 47 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 D | pm_netlink.c | 424 struct nlmsghdr *nlh; in mptcp_event_addr_removed() local 458 struct nlmsghdr *nlh; in mptcp_event_addr_announced() local 514 struct nlmsghdr *nlh; in mptcp_event_pm_listener() local 563 struct nlmsghdr *nlh; in mptcp_event() local
|
/linux/net/mctp/ |
H A D | neigh.c | 115 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
|