Home
last modified time | relevance | path

Searched refs:nlmsghdr (Results 1 – 25 of 198) sorted by relevance

12345678

/OK3568_Linux_fs/app/forlinx/quectelCM/libmnl/
H A Dlibmnl.h43 #define MNL_NLMSG_HDRLEN MNL_ALIGN(sizeof(struct nlmsghdr))
46 extern size_t mnl_nlmsg_get_payload_len(const struct nlmsghdr *nlh);
49 extern struct nlmsghdr *mnl_nlmsg_put_header(void *buf);
50 extern void *mnl_nlmsg_put_extra_header(struct nlmsghdr *nlh, size_t size);
53 extern bool mnl_nlmsg_ok(const struct nlmsghdr *nlh, int len);
54 extern struct nlmsghdr *mnl_nlmsg_next(const struct nlmsghdr *nlh, int *len);
57 extern bool mnl_nlmsg_seq_ok(const struct nlmsghdr *nlh, unsigned int seq);
60 extern bool mnl_nlmsg_portid_ok(const struct nlmsghdr *nlh, unsigned int portid);
63 extern void *mnl_nlmsg_get_payload(const struct nlmsghdr *nlh);
64 extern void *mnl_nlmsg_get_payload_offset(const struct nlmsghdr *nlh, size_t offset);
[all …]
H A Dnlmsg.c66 size_t mnl_nlmsg_get_payload_len(const struct nlmsghdr *nlh) in mnl_nlmsg_get_payload_len()
80 struct nlmsghdr *mnl_nlmsg_put_header(void *buf) in mnl_nlmsg_put_header()
82 int len = MNL_ALIGN(sizeof(struct nlmsghdr)); in mnl_nlmsg_put_header()
83 struct nlmsghdr *nlh = buf; in mnl_nlmsg_put_header()
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()
154 return len >= (int)sizeof(struct nlmsghdr) && in mnl_nlmsg_ok()
155 nlh->nlmsg_len >= sizeof(struct nlmsghdr) && in mnl_nlmsg_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()
/OK3568_Linux_fs/yocto/meta-openembedded/meta-networking/recipes-filter/libnfnetlink/libnfnetlink/
H A D0006-src-Use-stdint-types-everywhere.patch31 int (*call)(struct nlmsghdr *nlh, struct nfattr *nfa[], void *data);
50 extern void nfnl_fill_hdr(struct nfnl_subsys_handle *, struct nlmsghdr *,
56 nfnl_talk(struct nfnl_handle *, struct nlmsghdr *, pid_t,
57 unsigned, struct nlmsghdr *,
69 @@ -180,12 +181,12 @@ extern int nfnl_query(struct nfnl_handle *h, struct nlmsghdr *nlh);
72 extern int nfnl_addattr_l(struct nlmsghdr *, int, int, const void *, int);
73 -extern int nfnl_addattr8(struct nlmsghdr *, int, int, u_int8_t);
74 -extern int nfnl_addattr16(struct nlmsghdr *, int, int, u_int16_t);
75 -extern int nfnl_addattr32(struct nlmsghdr *, int, int, u_int32_t);
76 +extern int nfnl_addattr8(struct nlmsghdr *, int, int, uint8_t);
[all …]
/OK3568_Linux_fs/kernel/tools/testing/selftests/net/mptcp/
H A Dpm_nl_ctl.c39 struct nlmsghdr *nh = (void *)data; in init_genl_req()
55 static void nl_error(struct nlmsghdr *nh) in nl_error()
86 static int do_nl_req(int fd, struct nlmsghdr *nh, int len, int max) in do_nl_req()
118 static int genl_parse_getfamily(struct nlmsghdr *nlh) in genl_parse_getfamily()
149 char data[NLMSG_ALIGN(sizeof(struct nlmsghdr)) + in resolve_mptcp_pm_netlink()
152 struct nlmsghdr *nh; in resolve_mptcp_pm_netlink()
174 char data[NLMSG_ALIGN(sizeof(struct nlmsghdr)) + in add_addr()
178 struct nlmsghdr *nh; in add_addr()
285 char data[NLMSG_ALIGN(sizeof(struct nlmsghdr)) + in del_addr()
289 struct nlmsghdr *nh; in del_addr()
[all …]
/OK3568_Linux_fs/kernel/include/net/
H A Dnetlink.h454 struct nlmsghdr *nlh;
496 int (*cb)(struct sk_buff *, struct nlmsghdr *,
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()
611 return (remaining >= (int) sizeof(struct nlmsghdr) && in nlmsg_ok()
612 nlh->nlmsg_len >= sizeof(struct nlmsghdr) && in nlmsg_ok()
624 static inline struct nlmsghdr *
[all …]
H A Dgenetlink.h90 struct nlmsghdr * nlhdr;
200 static inline struct nlmsghdr *genlmsg_nlhdr(void *user_hdr) in genlmsg_nlhdr()
202 return (struct nlmsghdr *)((char *)user_hdr - in genlmsg_nlhdr()
216 static inline int genlmsg_parse_deprecated(const struct nlmsghdr *nlh, in genlmsg_parse_deprecated()
235 static inline int genlmsg_parse(const struct nlmsghdr *nlh, in genlmsg_parse()
383 struct nlmsghdr *nlh = (struct nlmsghdr *)((unsigned char *)gnlh - in genlmsg_len()
/OK3568_Linux_fs/kernel/tools/include/uapi/linux/
H A Dnetlink.h44 struct nlmsghdr { struct
91 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))
96 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
97 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \
98 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
111 struct nlmsghdr msg;
/OK3568_Linux_fs/kernel/include/linux/netfilter/
H A Dnfnetlink.h13 const struct nlmsghdr *nlh,
17 const struct nlmsghdr *nlh,
21 const struct nlmsghdr *nlh,
65 static inline void nfnl_fill_hdr(struct nlmsghdr *nlh, u8 family, u8 version, in nfnl_fill_hdr()
76 static inline struct nlmsghdr *nfnl_msg_put(struct sk_buff *skb, u32 portid, in nfnl_msg_put()
81 struct nlmsghdr *nlh; in nfnl_msg_put()
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/linux/
H A Dnetlink.h44 struct nlmsghdr { struct
91 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))
96 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
97 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \
98 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
111 struct nlmsghdr msg;
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/
H A Dnetlink.h44 struct nlmsghdr { struct
91 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))
96 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
97 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \
98 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
111 struct nlmsghdr msg;
/OK3568_Linux_fs/kernel/include/linux/
H A Dsock_diag.h12 struct nlmsghdr;
17 int (*dump)(struct sk_buff *skb, struct nlmsghdr *nlh);
19 int (*destroy)(struct sk_buff *skb, struct nlmsghdr *nlh);
25 void sock_diag_register_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh));
26 void sock_diag_unregister_inet_compat(int (*fn)(struct sk_buff *skb, struct nlmsghdr *nlh));
H A Dnetlink.h14 static inline struct nlmsghdr *nlmsg_hdr(const struct sk_buff *skb) in nlmsg_hdr()
16 return (struct nlmsghdr *)skb->data; in nlmsg_hdr()
149 void netlink_ack(struct sk_buff *in_skb, struct nlmsghdr *nlh, int err,
205 const struct nlmsghdr *nlh;
234 struct nlmsghdr *
247 const struct nlmsghdr *nlh,
250 const struct nlmsghdr *nlh, in netlink_dump_start()
/OK3568_Linux_fs/kernel/include/uapi/linux/
H A Dnetlink.h44 struct nlmsghdr { struct
91 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))
96 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
97 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \
98 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
111 struct nlmsghdr msg;
/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()
120 static struct nlmsghdr *
123 struct nlmsghdr *nlh = mnl_nlmsg_put_header(buf); in nfq_build_cfg_request()
144 static struct nlmsghdr *
147 struct nlmsghdr *nlh = mnl_nlmsg_put_header(buf); in nfq_build_cfg_params()
167 static struct nlmsghdr *
174 struct nlmsghdr *nlh; in nfq_build_verdict()
212 struct nlmsghdr *nlh; in open_queue()
274 struct nlmsghdr *nlh; in mainloop()
/OK3568_Linux_fs/buildroot/package/ifmetric/
H A D0001-Fix-issue-NETLINK-Packet-too-small-or-truncated-92-1.patch18 @@ -44,7 +44,7 @@ int netlink_request(int s, struct nlmsghdr *n, int (*callback) (struct nlmsghdr
24 struct nlmsghdr *p = (struct nlmsghdr *) replybuf;
/OK3568_Linux_fs/kernel/net/dcb/
H A Ddcbnl.c183 u32 flags, struct nlmsghdr **nlhp) in dcbnl_newmsg()
187 struct nlmsghdr *nlh; in dcbnl_newmsg()
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()
[all …]
/OK3568_Linux_fs/kernel/net/xfrm/
H A Dxfrm_compat.c132 static struct nlmsghdr *xfrm_nlmsg_put_compat(struct sk_buff *skb, in xfrm_nlmsg_put_compat()
133 const struct nlmsghdr *nlh_src, u16 type) in xfrm_nlmsg_put_compat()
137 struct nlmsghdr *nlh_dst; in xfrm_nlmsg_put_compat()
286 static int xfrm_xlate64(struct sk_buff *dst, const struct nlmsghdr *nlh_src) in xfrm_xlate64()
290 struct nlmsghdr *nlh_dst; in xfrm_xlate64()
320 static int xfrm_alloc_compat(struct sk_buff *skb, const struct nlmsghdr *nlh_src) in xfrm_alloc_compat()
351 static size_t xfrm_user_rcv_calculate_len64(const struct nlmsghdr *src, in xfrm_user_rcv_calculate_len64()
399 struct nlmsghdr *nlmsg = dst; in xfrm_attr_cpy32()
460 static int xfrm_xlate32(struct nlmsghdr *dst, const struct nlmsghdr *src, in xfrm_xlate32()
579 static struct nlmsghdr *xfrm_user_rcv_msg_compat(const struct nlmsghdr *h32, in xfrm_user_rcv_msg_compat()
[all …]
/OK3568_Linux_fs/kernel/samples/bpf/
H A Dxdp_router_ipv4_user.c94 struct nlmsghdr *nh; in recv_msg()
104 nh = (struct nlmsghdr *)buf_ptr; in recv_msg()
122 static void read_route(struct nlmsghdr *nh, int nll) in read_route()
315 struct nlmsghdr *nh; in get_route_table()
323 struct nlmsghdr nl; in get_route_table()
367 nh = (struct nlmsghdr *)buf; in get_route_table()
377 static void read_arp(struct nlmsghdr *nh, int nll) in read_arp()
455 struct nlmsghdr *nh; in get_arp_table()
462 struct nlmsghdr nl; in get_arp_table()
505 nh = (struct nlmsghdr *)buf; in get_arp_table()
[all …]
/OK3568_Linux_fs/kernel/tools/bpf/bpftool/
H A Dnet.c94 typedef int (*__dump_nlmsg_t)(struct nlmsghdr *nlmsg, dump_nlmsg_t, void *cookie);
145 struct nlmsghdr *nh; in netlink_recv()
160 for (nh = (struct nlmsghdr *)buf; NLMSG_OK(nh, len); in netlink_recv()
197 static int __dump_class_nlmsg(struct nlmsghdr *nlh, in __dump_class_nlmsg()
217 struct nlmsghdr nlh; in netlink_get_class()
236 static int __dump_qdisc_nlmsg(struct nlmsghdr *nlh, in __dump_qdisc_nlmsg()
256 struct nlmsghdr nlh; in netlink_get_qdisc()
275 static int __dump_filter_nlmsg(struct nlmsghdr *nlh, in __dump_filter_nlmsg()
295 struct nlmsghdr nlh; in netlink_get_filter()
315 static int __dump_link_nlmsg(struct nlmsghdr *nlh, in __dump_link_nlmsg()
[all …]
/OK3568_Linux_fs/kernel/include/rdma/
H A Drdma_netlink.h16 int (*doit)(struct sk_buff *skb, struct nlmsghdr *nlh,
63 void *ibnl_put_msg(struct sk_buff *skb, struct nlmsghdr **nlh, int seq,
74 int ibnl_put_attr(struct sk_buff *skb, struct nlmsghdr *nlh,
/OK3568_Linux_fs/kernel/crypto/
H A Dcrypto_user_base.c159 struct nlmsghdr *nlh; in crypto_report_alg()
184 static int crypto_report(struct sk_buff *in_skb, struct nlmsghdr *in_nlh, in crypto_report()
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()
408 int (*doit)(struct sk_buff *, struct nlmsghdr *, struct nlattr **);
422 static int crypto_user_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh, in crypto_user_rcv_msg()
/OK3568_Linux_fs/yocto/meta-openembedded/meta-networking/recipes-filter/libnetfilter/files/
H A D0001-libnetfilter-acct-Declare-the-define-visivility-attribute-together.patch207 -struct nlmsghdr *
208 +struct nlmsghdr __EXPORT *
211 struct nlmsghdr *nlh;
223 -void nfacct_nlmsg_build_payload(struct nlmsghdr *nlh, struct nfacct *nfacct)
224 +void __EXPORT nfacct_nlmsg_build_payload(struct nlmsghdr *nlh, struct nfacct *nfacct)
228 @@ -526,7 +515,6 @@ void nfacct_nlmsg_build_payload(struct nlmsghdr *nlh, struct nfacct *nfacct)
242 nfacct_nlmsg_parse_payload(const struct nlmsghdr *nlh, struct nfacct *nfacct)
245 @@ -589,7 +577,6 @@ nfacct_nlmsg_parse_payload(const struct nlmsghdr *nlh, struct nfacct *nfacct)
/OK3568_Linux_fs/yocto/meta-openembedded/meta-networking/recipes-protocols/mdns/mdns/
H A D0010-Handle-errors-from-socket-calls.patch27 struct nlmsghdr *pNLMsg = (struct nlmsghdr*) buff;
40 // Make sure we've got an entire nlmsghdr in the buffer, and payload, too.
42 pNLMsg = (struct nlmsghdr*) buff;

12345678