Searched refs:nlh (Results 1 - 25 of 219) sorted by relevance

123456789

/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/iproute2/include/linux/
H A Dnetlink.h77 #define NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0)))
78 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
79 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
80 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \
81 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
82 (nlh)->nlmsg_len <= (len))
83 #define NLMSG_PAYLOAD(nlh,le
[all...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/iproute2-3.x/include/linux/
H A Dnetlink.h79 #define NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0)))
80 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
81 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
82 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \
83 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
84 (nlh)->nlmsg_len <= (len))
85 #define NLMSG_PAYLOAD(nlh,le
[all...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/wpa_supplicant-0.7.3/src/drivers/
H A Dpriv_netlink.h59 #define NLMSG_DATA(nlh) ((void*) (((char*) nlh) + NLMSG_LENGTH(0)))
60 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
62 (((char *)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
63 #define NLMSG_OK(nlh,len) ((len) >= (int) sizeof(struct nlmsghdr) && \
64 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
65 (int) (nlh)->nlmsg_len <= (len))
66 #define NLMSG_PAYLOAD(nlh,le
[all...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/wpa_supplicant-0.7.3/src/drivers/
H A Dpriv_netlink.h59 #define NLMSG_DATA(nlh) ((void*) (((char*) nlh) + NLMSG_LENGTH(0)))
60 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
62 (((char *)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
63 #define NLMSG_OK(nlh,len) ((len) >= (int) sizeof(struct nlmsghdr) && \
64 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
65 (int) (nlh)->nlmsg_len <= (len))
66 #define NLMSG_PAYLOAD(nlh,le
[all...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/iproute2/include/linux/
H A Dnetlink.h77 #define NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0)))
78 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
79 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
80 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \
81 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
82 (nlh)->nlmsg_len <= (len))
83 #define NLMSG_PAYLOAD(nlh,le
[all...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/iproute2-3.x/include/linux/
H A Dnetlink.h79 #define NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0)))
80 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
81 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
82 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \
83 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
84 (nlh)->nlmsg_len <= (len))
85 #define NLMSG_PAYLOAD(nlh,le
[all...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/toolchains/hndtools-arm-linux-2.6.36-uclibc-4.5.3/usr/include/linux/
H A Dnetlink.h78 #define NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0)))
79 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
80 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
81 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \
82 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
83 (nlh)->nlmsg_len <= (len))
84 #define NLMSG_PAYLOAD(nlh,le
[all...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/toolchains/hndtools-arm-linux-2.6.36-uclibc-4.5.3/arm-brcm-linux-uclibcgnueabi/sysroot/usr/include/linux/
H A Dnetlink.h78 #define NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0)))
79 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
80 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
81 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \
82 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
83 (nlh)->nlmsg_len <= (len))
84 #define NLMSG_PAYLOAD(nlh,le
[all...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/toolchains/hndtools-arm-linux-2.6.36-uclibc-4.5.3/arm-linux/sysroot/usr/include/linux/
H A Dnetlink.h78 #define NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0)))
79 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
80 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
81 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \
82 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
83 (nlh)->nlmsg_len <= (len))
84 #define NLMSG_PAYLOAD(nlh,le
[all...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/iproute2/include/linux/
H A Dnetlink.h77 #define NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0)))
78 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
79 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
80 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \
81 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
82 (nlh)->nlmsg_len <= (len))
83 #define NLMSG_PAYLOAD(nlh,le
[all...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/iproute2-3.x/include/linux/
H A Dnetlink.h79 #define NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0)))
80 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
81 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
82 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \
83 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
84 (nlh)->nlmsg_len <= (len))
85 #define NLMSG_PAYLOAD(nlh,le
[all...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/wpa_supplicant-0.7.3/src/drivers/
H A Dpriv_netlink.h59 #define NLMSG_DATA(nlh) ((void*) (((char*) nlh) + NLMSG_LENGTH(0)))
60 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
62 (((char *)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
63 #define NLMSG_OK(nlh,len) ((len) >= (int) sizeof(struct nlmsghdr) && \
64 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
65 (int) (nlh)->nlmsg_len <= (len))
66 #define NLMSG_PAYLOAD(nlh,le
[all...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/include/linux/
H A Dnetlink.h78 #define NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0)))
79 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
80 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
81 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \
82 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
83 (nlh)->nlmsg_len <= (len))
84 #define NLMSG_PAYLOAD(nlh,le
223 const struct nlmsghdr *nlh; member in struct:netlink_callback
240 struct nlmsghdr *nlh; local
[all...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/include/linux/
H A Dnetlink.h78 #define NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0)))
79 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
80 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
81 #define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \
82 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
83 (nlh)->nlmsg_len <= (len))
84 #define NLMSG_PAYLOAD(nlh,le
223 const struct nlmsghdr *nlh; member in struct:netlink_callback
240 struct nlmsghdr *nlh; local
[all...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/security/selinux/
H A Dnetlink.c43 static void selnl_add_payload(struct nlmsghdr *nlh, int len, int msgtype, void *data) argument
47 struct selnl_msg_setenforce *msg = NLMSG_DATA(nlh);
55 struct selnl_msg_policyload *msg = NLMSG_DATA(nlh);
72 struct nlmsghdr *nlh; local
81 nlh = NLMSG_PUT(skb, 0, 0, msgtype, len);
82 selnl_add_payload(nlh, len, msgtype, data);
83 nlh->nlmsg_len = skb->tail - tmp;
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/security/selinux/
H A Dnetlink.c43 static void selnl_add_payload(struct nlmsghdr *nlh, int len, int msgtype, void *data) argument
47 struct selnl_msg_setenforce *msg = NLMSG_DATA(nlh);
55 struct selnl_msg_policyload *msg = NLMSG_DATA(nlh);
72 struct nlmsghdr *nlh; local
81 nlh = NLMSG_PUT(skb, 0, 0, msgtype, len);
82 selnl_add_payload(nlh, len, msgtype, data);
83 nlh->nlmsg_len = skb->tail - tmp;
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/dnsmasq/src/
H A Dipset.c78 static inline void add_attr(struct nlmsghdr *nlh, uint16_t type, size_t len, const void *data) argument
80 struct my_nlattr *attr = (void *)nlh + NL_ALIGN(nlh->nlmsg_len);
85 nlh->nlmsg_len += NL_ALIGN(payload_len);
119 struct nlmsghdr *nlh; local
138 nlh = (struct nlmsghdr *)buffer;
139 nlh->nlmsg_len = NL_ALIGN(sizeof(struct nlmsghdr));
140 nlh->nlmsg_type = (remove ? IPSET_CMD_DEL : IPSET_CMD_ADD) | (NFNL_SUBSYS_IPSET << 8);
141 nlh->nlmsg_flags = NLM_F_REQUEST;
143 nfg = (struct my_nfgenmsg *)(buffer + nlh
[all...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/dnsmasq/src/
H A Dipset.c78 static inline void add_attr(struct nlmsghdr *nlh, uint16_t type, size_t len, const void *data) argument
80 struct my_nlattr *attr = (void *)nlh + NL_ALIGN(nlh->nlmsg_len);
85 nlh->nlmsg_len += NL_ALIGN(payload_len);
119 struct nlmsghdr *nlh; local
138 nlh = (struct nlmsghdr *)buffer;
139 nlh->nlmsg_len = NL_ALIGN(sizeof(struct nlmsghdr));
140 nlh->nlmsg_type = (remove ? IPSET_CMD_DEL : IPSET_CMD_ADD) | (NFNL_SUBSYS_IPSET << 8);
141 nlh->nlmsg_flags = NLM_F_REQUEST;
143 nfg = (struct my_nfgenmsg *)(buffer + nlh
[all...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/dnsmasq/src/
H A Dipset.c78 static inline void add_attr(struct nlmsghdr *nlh, uint16_t type, size_t len, const void *data) argument
80 struct my_nlattr *attr = (void *)nlh + NL_ALIGN(nlh->nlmsg_len);
85 nlh->nlmsg_len += NL_ALIGN(payload_len);
119 struct nlmsghdr *nlh; local
138 nlh = (struct nlmsghdr *)buffer;
139 nlh->nlmsg_len = NL_ALIGN(sizeof(struct nlmsghdr));
140 nlh->nlmsg_type = (remove ? IPSET_CMD_DEL : IPSET_CMD_ADD) | (NFNL_SUBSYS_IPSET << 8);
141 nlh->nlmsg_flags = NLM_F_REQUEST;
143 nfg = (struct my_nfgenmsg *)(buffer + nlh
[all...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/include/net/
H A Dnetlink.h20 * nlmsg_data(nlh)---^ ^
21 * nlmsg_next(nlh)-----------------------+
24 * <---------------------- nlmsg_len(nlh) --------------------->
25 * <------ hdrlen ------> <- nlmsg_attrlen(nlh, hdrlen) ->
29 * nlmsg_attrdata(nlh, hdrlen)---^
55 * nlmsg_data(nlh) head of message payload
56 * nlmsg_len(nlh) length of message payload
57 * nlmsg_attrdata(nlh, hdrlen) head of attributes data
58 * nlmsg_attrlen(nlh, hdrlen) length of attributes data
61 * nlmsg_ok(nlh, remainin
216 struct nlmsghdr *nlh; member in struct:nl_info
293 nlmsg_data(const struct nlmsghdr *nlh) argument
302 nlmsg_len(const struct nlmsghdr *nlh) argument
312 nlmsg_attrdata(const struct nlmsghdr *nlh, int hdrlen) argument
324 nlmsg_attrlen(const struct nlmsghdr *nlh, int hdrlen) argument
334 nlmsg_ok(const struct nlmsghdr *nlh, int remaining) argument
349 nlmsg_next(struct nlmsghdr *nlh, int *remaining) argument
368 nlmsg_parse(const struct nlmsghdr *nlh, int hdrlen, struct nlattr *tb[], int maxtype, const struct nla_policy *policy) argument
387 nlmsg_find_attr(struct nlmsghdr *nlh, int hdrlen, int attrtype) argument
401 nlmsg_validate(struct nlmsghdr *nlh, int hdrlen, int maxtype, const struct nla_policy *policy) argument
417 nlmsg_report(const struct nlmsghdr *nlh) argument
499 nlmsg_end(struct sk_buff *skb, struct nlmsghdr *nlh) argument
538 nlmsg_cancel(struct sk_buff *skb, struct nlmsghdr *nlh) argument
[all...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/include/net/
H A Dnetlink.h20 * nlmsg_data(nlh)---^ ^
21 * nlmsg_next(nlh)-----------------------+
24 * <---------------------- nlmsg_len(nlh) --------------------->
25 * <------ hdrlen ------> <- nlmsg_attrlen(nlh, hdrlen) ->
29 * nlmsg_attrdata(nlh, hdrlen)---^
55 * nlmsg_data(nlh) head of message payload
56 * nlmsg_len(nlh) length of message payload
57 * nlmsg_attrdata(nlh, hdrlen) head of attributes data
58 * nlmsg_attrlen(nlh, hdrlen) length of attributes data
61 * nlmsg_ok(nlh, remainin
216 struct nlmsghdr *nlh; member in struct:nl_info
293 nlmsg_data(const struct nlmsghdr *nlh) argument
302 nlmsg_len(const struct nlmsghdr *nlh) argument
312 nlmsg_attrdata(const struct nlmsghdr *nlh, int hdrlen) argument
324 nlmsg_attrlen(const struct nlmsghdr *nlh, int hdrlen) argument
334 nlmsg_ok(const struct nlmsghdr *nlh, int remaining) argument
349 nlmsg_next(struct nlmsghdr *nlh, int *remaining) argument
368 nlmsg_parse(const struct nlmsghdr *nlh, int hdrlen, struct nlattr *tb[], int maxtype, const struct nla_policy *policy) argument
387 nlmsg_find_attr(struct nlmsghdr *nlh, int hdrlen, int attrtype) argument
401 nlmsg_validate(struct nlmsghdr *nlh, int hdrlen, int maxtype, const struct nla_policy *policy) argument
417 nlmsg_report(const struct nlmsghdr *nlh) argument
499 nlmsg_end(struct sk_buff *skb, struct nlmsghdr *nlh) argument
538 nlmsg_cancel(struct sk_buff *skb, struct nlmsghdr *nlh) argument
[all...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/iproute2-3.x/genl/
H A Dctrl.c45 struct nlmsghdr *nlh; local
55 nlh = &req.n;
56 nlh->nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN);
57 nlh->nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK;
58 nlh->nlmsg_type = GENL_ID_CTRL;
68 addattr_l(nlh, 128, CTRL_ATTR_FAMILY_NAME, family, strlen(family) + 1);
70 if (rtnl_talk(&rth, nlh, 0, 0, nlh, NULL, NULL) < 0) {
77 struct genlmsghdr *ghdr = NLMSG_DATA(nlh);
78 int len = nlh
287 struct nlmsghdr *nlh; local
[all...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/iproute2-3.x/genl/
H A Dctrl.c45 struct nlmsghdr *nlh; local
55 nlh = &req.n;
56 nlh->nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN);
57 nlh->nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK;
58 nlh->nlmsg_type = GENL_ID_CTRL;
68 addattr_l(nlh, 128, CTRL_ATTR_FAMILY_NAME, family, strlen(family) + 1);
70 if (rtnl_talk(&rth, nlh, 0, 0, nlh, NULL, NULL) < 0) {
77 struct genlmsghdr *ghdr = NLMSG_DATA(nlh);
78 int len = nlh
287 struct nlmsghdr *nlh; local
[all...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/iproute2-3.x/genl/
H A Dctrl.c45 struct nlmsghdr *nlh; local
55 nlh = &req.n;
56 nlh->nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN);
57 nlh->nlmsg_flags = NLM_F_REQUEST | NLM_F_ACK;
58 nlh->nlmsg_type = GENL_ID_CTRL;
68 addattr_l(nlh, 128, CTRL_ATTR_FAMILY_NAME, family, strlen(family) + 1);
70 if (rtnl_talk(&rth, nlh, 0, 0, nlh, NULL, NULL) < 0) {
77 struct genlmsghdr *ghdr = NLMSG_DATA(nlh);
78 int len = nlh
287 struct nlmsghdr *nlh; local
[all...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/net/phonet/
H A Dpn_netlink.c64 static int addr_doit(struct sk_buff *skb, struct nlmsghdr *nlh, void *attr) argument
78 err = nlmsg_parse(nlh, sizeof(*ifm), tb, IFA_MAX, ifa_phonet_policy);
82 ifm = nlmsg_data(nlh);
94 if (nlh->nlmsg_type == RTM_NEWADDR)
99 phonet_address_notify(nlh->nlmsg_type, dev, pnaddr);
107 struct nlmsghdr *nlh; local
109 nlh = nlmsg_put(skb, pid, seq, event, sizeof(*ifm), 0);
110 if (nlh == NULL)
113 ifm = nlmsg_data(nlh);
120 return nlmsg_end(skb, nlh);
170 struct nlmsghdr *nlh; local
222 route_doit(struct sk_buff *skb, struct nlmsghdr *nlh, void *attr) argument
[all...]

Completed in 236 milliseconds

123456789