/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/iproute2/include/linux/ |
H A D | netlink.h | 35 __u32 nlmsg_len; /* Length of message including header */ member in struct:nlmsghdr 75 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ 76 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 78 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \ 79 (nlh)->nlmsg_len <= (len)) 80 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len)))
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/scsi/ |
H A D | scsi_netlink.c | 54 if ((nlh->nlmsg_len < (sizeof(*nlh) + sizeof(*hdr))) || 55 (skb->len < nlh->nlmsg_len)) { 61 rlen = NLMSG_ALIGN(nlh->nlmsg_len); 82 if (nlh->nlmsg_len < (sizeof(*nlh) + hdr->msglen)) {
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/net/ |
H A D | rtnetlink.h | 19 if (nlmsg_len(nlh) >= sizeof(struct rtgenmsg))
|
H A D | netlink.h | 24 * <---------------------- nlmsg_len(nlh) ---------------------> 56 * nlmsg_len(nlh) length of message payload 292 * nlmsg_len - length of message payload 295 static inline int nlmsg_len(const struct nlmsghdr *nlh) function 297 return nlh->nlmsg_len - NLMSG_HDRLEN; 319 return nlmsg_len(nlh) - NLMSG_ALIGN(hdrlen); 330 nlh->nlmsg_len >= sizeof(struct nlmsghdr) && 331 nlh->nlmsg_len <= remaining); 344 int totlen = NLMSG_ALIGN(nlh->nlmsg_len); 365 if (nlh->nlmsg_len < nlmsg_msg_siz [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/busybox-1.x/networking/libiproute/ |
H A D | libnetlink.c | 60 req.nlh.nlmsg_len = sizeof(req); 96 nlh.nlmsg_len = NLMSG_LENGTH(len); 162 if (h->nlmsg_len < NLMSG_LENGTH(sizeof(struct nlmsgerr))) { 206 struct iovec iov = { (void*)n, n->nlmsg_len }; 253 int len = h->nlmsg_len; 284 memcpy(answer, h, h->nlmsg_len); 293 memcpy(answer, h, h->nlmsg_len); 316 if (NLMSG_ALIGN(n->nlmsg_len) + len > maxlen) 318 rta = (struct rtattr*)(((char*)n) + NLMSG_ALIGN(n->nlmsg_len)); 322 n->nlmsg_len [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/iproute2/lib/ |
H A D | libnetlink.c | 100 req.nlh.nlmsg_len = sizeof(req); 139 nlh.nlmsg_len = NLMSG_LENGTH(len); 203 if (h->nlmsg_len < NLMSG_LENGTH(sizeof(struct nlmsgerr))) { 240 .iov_len = n->nlmsg_len 291 int len = h->nlmsg_len; 322 memcpy(answer, h, h->nlmsg_len); 330 memcpy(answer, h, h->nlmsg_len); 392 int len = h->nlmsg_len; 450 len = h->nlmsg_len; 481 if (NLMSG_ALIGN(n->nlmsg_len) [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/linux/ |
H A D | netlink.h | 40 __u32 nlmsg_len; /* Length of message including header */ member in struct:nlmsghdr 81 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ 82 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) 84 (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \ 85 (nlh)->nlmsg_len <= (len)) 86 #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len))) 219 nlh->nlmsg_len = size;
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/iproute2/ip/ |
H A D | ipprefix.c | 40 int len = n->nlmsg_len; 46 n->nlmsg_len, n->nlmsg_type, n->nlmsg_flags);
|
H A D | rtmon.c | 42 n1->nlmsg_len = NLMSG_LENGTH(4*2); 46 fwrite((void*)n1, 1, NLMSG_ALIGN(n1->nlmsg_len), fp); 55 fwrite((void*)n, 1, NLMSG_ALIGN(n->nlmsg_len), fp);
|
H A D | xfrm_monitor.c | 49 int len = n->nlmsg_len; 55 n->nlmsg_len, n->nlmsg_type, n->nlmsg_flags); 142 n->nlmsg_len, n->nlmsg_type, n->nlmsg_flags);
|
H A D | ipneigh.c | 115 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct ndmsg)); 193 int len = n->nlmsg_len; 199 n->nlmsg_len, n->nlmsg_type, n->nlmsg_flags); 221 parse_rtattr(tb, NDA_MAX, NDA_RTA(r), n->nlmsg_len - NLMSG_LENGTH(sizeof(*r))); 241 if (NLMSG_ALIGN(filter.flushp) + n->nlmsg_len > filter.flushe) { 246 memcpy(fn, n, n->nlmsg_len); 250 filter.flushp = (((char*)fn) + n->nlmsg_len) - filter.flushb;
|
H A D | xfrm_policy.c | 183 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(req.xpinfo)); 341 int len = n->nlmsg_len; 349 n->nlmsg_len, n->nlmsg_type, n->nlmsg_flags); 413 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(req.xpid)); 507 int len = n->nlmsg_len; 513 n->nlmsg_len, n->nlmsg_type, n->nlmsg_flags); 532 new_n->nlmsg_len = NLMSG_LENGTH(sizeof(*xpid)); 542 xb->offset += new_n->nlmsg_len; 673 req.n.nlmsg_len = NLMSG_LENGTH(0); /* nlmsg data is nothing */
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/avahi-0.6.25/avahi-autoipd/ |
H A D | iface-linux.c | 227 if (!NLMSG_OK(p, bytes) || bytes < sizeof(struct nlmsghdr) || bytes < p->nlmsg_len) { 264 n->nlmsg_len = NLMSG_LENGTH(sizeof(*ifi)); 274 if (send(fd, n, n->nlmsg_len, 0) < 0) { 283 n->nlmsg_len = NLMSG_LENGTH(sizeof(*ifa)); 290 if (send(fd, n, n->nlmsg_len, 0) < 0) {
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/decnet/netfilter/ |
H A D | dn_rtmsg.c | 52 nlh->nlmsg_len = skb->tail - old_tail; 107 if (nlh->nlmsg_len < sizeof(*nlh) || skb->len < nlh->nlmsg_len)
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/iproute2/tc/ |
H A D | f_basic.c | 58 tail = (struct rtattr*)(((void*)n)+NLMSG_ALIGN(n->nlmsg_len)); 104 tail->rta_len = (((void*)n)+n->nlmsg_len) - (void*)tail;
|
H A D | m_action.c | 302 int len = n->nlmsg_len; 363 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcamsg)); 465 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcamsg)); 504 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct tcamsg)); 532 msg_size = NLMSG_ALIGN(req.n.nlmsg_len) - NLMSG_ALIGN(sizeof(struct nlmsghdr)); 543 req.n.nlmsg_len = NLMSG_ALIGN(req.n.nlmsg_len);
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/tipc/ |
H A D | netlink.c | 62 rep_nlh->nlmsg_len = rep_buf->len;
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/zebra/zebra/ |
H A D | rt_netlink.c | 159 req.nlh.nlmsg_len = sizeof req; 260 if (h->nlmsg_len < NLMSG_LENGTH (sizeof (struct nlmsgerr))) 359 len = h->nlmsg_len - NLMSG_LENGTH (sizeof (struct ifinfomsg)); 438 len = h->nlmsg_len - NLMSG_LENGTH(sizeof (struct ifaddrmsg)); 558 len = h->nlmsg_len - NLMSG_LENGTH(sizeof (struct rtmsg)); 682 len = h->nlmsg_len - NLMSG_LENGTH(sizeof (struct rtmsg)); 801 len = h->nlmsg_len - NLMSG_LENGTH (sizeof (struct ifinfomsg)); 976 if (NLMSG_ALIGN(n->nlmsg_len) + len > maxlen) 979 rta = (struct rtattr*) (((char*)n) + NLMSG_ALIGN (n->nlmsg_len)); 983 n->nlmsg_len [all...] |
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/iproute2/include/ |
H A D | libnetlink.h | 54 ((struct rtattr *) (((void *) (nmsg)) + NLMSG_ALIGN((nmsg)->nlmsg_len)))
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/iptables-1.4.12.1/libipq/ |
H A D | libipq.c | 186 if (nlh->nlmsg_flags & MSG_TRUNC || nlh->nlmsg_len > status) { 277 req.nlh.nlmsg_len = NLMSG_LENGTH(sizeof(req)); 283 return ipq_netlink_sendto(h, (void *)&req, req.nlh.nlmsg_len); 353 nlh.nlmsg_len = tlen;
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/Documentation/accounting/ |
H A D | getdelays.c | 128 msg.n.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN); 139 msg.n.nlmsg_len += NLMSG_ALIGN(na->nla_len); 142 buflen = msg.n.nlmsg_len ; 354 PRINTF("nlmsghdr size=%d, nlmsg_len=%d, rep_len=%d\n", 355 sizeof(struct nlmsghdr), msg.n.nlmsg_len, rep_len);
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/security/selinux/ |
H A D | netlink.c | 82 nlh->nlmsg_len = skb->tail - tmp;
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/dhcp6/ |
H A D | netlink.c | 224 nlm_hdr->nlmsg_len = NLMSG_LENGTH (sizeof (*rt_msg)); 238 status = sendto(sd, (void *)nlm_hdr, nlm_hdr->nlmsg_len, 0, 257 nlm_hdr->nlmsg_len = NLMSG_LENGTH (sizeof (*rt_genmsg)); 268 status = sendto(sd, (void *)nlm_hdr, nlm_hdr->nlmsg_len, 0,
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/iptables-1.x/libipq/ |
H A D | libipq.c | 184 if (nlh->nlmsg_flags & MSG_TRUNC || nlh->nlmsg_len > status) { 276 req.nlh.nlmsg_len = NLMSG_LENGTH(sizeof(req)); 282 return ipq_netlink_sendto(h, (void *)&req, req.nlh.nlmsg_len); 352 nlh.nlmsg_len = tlen;
|
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/netfilter/ |
H A D | nfnetlink.c | 158 if (likely(nlh->nlmsg_len > min_len)) { 160 int attrlen = nlh->nlmsg_len - NLMSG_ALIGN(min_len); 164 /* implicit: if nlmsg_len == min_len, we return 0, and an empty 208 if (nlh->nlmsg_len < NLMSG_SPACE(sizeof(struct nfgenmsg)))
|