Home
last modified time | relevance | path

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

1234567

/OK3568_Linux_fs/app/forlinx/quectelCM/libmnl/
H A Dnlmsg.c66 size_t mnl_nlmsg_get_payload_len(const struct nlmsghdr *nlh) in mnl_nlmsg_get_payload_len()
83 struct nlmsghdr *nlh = buf; in mnl_nlmsg_put_header() local
101 void *mnl_nlmsg_put_extra_header(struct nlmsghdr *nlh, in mnl_nlmsg_put_extra_header()
117 void *mnl_nlmsg_get_payload(const struct nlmsghdr *nlh) in mnl_nlmsg_get_payload()
130 void *mnl_nlmsg_get_payload_offset(const struct nlmsghdr *nlh, in mnl_nlmsg_get_payload_offset()
152 bool mnl_nlmsg_ok(const struct nlmsghdr *nlh, int len) in mnl_nlmsg_ok()
172 struct nlmsghdr *mnl_nlmsg_next(const struct nlmsghdr *nlh, in mnl_nlmsg_next()
187 void *mnl_nlmsg_get_payload_tail(const struct nlmsghdr *nlh) in mnl_nlmsg_get_payload_tail()
206 bool mnl_nlmsg_seq_ok(const struct nlmsghdr *nlh, in mnl_nlmsg_seq_ok()
226 bool mnl_nlmsg_portid_ok(const struct nlmsghdr *nlh, in mnl_nlmsg_portid_ok()
[all …]
H A Dattr.c255 int mnl_attr_parse(const struct nlmsghdr *nlh, in mnl_attr_parse()
395 void mnl_attr_put(struct nlmsghdr *nlh, uint16_t type, in mnl_attr_put()
421 void mnl_attr_put_u8(struct nlmsghdr *nlh, uint16_t type, in mnl_attr_put_u8()
436 void mnl_attr_put_u16(struct nlmsghdr *nlh, uint16_t type, in mnl_attr_put_u16()
451 void mnl_attr_put_u32(struct nlmsghdr *nlh, uint16_t type, in mnl_attr_put_u32()
466 void mnl_attr_put_u64(struct nlmsghdr *nlh, uint16_t type, in mnl_attr_put_u64()
481 void mnl_attr_put_str(struct nlmsghdr *nlh, uint16_t type, in mnl_attr_put_str()
499 void mnl_attr_put_strz(struct nlmsghdr *nlh, uint16_t type, in mnl_attr_put_strz()
514 struct nlattr *mnl_attr_nest_start(struct nlmsghdr *nlh, in mnl_attr_nest_start()
540 bool mnl_attr_put_check(struct nlmsghdr *nlh, size_t buflen, in mnl_attr_put_check()
[all …]
H A Dcallback.c14 static int mnl_cb_noop(const struct nlmsghdr *nlh, void *data) in mnl_cb_noop()
21 static int mnl_cb_error(const struct nlmsghdr *nlh, void *data) in mnl_cb_error()
38 static int mnl_cb_stop(const struct nlmsghdr *nlh, void *data) in mnl_cb_stop()
59 const struct nlmsghdr *nlh = buf; in __mnl_cb_run() local
H A Difutils.c82 struct nlmsghdr *nlh; in if_act_on_link() local
168 struct nlmsghdr *nlh; in if_set_mtu() local
251 struct nlmsghdr *nlh; in if_act_on_addr() local
390 static int data_cb(const struct nlmsghdr *nlh, void *data) in data_cb()
443 struct nlmsghdr *nlh; in if_get_addr() local
551 struct nlmsghdr *nlh; in if_act_on_route() local
/OK3568_Linux_fs/kernel/net/dcb/
H A Ddcbnl.c187 struct nlmsghdr *nlh; in dcbnl_newmsg() local
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()
431 static int dcbnl_getapp(struct net_device *netdev, struct nlmsghdr *nlh, in dcbnl_getapp()
[all …]
/OK3568_Linux_fs/kernel/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
/OK3568_Linux_fs/kernel/tools/testing/selftests/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
/OK3568_Linux_fs/kernel/drivers/infiniband/core/
H A Dnldev.c868 static int nldev_get_doit(struct sk_buff *skb, struct nlmsghdr *nlh, in nldev_get_doit()
914 static int nldev_set_doit(struct sk_buff *skb, struct nlmsghdr *nlh, in nldev_set_doit()
973 struct nlmsghdr *nlh; in _nldev_get_dumpit() local
1004 static int nldev_port_get_doit(struct sk_buff *skb, struct nlmsghdr *nlh, in nldev_port_get_doit()
1064 struct nlmsghdr *nlh; in nldev_port_get_dumpit() local
1116 static int nldev_res_get_doit(struct sk_buff *skb, struct nlmsghdr *nlh, in nldev_res_get_doit()
1166 struct nlmsghdr *nlh; in _nldev_res_get_dumpit() local
1241 static int res_get_common_doit(struct sk_buff *skb, struct nlmsghdr *nlh, in res_get_common_doit()
1337 struct nlmsghdr *nlh; in res_get_common_dumpit() local
1515 static int nldev_newlink(struct sk_buff *skb, struct nlmsghdr *nlh, in nldev_newlink()
[all …]
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
/OK3568_Linux_fs/kernel/net/xfrm/
H A Dxfrm_user.c671 static int xfrm_add_sa(struct sk_buff *skb, struct nlmsghdr *nlh, in xfrm_add_sa()
750 static int xfrm_del_sa(struct sk_buff *skb, struct nlmsghdr *nlh, in xfrm_del_sa()
980 struct nlmsghdr *nlh; in dump_one_state() local
1135 struct nlmsghdr *nlh; in build_spdinfo() local
1181 static int xfrm_set_spdinfo(struct sk_buff *skb, struct nlmsghdr *nlh, in xfrm_set_spdinfo()
1226 static int xfrm_get_spdinfo(struct sk_buff *skb, struct nlmsghdr *nlh, in xfrm_get_spdinfo()
1258 struct nlmsghdr *nlh; in build_sadinfo() local
1285 static int xfrm_get_sadinfo(struct sk_buff *skb, struct nlmsghdr *nlh, in xfrm_get_sadinfo()
1305 static int xfrm_get_sa(struct sk_buff *skb, struct nlmsghdr *nlh, in xfrm_get_sa()
1329 static int xfrm_alloc_userspi(struct sk_buff *skb, struct nlmsghdr *nlh, in xfrm_alloc_userspi()
[all …]
/OK3568_Linux_fs/kernel/net/netfilter/
H A Dnfnetlink_cttimeout.c76 const struct nlmsghdr *nlh, in cttimeout_new_timeout()
162 struct nlmsghdr *nlh; in ctnl_timeout_fill_info() local
238 const struct nlmsghdr *nlh, in cttimeout_get_timeout()
309 const struct nlmsghdr *nlh, in cttimeout_del_timeout()
341 const struct nlmsghdr *nlh, in cttimeout_default_set()
379 struct nlmsghdr *nlh; in cttimeout_default_fill_info() local
415 const struct nlmsghdr *nlh, in cttimeout_default_get()
H A Dnfnetlink.c182 static int nfnetlink_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh, in nfnetlink_rcv_msg()
267 struct nlmsghdr *nlh; member
272 static int nfnl_err_add(struct list_head *list, struct nlmsghdr *nlh, int err, in nfnl_err_add()
320 static void nfnetlink_rcv_batch(struct sk_buff *skb, struct nlmsghdr *nlh, in nfnetlink_rcv_batch()
545 static void nfnetlink_rcv_skb_batch(struct sk_buff *skb, struct nlmsghdr *nlh) in nfnetlink_rcv_skb_batch()
585 struct nlmsghdr *nlh = nlmsg_hdr(skb); in nfnetlink_rcv() local
/OK3568_Linux_fs/kernel/net/wimax/
H A Dop-msg.c171 struct nlmsghdr *nlh = (void *) msg->head; in wimax_msg_data_len() local
193 struct nlmsghdr *nlh = (void *) msg->head; in wimax_msg_data() local
214 struct nlmsghdr *nlh = (void *) msg->head; in wimax_msg_len() local
322 struct nlmsghdr *nlh = info->nlhdr; in wimax_gnl_doit_msg_from_user() local
/OK3568_Linux_fs/kernel/net/netfilter/ipset/
H A Dip_set_core.c957 flag_exist(const struct nlmsghdr *nlh) in flag_exist()
1035 const struct nlmsghdr *nlh, in ip_set_none()
1043 struct sk_buff *skb, const struct nlmsghdr *nlh, in ip_set_create()
1185 struct sk_buff *skb, const struct nlmsghdr *nlh, in ip_set_destroy()
1264 const struct nlmsghdr *nlh, in ip_set_flush()
1304 struct sk_buff *skb, const struct nlmsghdr *nlh, in ip_set_rename()
1354 const struct nlmsghdr *nlh, in ip_set_swap()
1457 dump_attrs(struct nlmsghdr *nlh) in dump_attrs()
1479 struct nlmsghdr *nlh = nlmsg_hdr(cb->skb); in ip_set_dump_start() local
1534 struct nlmsghdr *nlh = NULL; in ip_set_dump_do() local
[all …]
/OK3568_Linux_fs/kernel/crypto/
H A Dcrypto_user_base.c159 struct nlmsghdr *nlh; in crypto_report_alg() local
260 static int crypto_update_alg(struct sk_buff *skb, struct nlmsghdr *nlh, in crypto_update_alg()
296 static int crypto_del_alg(struct sk_buff *skb, struct nlmsghdr *nlh, in crypto_del_alg()
334 static int crypto_add_alg(struct sk_buff *skb, struct nlmsghdr *nlh, in crypto_add_alg()
382 static int crypto_del_rng(struct sk_buff *skb, struct nlmsghdr *nlh, in crypto_del_rng()
422 static int crypto_user_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh, in crypto_user_rcv_msg()
/OK3568_Linux_fs/kernel/net/ipv6/
H A Daddrlabel.c384 static int ip6addrlbl_newdel(struct sk_buff *skb, struct nlmsghdr *nlh, in ip6addrlbl_newdel()
435 static void ip6addrlbl_putmsg(struct nlmsghdr *nlh, in ip6addrlbl_putmsg()
453 struct nlmsghdr *nlh = nlmsg_put(skb, portid, seq, event, in ip6addrlbl_fill() local
470 static int ip6addrlbl_valid_dump_req(const struct nlmsghdr *nlh, in ip6addrlbl_valid_dump_req()
497 const struct nlmsghdr *nlh = cb->nlh; in ip6addrlbl_dump() local
536 const struct nlmsghdr *nlh, in ip6addrlbl_valid_get_req()
579 static int ip6addrlbl_get(struct sk_buff *in_skb, struct nlmsghdr *nlh, in ip6addrlbl_get()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/include/net/
H A Dnetlink.h454 struct nlmsghdr *nlh; member
568 static inline void *nlmsg_data(const struct nlmsghdr *nlh) in nlmsg_data()
577 static inline int nlmsg_len(const struct nlmsghdr *nlh) in nlmsg_len()
587 static inline struct nlattr *nlmsg_attrdata(const struct nlmsghdr *nlh, in nlmsg_attrdata()
599 static inline int nlmsg_attrlen(const struct nlmsghdr *nlh, int hdrlen) in nlmsg_attrlen()
609 static inline int nlmsg_ok(const struct nlmsghdr *nlh, int remaining) in nlmsg_ok()
625 nlmsg_next(const struct nlmsghdr *nlh, int *remaining) in nlmsg_next()
722 static inline int __nlmsg_parse(const struct nlmsghdr *nlh, int hdrlen, in __nlmsg_parse()
748 static inline int nlmsg_parse(const struct nlmsghdr *nlh, int hdrlen, in nlmsg_parse()
767 static inline int nlmsg_parse_deprecated(const struct nlmsghdr *nlh, int hdrlen, in nlmsg_parse_deprecated()
[all …]
/OK3568_Linux_fs/kernel/net/core/
H A Dsock_diag.c165 void sock_diag_register_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh)) in sock_diag_register_inet_compat()
173 void sock_diag_unregister_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh)) in sock_diag_unregister_inet_compat()
213 static int __sock_diag_cmd(struct sk_buff *skb, struct nlmsghdr *nlh) in __sock_diag_cmd()
244 static int sock_diag_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh, in sock_diag_rcv_msg()
H A Drtnetlink.c729 struct nlmsghdr *nlh, gfp_t flags) in rtnl_notify()
1707 struct nlmsghdr *nlh; in rtnl_fill_ifinfo() local
2012 static int rtnl_valid_dump_ifinfo_req(const struct nlmsghdr *nlh, in rtnl_valid_dump_ifinfo_req()
2059 const struct nlmsghdr *nlh = cb->nlh; in rtnl_dump_ifinfo() local
2969 static int rtnl_setlink(struct sk_buff *skb, struct nlmsghdr *nlh, in rtnl_setlink()
3064 static int rtnl_dellink(struct sk_buff *skb, struct nlmsghdr *nlh, in rtnl_dellink()
3237 static int __rtnl_newlink(struct sk_buff *skb, struct nlmsghdr *nlh, in __rtnl_newlink()
3484 static int rtnl_newlink(struct sk_buff *skb, struct nlmsghdr *nlh, in rtnl_newlink()
3500 const struct nlmsghdr *nlh, in rtnl_valid_getlink_req()
3547 static int rtnl_getlink(struct sk_buff *skb, struct nlmsghdr *nlh, in rtnl_getlink()
[all …]
/OK3568_Linux_fs/kernel/tools/bpf/bpftool/
H A Dnet.c197 static int __dump_class_nlmsg(struct nlmsghdr *nlh, in __dump_class_nlmsg()
217 struct nlmsghdr nlh; in netlink_get_class() member
236 static int __dump_qdisc_nlmsg(struct nlmsghdr *nlh, in __dump_qdisc_nlmsg()
256 struct nlmsghdr nlh; in netlink_get_qdisc() member
275 static int __dump_filter_nlmsg(struct nlmsghdr *nlh, in __dump_filter_nlmsg()
295 struct nlmsghdr nlh; in netlink_get_filter() member
315 static int __dump_link_nlmsg(struct nlmsghdr *nlh, in __dump_link_nlmsg()
334 struct nlmsghdr nlh; in netlink_get_link() member
/OK3568_Linux_fs/kernel/drivers/connector/
H A Dconnector.c67 struct nlmsghdr *nlh; in cn_netlink_send_mult() local
133 struct nlmsghdr *nlh; in cn_call_callback() local
172 struct nlmsghdr *nlh; in cn_rx_skb() local
/OK3568_Linux_fs/kernel/net/ipv4/
H A Dinet_diag.c206 static int inet_diag_parse_attrs(const struct nlmsghdr *nlh, int hdrlen, in inet_diag_parse_attrs()
244 struct nlmsghdr *nlh; in inet_sk_diag_fill() local
421 struct nlmsghdr *nlh; in inet_twsk_diag_fill() local
455 struct nlmsghdr *nlh; in inet_req_diag_fill() local
589 const struct nlmsghdr *nlh, in inet_diag_cmd_exact()
1197 const struct nlmsghdr *nlh = cb->nlh; in __inet_diag_dump_start() local
1285 const struct nlmsghdr *nlh) in inet_diag_get_exact_compat()
1300 static int inet_diag_rcv_msg_compat(struct sk_buff *skb, struct nlmsghdr *nlh) in inet_diag_rcv_msg_compat()
1347 struct nlmsghdr *nlh; in inet_diag_handler_get_info() local
/OK3568_Linux_fs/kernel/net/bridge/
H A Dbr_mdb.c297 static int br_mdb_valid_dump_req(const struct nlmsghdr *nlh, in br_mdb_valid_dump_req()
324 struct nlmsghdr *nlh = NULL; in br_mdb_dump() local
382 struct nlmsghdr *nlh; in nlmsg_populate_mdb_fill() local
611 struct nlmsghdr *nlh; in nlmsg_populate_rtr_fill() local
757 static int br_mdb_parse(struct sk_buff *skb, struct nlmsghdr *nlh, in br_mdb_parse()
935 static int br_mdb_add(struct sk_buff *skb, struct nlmsghdr *nlh, in br_mdb_add()
1055 static int br_mdb_del(struct sk_buff *skb, struct nlmsghdr *nlh, in br_mdb_del()
/OK3568_Linux_fs/kernel/net/mpls/
H A Daf_mpls.c540 struct nlmsghdr *nlh = info ? info->nlh : NULL; in mpls_notify_route() local
1135 struct nlmsghdr *nlh; in mpls_netconf_fill_devconf() local
1211 const struct nlmsghdr *nlh, in mpls_netconf_valid_get_req()
1251 struct nlmsghdr *nlh, in mpls_netconf_get_devconf()
1302 const struct nlmsghdr *nlh = cb->nlh; in mpls_netconf_dump_devconf() local
1807 struct nlmsghdr *nlh, in rtm_to_route_config()
1945 static int mpls_rtm_delroute(struct sk_buff *skb, struct nlmsghdr *nlh, in mpls_rtm_delroute()
1967 static int mpls_rtm_newroute(struct sk_buff *skb, struct nlmsghdr *nlh, in mpls_rtm_newroute()
1992 struct nlmsghdr *nlh; in mpls_dump_route() local
2099 static int mpls_valid_fib_dump_req(struct net *net, const struct nlmsghdr *nlh, in mpls_valid_fib_dump_req()
[all …]

1234567