Home
last modified time | relevance | path

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

12345

/external/libnl-headers/netlink/
Dmsg.h53 extern void * nlmsg_data(const struct nlmsghdr *);
54 extern int nlmsg_datalen(const struct nlmsghdr *);
55 extern int nlmsg_len(const struct nlmsghdr *);
56 extern void * nlmsg_tail(const struct nlmsghdr *);
59 extern struct nlattr * nlmsg_attrdata(const struct nlmsghdr *, int);
60 extern int nlmsg_attrlen(const struct nlmsghdr *, int);
63 extern int nlmsg_valid_hdr(const struct nlmsghdr *, int);
64 extern int nlmsg_ok(const struct nlmsghdr *, int);
65 extern struct nlmsghdr * nlmsg_next(struct nlmsghdr *, int *);
66 extern int nlmsg_parse(struct nlmsghdr *, int, struct nlattr **,
[all …]
/external/iproute2/include/
Dlibnetlink.h30 struct nlmsghdr *n, void *);
42 extern int rtnl_talk(struct rtnl_handle *rtnl, struct nlmsghdr *n, pid_t peer,
43 unsigned groups, struct nlmsghdr *answer);
47 extern int addattr(struct nlmsghdr *n, int maxlen, int type);
48 extern int addattr8(struct nlmsghdr *n, int maxlen, int type, __u8 data);
49 extern int addattr16(struct nlmsghdr *n, int maxlen, int type, __u16 data);
50 extern int addattr32(struct nlmsghdr *n, int maxlen, int type, __u32 data);
51 extern int addattr64(struct nlmsghdr *n, int maxlen, int type, __u64 data);
52 extern int addattrstrz(struct nlmsghdr *n, int maxlen, int type, const char *data);
54 extern int addattr_l(struct nlmsghdr *n, int maxlen, int type, const void *data, int alen);
[all …]
/external/iproute2/ip/
Dip_common.h3 struct nlmsghdr *n,
6 struct nlmsghdr *n,
9 struct nlmsghdr *n, void *arg);
11 struct nlmsghdr *n, void *arg);
13 struct nlmsghdr *n, void *arg);
23 struct nlmsghdr *n, void *arg);
25 struct nlmsghdr *n, void *arg);
27 struct nlmsghdr *n, void *arg);
62 struct nlmsghdr *);
Dxfrm_monitor.c46 struct nlmsghdr *n, void *arg) in xfrm_acquire_print()
107 struct nlmsghdr *n, void *arg) in xfrm_state_flush_print()
137 struct nlmsghdr *n, void *arg) in xfrm_policy_flush_print()
175 struct nlmsghdr *n, void *arg) in xfrm_report_print()
240 struct nlmsghdr *n, void *arg) in xfrm_ae_print()
271 struct nlmsghdr *n, void *arg) in xfrm_mapping_print()
293 struct nlmsghdr *n, void *arg) in xfrm_accept_msg()
Dipl2tp.c96 struct nlmsghdr n; in create_tunnel()
129 struct nlmsghdr n; in delete_tunnel()
152 struct nlmsghdr n; in create_session()
194 struct nlmsghdr n; in delete_session()
267 static int get_response(struct nlmsghdr *n, void *arg) in get_response()
358 static int session_nlmsg(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg) in session_nlmsg()
371 struct nlmsghdr n; in get_session()
401 static int tunnel_nlmsg(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg) in tunnel_nlmsg()
414 struct nlmsghdr n; in get_tunnel()
719 static int genl_parse_getfamily(struct nlmsghdr *nlh) in genl_parse_getfamily()
[all …]
Dxfrm_state.c240 struct nlmsghdr n; in xfrm_state_modify()
563 struct nlmsghdr n; in xfrm_state_allocspi()
572 struct nlmsghdr *res_n = (struct nlmsghdr *)res_buf; in xfrm_state_allocspi()
729 int xfrm_state_print(const struct sockaddr_nl *who, struct nlmsghdr *n, in xfrm_state_print()
820 struct nlmsghdr n; in xfrm_state_get_or_delete()
882 struct nlmsghdr *res_n = (struct nlmsghdr *)buf; in xfrm_state_get_or_delete()
905 struct nlmsghdr *n, in xfrm_state_keep()
912 struct nlmsghdr *new_n; in xfrm_state_keep()
935 new_n = (struct nlmsghdr *)(xb->buf + xb->offset); in xfrm_state_keep()
1060 int print_sadinfo(struct nlmsghdr *n, void *arg) in print_sadinfo()
[all …]
/external/kernel-headers/original/linux/
Dnetlink.h39 struct nlmsghdr { struct
77 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))
82 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
83 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \
84 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
97 struct nlmsghdr msg;
156 static inline struct nlmsghdr *nlmsg_hdr(const struct sk_buff *skb) in nlmsg_hdr()
158 return (struct nlmsghdr *)skb->data; in nlmsg_hdr()
184 extern void netlink_ack(struct sk_buff *in_skb, struct nlmsghdr *nlh, int err);
221 const struct nlmsghdr *nlh;
[all …]
/external/iproute2/lib/
Dlibnetlink.c95 struct nlmsghdr nlh; in rtnl_wilddump_request()
124 struct nlmsghdr *h; in rtnl_send_check()
140 for (h = (struct nlmsghdr *)resp; NLMSG_OK(h, status); in rtnl_send_check()
157 struct nlmsghdr nlh; in rtnl_dump_request()
216 struct nlmsghdr *h = (struct nlmsghdr*)buf; in rtnl_dump_filter_l()
277 int rtnl_talk(struct rtnl_handle *rtnl, struct nlmsghdr *n, pid_t peer, in rtnl_talk()
278 unsigned groups, struct nlmsghdr *answer) in rtnl_talk()
282 struct nlmsghdr *h; in rtnl_talk()
336 for (h = (struct nlmsghdr*)buf; status >= sizeof(*h); ) { in rtnl_talk()
354 h = (struct nlmsghdr*)((char*)h + NLMSG_ALIGN(len)); in rtnl_talk()
[all …]
/external/wpa_supplicant_8/src/drivers/
Dpriv_netlink.h50 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))
51 #define NLMSG_LENGTH(len) ((len) + NLMSG_ALIGN(sizeof(struct nlmsghdr)))
55 (struct nlmsghdr *) \
57 #define NLMSG_OK(nlh,len) ((len) >= (int) sizeof(struct nlmsghdr) && \
58 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
82 struct nlmsghdr struct
Dnetlink.c26 struct nlmsghdr *h) in netlink_receive_link()
43 struct nlmsghdr *h; in netlink_receive()
57 h = (struct nlmsghdr *) buf; in netlink_receive()
144 struct nlmsghdr hdr; in netlink_send_oper_ifla()
/external/iproute2/include/linux/
Dnetlink.h41 struct nlmsghdr { struct
80 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))
85 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
86 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \
87 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
100 struct nlmsghdr msg;
/external/iproute2/tc/
Dtc_util.h30 int (*parse_qopt)(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n);
34 int (*parse_copt)(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n);
44 char **argv, struct nlmsghdr *n);
53 int code, struct nlmsghdr *n);
91 extern int parse_police(int *, char ***, int, struct nlmsghdr *);
95 extern int act_parse_police(struct action_util *a,int *, char ***, int, struct nlmsghdr *);
102 extern int parse_action(int *, char ***, int, struct nlmsghdr *);
Dtc_common.h10 extern int print_action(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg);
11 extern int print_filter(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg);
12 extern int print_qdisc(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg);
13 extern int print_class(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg);
Dm_action.c78 …int parse_noaopt(struct action_util *au, int *argc_p, char ***argv_p, int code, struct nlmsghdr *n) in parse_noaopt()
168 parse_action(int *argc_p, char ***argv_p, int tca_id, struct nlmsghdr *n) in parse_action()
332 struct nlmsghdr *n, in print_action()
383 struct nlmsghdr *ans = NULL; in tc_action_gd()
386 struct nlmsghdr n; in tc_action_gd()
491 struct nlmsghdr n; in tc_action_modify()
530 struct nlmsghdr n; in tc_act_list_or_flush()
567 msg_size = NLMSG_ALIGN(req.n.nlmsg_len) - NLMSG_ALIGN(sizeof(struct nlmsghdr)); in tc_act_list_or_flush()
Dq_qfq.c39 struct nlmsghdr *n) in qfq_parse_opt()
57 struct nlmsghdr *n) in qfq_parse_class_opt()
Dq_drr.c37 static int drr_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n) in drr_parse_opt()
53 struct nlmsghdr *n) in drr_parse_class_opt()
/external/dnsmasq/src/
Dnetlink.c36 static void nl_err(struct nlmsghdr *h);
37 static void nl_routechange(struct nlmsghdr *h);
128 struct nlmsghdr *h; in iface_enumerate()
134 struct nlmsghdr nlh; in iface_enumerate()
170 for (h = (struct nlmsghdr *)iov.iov_base; NLMSG_OK(h, (size_t)len); h = NLMSG_NEXT(h, len)) in iface_enumerate()
239 struct nlmsghdr *h; in netlink_multicast()
249 for (h = (struct nlmsghdr *)iov.iov_base; NLMSG_OK(h, (size_t)len); h = NLMSG_NEXT(h, len)) in netlink_multicast()
260 static void nl_err(struct nlmsghdr *h) in nl_err()
273 static void nl_routechange(struct nlmsghdr *h) in nl_routechange()
/external/iputils/ninfod/
Dni_ifaddrs.c96 struct nlmsghdr *nlh;
115 char reqbuf[NLMSG_ALIGN(sizeof(struct nlmsghdr)) + NLMSG_ALIGN(sizeof(struct rtgenmsg))]; in nl_sendreq()
117 struct nlmsghdr *req_hdr; in nl_sendreq()
124 req_hdr = (struct nlmsghdr *) reqbuf; in nl_sendreq()
163 static int nl_getmsg(int sd, int request, int seq, struct nlmsghdr **nlhp, int *done) in nl_getmsg()
165 struct nlmsghdr *nh; in nl_getmsg()
187 nh = (struct nlmsghdr *) buff; in nl_getmsg()
188 …for (nh = (struct nlmsghdr *) buff; NLMSG_OK(nh, read_size); nh = (struct nlmsghdr *) NLMSG_NEXT(n… in nl_getmsg()
214 *nlhp = (struct nlmsghdr *) buff; in nl_getmsg()
220 struct nlmsghdr *nlh = NULL; in nl_getlist()
[all …]
/external/libnl-headers/netlink/genl/
Dgenl.h31 extern int genlmsg_valid_hdr(struct nlmsghdr *, int);
32 extern int genlmsg_validate(struct nlmsghdr *, int, int,
34 extern int genlmsg_parse(struct nlmsghdr *, int, struct nlattr **,
/external/chromium/net/base/
Dnetwork_change_notifier_netlink_linux.cc29 bool IsIPv6Update(const struct nlmsghdr* netlink_message_header) { in IsIPv6Update()
36 const struct nlmsghdr* netlink_message_header) { in IsDuplicateIPv6AddressUpdate()
93 const struct nlmsghdr* netlink_message_header = in HandleNetlinkMessage()
94 reinterpret_cast<struct nlmsghdr*>(buf); in HandleNetlinkMessage()
/external/iptables/libipq/
Dlibipq.c129 struct nlmsghdr *nlh; in ipq_netlink_recvfrom()
185 nlh = (struct nlmsghdr *)buf; in ipq_netlink_recvfrom()
273 struct nlmsghdr nlh; in ipq_set_mode()
299 return ((struct nlmsghdr*)buf)->nlmsg_type; in ipq_message_type()
304 struct nlmsghdr *h = (struct nlmsghdr *)buf; in ipq_get_msgerr()
311 return NLMSG_DATA((struct nlmsghdr *)(buf)); in ipq_get_packet()
322 struct nlmsghdr nlh; in ipq_set_verdict()
/external/dhcpcd/
Dif-linux.c150 int (*callback)(struct nlmsghdr *)) in get_netlink() argument
154 struct nlmsghdr *nlm; in get_netlink()
193 for (nlm = (struct nlmsghdr *)buf; in get_netlink()
209 err_netlink(struct nlmsghdr *nlm) in err_netlink()
229 link_route(struct nlmsghdr *nlm) in link_route()
290 link_addr(struct nlmsghdr *nlm) in link_addr()
340 link_netlink(struct nlmsghdr *nlm) in link_netlink()
408 send_netlink(struct nlmsghdr *hdr) in send_netlink()
438 add_attr_l(struct nlmsghdr *n, unsigned int maxlen, int type, in add_attr_l()
459 add_attr_32(struct nlmsghdr *n, unsigned int maxlen, int type, uint32_t data) in add_attr_32()
[all …]
/external/libselinux/src/
Davc_internal.c106 struct nlmsghdr *nlh = (struct nlmsghdr *)buf; in avc_netlink_receive()
162 struct nlmsghdr *nlh = (struct nlmsghdr *)buf; in avc_netlink_process()
/external/iproute2/genl/
Dctrl.c45 struct nlmsghdr *nlh; in genl_ctrl_resolve_family()
49 struct nlmsghdr n; in genl_ctrl_resolve_family()
180 static int print_ctrl(const struct sockaddr_nl *who, struct nlmsghdr *n, in print_ctrl()
287 struct nlmsghdr *nlh; in ctrl_list()
292 struct nlmsghdr n; in ctrl_list()
/external/chromium_org/net/base/
Daddress_tracker_linux.cc21 bool GetAddress(const struct nlmsghdr* header, IPAddressNumber* out) { in GetAddress()
115 struct nlmsghdr header; in Init()
233 for (const struct nlmsghdr* header = in HandleMessage()
234 reinterpret_cast<const struct nlmsghdr*>(buffer); in HandleMessage()

12345