Home
last modified time | relevance | path

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

123

/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 Dconntrack_dump_flush.c20 static int build_cta_tuple_v4(struct nlmsghdr *nlh, int type, in build_cta_tuple_v4()
50 static int build_cta_tuple_v6(struct nlmsghdr *nlh, int type, in build_cta_tuple_v6()
80 static int build_cta_proto(struct nlmsghdr *nlh) in build_cta_proto()
101 static int conntrack_data_insert(struct mnl_socket *sock, struct nlmsghdr *nlh, in conntrack_data_insert()
149 struct nlmsghdr *nlh; in conntrack_data_generate_v4() local
183 struct nlmsghdr *nlh; in conntrack_data_generate_v6() local
213 static int count_entries(const struct nlmsghdr *nlh, void *data) in count_entries()
222 struct nlmsghdr *nlh, *rplnlh; in conntracK_count_zone() local
269 struct nlmsghdr *nlh, *rplnlh; in conntrack_flush_zone() local
H A Dnf_queue.c80 static int queue_cb(const struct nlmsghdr *nlh, void *data) in queue_cb()
126 struct nlmsghdr *nlh = mnl_nlmsg_put_header(buf); in nfq_build_cfg_request() local
150 struct nlmsghdr *nlh = mnl_nlmsg_put_header(buf); in nfq_build_cfg_params() local
177 struct nlmsghdr *nlh; in nfq_build_verdict() local
215 struct nlmsghdr *nlh; in open_queue() local
279 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/net/xfrm/
H A Dxfrm_user.c1018 xfrm_add_sa(struct sk_buff * skb,struct nlmsghdr * nlh,struct nlattr ** attrs,struct netlink_ext_ack * extack) xfrm_add_sa() argument
1097 xfrm_del_sa(struct sk_buff * skb,struct nlmsghdr * nlh,struct nlattr ** attrs,struct netlink_ext_ack * extack) xfrm_del_sa() argument
1457 struct nlmsghdr *nlh; dump_one_state() local
1621 struct nlmsghdr *nlh; build_spdinfo() local
1667 xfrm_set_spdinfo(struct sk_buff * skb,struct nlmsghdr * nlh,struct nlattr ** attrs,struct netlink_ext_ack * extack) xfrm_set_spdinfo() argument
1721 xfrm_get_spdinfo(struct sk_buff * skb,struct nlmsghdr * nlh,struct nlattr ** attrs,struct netlink_ext_ack * extack) xfrm_get_spdinfo() argument
1754 struct nlmsghdr *nlh; build_sadinfo() local
1781 xfrm_get_sadinfo(struct sk_buff * skb,struct nlmsghdr * nlh,struct nlattr ** attrs,struct netlink_ext_ack * extack) xfrm_get_sadinfo() argument
1802 xfrm_get_sa(struct sk_buff * skb,struct nlmsghdr * nlh,struct nlattr ** attrs,struct netlink_ext_ack * extack) xfrm_get_sa() argument
1826 xfrm_alloc_userspi(struct sk_buff * skb,struct nlmsghdr * nlh,struct nlattr ** attrs,struct netlink_ext_ack * extack) xfrm_alloc_userspi() argument
2238 xfrm_add_policy(struct sk_buff * skb,struct nlmsghdr * nlh,struct nlattr ** attrs,struct netlink_ext_ack * extack) xfrm_add_policy() argument
2367 struct nlmsghdr *nlh; dump_one_policy() local
2473 struct nlmsghdr *nlh; xfrm_notify_userpolicy() local
2507 xfrm_set_default(struct sk_buff * skb,struct nlmsghdr * nlh,struct nlattr ** attrs,struct netlink_ext_ack * extack) xfrm_set_default() argument
2528 xfrm_get_default(struct sk_buff * skb,struct nlmsghdr * nlh,struct nlattr ** attrs,struct netlink_ext_ack * extack) xfrm_get_default() argument
2558 xfrm_get_policy(struct sk_buff * skb,struct nlmsghdr * nlh,struct nlattr ** attrs,struct netlink_ext_ack * extack) xfrm_get_policy() argument
2642 xfrm_flush_sa(struct sk_buff * skb,struct nlmsghdr * nlh,struct nlattr ** attrs,struct netlink_ext_ack * extack) xfrm_flush_sa() argument
2687 struct nlmsghdr *nlh; build_aevent() local
2757 xfrm_get_ae(struct sk_buff * skb,struct nlmsghdr * nlh,struct nlattr ** attrs,struct netlink_ext_ack * extack) xfrm_get_ae() argument
2806 xfrm_new_ae(struct sk_buff * skb,struct nlmsghdr * nlh,struct nlattr ** attrs,struct netlink_ext_ack * extack) xfrm_new_ae() argument
2863 xfrm_flush_policy(struct sk_buff * skb,struct nlmsghdr * nlh,struct nlattr ** attrs,struct netlink_ext_ack * extack) xfrm_flush_policy() argument
2892 xfrm_add_pol_expire(struct sk_buff * skb,struct nlmsghdr * nlh,struct nlattr ** attrs,struct netlink_ext_ack * extack) xfrm_add_pol_expire() argument
2959 xfrm_add_sa_expire(struct sk_buff * skb,struct nlmsghdr * nlh,struct nlattr ** attrs,struct netlink_ext_ack * extack) xfrm_add_sa_expire() argument
2997 xfrm_add_acquire(struct sk_buff * skb,struct nlmsghdr * nlh,struct nlattr ** attrs,struct netlink_ext_ack * extack) xfrm_add_acquire() argument
3118 xfrm_do_migrate(struct sk_buff * skb,struct nlmsghdr * nlh,struct nlattr ** attrs,struct netlink_ext_ack * extack) xfrm_do_migrate() argument
3176 xfrm_do_migrate(struct sk_buff * skb,struct nlmsghdr * nlh,struct nlattr ** attrs,struct netlink_ext_ack * extack) xfrm_do_migrate() argument
3232 struct nlmsghdr *nlh; build_migrate() local
3455 xfrm_user_rcv_msg(struct sk_buff * skb,struct nlmsghdr * nlh,struct netlink_ext_ack * extack) xfrm_user_rcv_msg() argument
3562 struct nlmsghdr *nlh; build_expire() local
3635 struct nlmsghdr *nlh; xfrm_notify_sa_flush() local
3720 struct nlmsghdr *nlh; xfrm_notify_sa() local
3814 struct nlmsghdr *nlh; build_acquire() local
3944 struct nlmsghdr *nlh; build_polexpire() local
3998 struct nlmsghdr *nlh; xfrm_notify_policy() local
4066 struct nlmsghdr *nlh; xfrm_notify_policy_flush() local
4121 struct nlmsghdr *nlh; build_report() local
4168 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/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
/linux/security/selinux/
H A Dnetlink.c44 static void selnl_add_payload(struct nlmsghdr *nlh, int len, int msgtype, void *data) in selnl_add_payload()
73 struct nlmsghdr *nlh; in selnl_notify() local
/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/tools/bpf/bpftool/
H A Dnet.c213 static int __dump_class_nlmsg(struct nlmsghdr *nlh, in __dump_class_nlmsg() argument
233 struct nlmsghdr nlh; in netlink_get_class() member
252 static int __dump_qdisc_nlmsg(struct nlmsghdr *nlh, in __dump_qdisc_nlmsg() argument
272 struct nlmsghdr nlh; netlink_get_qdisc() member
291 __dump_filter_nlmsg(struct nlmsghdr * nlh,dump_nlmsg_t dump_filter_nlmsg,void * cookie) __dump_filter_nlmsg() argument
311 struct nlmsghdr nlh; netlink_get_filter() member
331 __dump_link_nlmsg(struct nlmsghdr * nlh,dump_nlmsg_t dump_link_nlmsg,void * cookie) __dump_link_nlmsg() argument
350 struct nlmsghdr nlh; netlink_get_link() member
[all...]
/linux/net/mptcp/
H A Dpm_netlink.c437 struct nlmsghdr *nlh; in mptcp_event_addr_removed() local
471 struct nlmsghdr *nlh; in mptcp_event_addr_announced() local
527 struct nlmsghdr *nlh; in mptcp_event_pm_listener() local
576 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()
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
H A Ddevice.c65 struct nlmsghdr *nlh; in mctp_fill_addrinfo() local
183 static int mctp_rtm_newaddr(struct sk_buff *skb, struct nlmsghdr *nlh, in mctp_rtm_newaddr()
246 static int mctp_rtm_deladdr(struct sk_buff *skb, struct nlmsghdr *nlh, in mctp_rtm_deladdr()
/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
/linux/tools/include/uapi/linux/
H A Dnetlink.h94 #define NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0))) argument
95 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ argument
97 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \ argument
100 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len))) argument
/linux/tools/testing/selftests/net/af_unix/
H A Ddiag_uid.c81 struct nlmsghdr nlh; in send_request() member
151 struct nlmsghdr *nlh; in receive_response() local
/linux/net/core/
H A Dnet_namespace.c852 static int rtnl_net_newid(struct sk_buff *skb, struct nlmsghdr *nlh, in rtnl_net_newid()
933 struct nlmsghdr *nlh; in rtnl_net_fill() local
960 const struct nlmsghdr *nlh, in rtnl_net_valid_getid_req()
996 static int rtnl_net_getid(struct sk_buff *skb, struct nlmsghdr *nlh, in rtnl_net_getid()
1104 static int rtnl_valid_dump_net_req(const struct nlmsghdr *nlh, struct sock *sk, in rtnl_valid_dump_net_req()
1180 struct nlmsghdr *nlh, gfp_t gfp) in rtnl_net_notifyid()
/linux/net/smc/
H A Dsmc_stats.c273 void *nlh; in smc_nl_get_stats() local
337 void *nlh; in smc_nl_get_fback_details() local
/linux/net/sctp/
H A Ddiag.c137 struct nlmsghdr *nlh; inet_sctp_diag_fill() local
229 const struct nlmsghdr *nlh; global() member
437 const struct nlmsghdr *nlh = cb->nlh; sctp_diag_dump_one() local
[all...]
/linux/net/netlink/
H A Dgenetlink.c891 struct nlmsghdr *nlh; in genlmsg_put() local
920 struct nlmsghdr *nlh, in genl_family_rcv_msg_attrs_parse()
960 struct nlmsghdr *nlh; member
1052 struct nlmsghdr *nlh, in genl_family_rcv_msg_dumpit()
1083 struct nlmsghdr *nlh, in genl_family_rcv_msg_doit()
1126 struct nlmsghdr *nlh, struct genlmsghdr *hdr, in genl_header_check()
1157 struct nlmsghdr *nlh, in genl_family_rcv_msg()
1198 static int genl_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh, in genl_rcv_msg()
/linux/include/uapi/linux/
H A Dnetlink.h103 #define NLMSG_DATA(nlh) ((void *)(((char *)nlh) + NLMSG_HDRLEN)) argument
104 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ argument
107 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \ argument
110 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len))) argument

123