/asus-wl-520gu-7.0.1.45/src/router/iproute2/reference/linux/ |
H A D | netlink.h | 28 __u32 nlmsg_len; /* Length of message including header */ member in struct:nlmsghdr 68 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ 69 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 70 #define NLMSG_OK(nlh,len) ((len) > 0 && (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \ 71 (nlh)->nlmsg_len <= (len)) 72 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len))) 143 nlh->nlmsg_len = size;
|
/asus-wl-520gu-7.0.1.45/src/linux/linux/include/linux/ |
H A D | netlink.h | 28 __u32 nlmsg_len; /* Length of message including header */ member in struct:nlmsghdr 68 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ 69 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 70 #define NLMSG_OK(nlh,len) ((len) > 0 && (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \ 71 (nlh)->nlmsg_len <= (len)) 72 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len))) 143 nlh->nlmsg_len = size;
|
/asus-wl-520gu-7.0.1.45/src/router/iproute2/lib/ |
H A D | libnetlink.c | 81 req.nlh.nlmsg_len = sizeof(req); 116 nlh.nlmsg_len = NLMSG_LENGTH(len); 181 if (h->nlmsg_len < NLMSG_LENGTH(sizeof(struct nlmsgerr))) { 216 struct iovec iov = { (void*)n, n->nlmsg_len }; 248 printf("b4xxx_len:%d\n", xxx->nlmsg_len); 255 printf("xxx_len:%d\n", xxx->nlmsg_len); 275 int len = h->nlmsg_len; 298 printf("xh.nlmsg_len:%d\n", h->nlmsg_len); 305 printf("h.nlmsg_len [all...] |
H A D | ll_map.c | 48 if (n->nlmsg_len < NLMSG_LENGTH(sizeof(ifi)))
|
/asus-wl-520gu-7.0.1.45/src/router/iproute2/tc/ |
H A D | q_dsmark.c | 74 tail = (struct rtattr *) (((void *) n)+NLMSG_ALIGN(n->nlmsg_len)); 83 tail->rta_len = (((void *) n)+n->nlmsg_len)-(void *) tail; 101 tail = (struct rtattr *) (((void *) n)+NLMSG_ALIGN(n->nlmsg_len)); 129 tail->rta_len = (((void *) n)+n->nlmsg_len)-(void *) tail;
|
H A D | f_fw.c | 53 tail = (struct rtattr*)(((void*)n)+NLMSG_ALIGN(n->nlmsg_len)); 83 tail->rta_len = (((void*)n)+n->nlmsg_len) - (void*)tail;
|
H A D | f_route.c | 57 tail = (struct rtattr*)(((void*)n)+NLMSG_ALIGN(n->nlmsg_len)); 128 tail->rta_len = (((void*)n)+n->nlmsg_len) - (void*)tail;
|
H A D | f_tcindex.c | 46 tail = (struct rtattr*)(((void*)n)+NLMSG_ALIGN(n->nlmsg_len)); 120 tail->rta_len = (((void*)n)+n->nlmsg_len) - (void*)tail;
|
H A D | q_red.c | 152 tail = (struct rtattr*)(((void*)n)+NLMSG_ALIGN(n->nlmsg_len)); 157 tail->rta_len = (((void*)n)+NLMSG_ALIGN(n->nlmsg_len)) - (void*)tail;
|
H A D | q_gred.c | 109 tail = (struct rtattr*)(((void*)n)+NLMSG_ALIGN(n->nlmsg_len)); 113 tail->rta_len = (((void*)n)+NLMSG_ALIGN(n->nlmsg_len)) - (void*)tail; 255 tail = (struct rtattr*)(((void*)n)+NLMSG_ALIGN(n->nlmsg_len)); 260 tail->rta_len = (((void*)n)+NLMSG_ALIGN(n->nlmsg_len)) - (void*)tail;
|
H A D | q_htb.c | 92 tail = (struct rtattr*)(((void*)n)+NLMSG_ALIGN(n->nlmsg_len)); 95 tail->rta_len = (((void*)n)+NLMSG_ALIGN(n->nlmsg_len)) - (void*)tail; 207 tail = (struct rtattr*)(((void*)n)+NLMSG_ALIGN(n->nlmsg_len)); 212 tail->rta_len = (((void*)n)+NLMSG_ALIGN(n->nlmsg_len)) - (void*)tail;
|
H A D | tc_qdisc.c | 63 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcmsg)); 68 printf("req.n.nlmsg_len:%d\n", req.n.nlmsg_len); 217 int len = n->nlmsg_len;
|
H A D | m_police.c | 263 tail = (struct rtattr*)(((void*)n)+NLMSG_ALIGN(n->nlmsg_len)); 277 tail->rta_len = (((void*)n)+NLMSG_ALIGN(n->nlmsg_len)) - (void*)tail;
|
H A D | q_atm.c | 182 tail = (struct rtattr *) (((void *) n)+NLMSG_ALIGN(n->nlmsg_len)); 187 tail->rta_len = (((void *) n)+NLMSG_ALIGN(n->nlmsg_len))-(void *) tail;
|
H A D | q_tbf.c | 190 tail = (struct rtattr*)(((void*)n)+NLMSG_ALIGN(n->nlmsg_len)); 196 tail->rta_len = (((void*)n)+NLMSG_ALIGN(n->nlmsg_len)) - (void*)tail;
|
H A D | q_cbq.c | 154 tail = (struct rtattr*)(((void*)n)+NLMSG_ALIGN(n->nlmsg_len)); 165 tail->rta_len = (((void*)n)+NLMSG_ALIGN(n->nlmsg_len)) - (void*)tail; 388 tail = (struct rtattr*)(((void*)n)+NLMSG_ALIGN(n->nlmsg_len)); 408 tail->rta_len = (((void*)n)+NLMSG_ALIGN(n->nlmsg_len)) - (void*)tail;
|
H A D | tc_class.c | 61 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcmsg)); 186 int len = n->nlmsg_len;
|
/asus-wl-520gu-7.0.1.45/src/linux/linux/net/core/ |
H A D | rtnetlink.c | 195 nlh->nlmsg_len = skb->tail - b; 302 if (nlh->nlmsg_len < NLMSG_LENGTH(sizeof(struct rtgenmsg))) 338 rlen = NLMSG_ALIGN(nlh->nlmsg_len); 356 if (nlh->nlmsg_len < min_len) 359 if (nlh->nlmsg_len > min_len) { 360 int attrlen = nlh->nlmsg_len - NLMSG_ALIGN(min_len); 406 if (nlh->nlmsg_len < sizeof(*nlh) || skb->len < nlh->nlmsg_len) 408 rlen = NLMSG_ALIGN(nlh->nlmsg_len);
|
/asus-wl-520gu-7.0.1.45/src/router/iproute2/ip/ |
H A D | rtmon.c | 42 n1->nlmsg_len = NLMSG_LENGTH(4*2); 46 fwrite((void*)n1, 1, NLMSG_ALIGN(n1->nlmsg_len), fp); 54 fwrite((void*)n, 1, NLMSG_ALIGN(n->nlmsg_len), fp);
|
H A D | ipneigh.c | 143 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct ndmsg)); 224 int len = n->nlmsg_len; 230 n->nlmsg_len, n->nlmsg_type, n->nlmsg_flags); 253 parse_rtattr(tb, NDA_MAX, NDA_RTA(r), n->nlmsg_len - NLMSG_LENGTH(sizeof(*r))); 273 if (NLMSG_ALIGN(filter.flushp) + n->nlmsg_len > filter.flushe) { 278 memcpy(fn, n, n->nlmsg_len); 282 filter.flushp = (((char*)fn) + n->nlmsg_len) - filter.flushb;
|
H A D | ipaddress.c | 133 int len = n->nlmsg_len; 281 int len = n->nlmsg_len; 298 parse_rtattr(rta_tb, IFA_MAX, IFA_RTA(ifa), n->nlmsg_len - NLMSG_LENGTH(sizeof(*ifa))); 334 if (NLMSG_ALIGN(filter.flushp) + n->nlmsg_len > filter.flushe) { 339 memcpy(fn, n, n->nlmsg_len); 343 filter.flushp = (((char*)fn) + n->nlmsg_len) - filter.flushb; 454 if (n->nlmsg_len < NLMSG_LENGTH(sizeof(ifa))) 473 h = malloc(n->nlmsg_len+sizeof(void*)); 477 memcpy(&h->h, n, n->nlmsg_len); 751 req.n.nlmsg_len [all...] |
H A D | ipmonitor.c | 76 n->nlmsg_len, n->nlmsg_type, n->nlmsg_flags);
|
H A D | iprule.c | 49 int len = n->nlmsg_len; 205 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg));
|
/asus-wl-520gu-7.0.1.45/src/router/iptables/libipq/ |
H A D | libipq.c | 179 if (nlh->nlmsg_flags & MSG_TRUNC || nlh->nlmsg_len > status) { 271 req.nlh.nlmsg_len = NLMSG_LENGTH(sizeof(req)); 277 return ipq_netlink_sendto(h, (void *)&req, req.nlh.nlmsg_len); 347 nlh.nlmsg_len = tlen;
|
/asus-wl-520gu-7.0.1.45/src/linux/linux/net/ipv4/ |
H A D | tcp_diag.c | 94 nlh->nlmsg_len = skb->tail - b; 189 nlh->nlmsg_len = skb->tail - b; 435 if (cb->nlh->nlmsg_len > 4+NLMSG_SPACE(sizeof(struct tcpdiagreq))) 560 if (nlh->nlmsg_len > 4 + NLMSG_SPACE(sizeof(struct tcpdiagreq))) { 564 rta->rta_len > nlh->nlmsg_len - NLMSG_SPACE(sizeof(struct tcpdiagreq))) 588 if (nlh->nlmsg_len < sizeof(*nlh) || skb->len < nlh->nlmsg_len)
|