Searched refs:NLMSG_ALIGN (Results 1 - 25 of 54) sorted by relevance

123

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/iproute2/include/linux/
H A Dnetlink.h71 #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) ) macro
72 #define NLMSG_LENGTH(len) ((len)+NLMSG_ALIGN(sizeof(struct nlmsghdr)))
73 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len))
75 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
76 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
H A Drtnetlink.h270 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
432 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
470 #define NDA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ndmsg))))
601 NLMSG_ALIGN(sizeof(struct ndtmsg))))
744 #define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
834 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg))))
900 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/dhcp6/
H A Difaddrs.c186 char reqbuf[NLMSG_ALIGN (sizeof (struct nlmsghdr)) +
187 NLMSG_ALIGN (sizeof (struct rtgenmsg))];
476 NLMSG_ALIGN (sizeof (struct ifaddrs[icnt]))
479 NLMSG_ALIGN (sizeof (char *[max_ifindex + 1]))
481 NLMSG_ALIGN (sizeof (uint16_t[max_ifindex + 1])));
497 data += NLMSG_ALIGN (sizeof (struct ifaddrs)) * icnt;
503 NLMSG_ALIGN (sizeof (char *[max_ifindex + 1]));
574 NLMSG_PAYLOAD (nlh, nlmlen) - NLMSG_ALIGN (nlm_struct_size);
577 NLMSG_ALIGN (nlm_struct_size));
602 sockaddr_size = NLMSG_ALIGN (sa_le
[all...]
H A Dnetlink.c68 rtasize = NLMSG_PAYLOAD(nlm, nlm_len) - NLMSG_ALIGN(sizeof(*rtm));
70 NLMSG_ALIGN(sizeof(*rtm)));
147 rtasize = NLMSG_PAYLOAD(nlm, nlm_len) - NLMSG_ALIGN(sizeof(*ifim));
149 NLMSG_ALIGN(sizeof(*ifim))); RTA_OK(rta, rtasize);
216 char buf[NLMSG_ALIGN (sizeof (struct nlmsghdr)) +
217 NLMSG_ALIGN (sizeof (struct rtmsg))];
249 char buf[NLMSG_ALIGN (sizeof (struct nlmsghdr)) +
250 NLMSG_ALIGN (sizeof (struct rtgenmsg))];
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/linux/
H A Dgenetlink.h17 #define GENL_HDRLEN NLMSG_ALIGN(sizeof(struct genlmsghdr))
H A Dnetlink.h76 #define NLMSG_ALIGN(len) ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) ) macro
77 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))
78 #define NLMSG_LENGTH(len) ((len)+NLMSG_ALIGN(NLMSG_HDRLEN))
79 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len))
81 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
82 (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
217 nlh = (struct nlmsghdr*)skb_put(skb, NLMSG_ALIGN(size));
223 memset(NLMSG_DATA(nlh) + len, 0, NLMSG_ALIGN(size) - size);
H A Dif_addr.h58 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
H A Dnetfilter_decnet.h57 #define NFDN_RTMSG(r) ((unsigned char *)(r) + NLMSG_ALIGN(sizeof(struct nf_dn_rtmsg)))
H A Dif_link.h87 #define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/iproute2/ip/
H A Dxfrm.h36 #define XFRMS_RTA(x) ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(struct xfrm_usersa_info))))
39 #define XFRMP_RTA(x) ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(struct xfrm_userpolicy_info))))
42 #define XFRMACQ_RTA(x) ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(struct xfrm_user_acquire))))
43 #define XFRMEXP_RTA(x) ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(struct xfrm_user_expire))))
44 #define XFRMPEXP_RTA(x) ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(struct xfrm_user_polexpire))))
H A Drtmon.c46 fwrite((void*)n1, 1, NLMSG_ALIGN(n1->nlmsg_len), fp);
55 fwrite((void*)n, 1, NLMSG_ALIGN(n->nlmsg_len), fp);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/router/busybox-1.x/networking/libiproute/
H A Dlibnetlink.c299 status -= NLMSG_ALIGN(len);
300 h = (struct nlmsghdr*)((char*)h + NLMSG_ALIGN(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 = NLMSG_ALIGN(n->nlmsg_len) + len;
331 if (NLMSG_ALIGN(n->nlmsg_len) + len > maxlen)
333 rta = (struct rtattr*)(((char*)n) + NLMSG_ALIGN(n->nlmsg_len));
337 n->nlmsg_len = NLMSG_ALIGN(n->nlmsg_len) + len;
353 rta->rta_len = NLMSG_ALIGN(rta->rta_len) + len;
369 rta->rta_len = NLMSG_ALIGN(rt
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/iproute2/lib/
H A Dlibnetlink.c336 status -= NLMSG_ALIGN(len);
337 h = (struct nlmsghdr*)((char*)h + NLMSG_ALIGN(len));
408 status -= NLMSG_ALIGN(len);
409 h = (struct nlmsghdr*)((char*)h + NLMSG_ALIGN(len));
460 status = fread(NLMSG_DATA(h), 1, NLMSG_ALIGN(l), rtnl);
481 if (NLMSG_ALIGN(n->nlmsg_len) + len > maxlen) {
489 n->nlmsg_len = NLMSG_ALIGN(n->nlmsg_len) + len;
499 if (NLMSG_ALIGN(n->nlmsg_len) + RTA_ALIGN(len) > maxlen) {
507 n->nlmsg_len = NLMSG_ALIGN(n->nlmsg_len) + RTA_ALIGN(len);
513 if (NLMSG_ALIGN(
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/iproute2/include/
H A Dlibnetlink.h54 ((struct rtattr *) (((void *) (nmsg)) + NLMSG_ALIGN((nmsg)->nlmsg_len)))
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/scsi/
H A Dscsi_netlink.c61 rlen = NLMSG_ALIGN(nlh->nlmsg_len);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/iproute2/tc/
H A Df_basic.c58 tail = (struct rtattr*)(((void*)n)+NLMSG_ALIGN(n->nlmsg_len));
H A Dm_action.c532 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/include/net/
H A Dgenetlink.h216 return NLMSG_ALIGN(genlmsg_msg_size(payload));
H A Dnetlink.h270 return NLMSG_ALIGN(nlmsg_msg_size(payload));
309 return (struct nlattr *) (data + NLMSG_ALIGN(hdrlen));
319 return nlmsg_len(nlh) - NLMSG_ALIGN(hdrlen);
344 int totlen = NLMSG_ALIGN(nlh->nlmsg_len);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/avahi-0.6.25/avahi-autoipd/
H A Diface-linux.c45 #define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
50 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/avahi-0.6.25/avahi-core/
H A Diface-linux.c39 #define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
44 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/linux/netfilter/
H A Dnfnetlink.h85 + NLMSG_ALIGN(sizeof(struct nfgenmsg))))
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/bridge/
H A Dbr_netlink.c19 return NLMSG_ALIGN(sizeof(struct ifinfomsg))
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/net/decnet/netfilter/
H A Ddn_rtmsg.c42 size += NLMSG_ALIGN(sizeof(struct nf_dn_rtmsg));
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/zebra/zebra/
H A Drt_netlink.c976 if (NLMSG_ALIGN(n->nlmsg_len) + len > maxlen)
979 rta = (struct rtattr*) (((char*)n) + NLMSG_ALIGN (n->nlmsg_len));
983 n->nlmsg_len = NLMSG_ALIGN (n->nlmsg_len) + len;
1003 rta->rta_len = NLMSG_ALIGN (rta->rta_len) + len;
1018 if (NLMSG_ALIGN (n->nlmsg_len) + len > maxlen)
1021 rta = (struct rtattr*) (((char*)n) + NLMSG_ALIGN (n->nlmsg_len));
1025 n->nlmsg_len = NLMSG_ALIGN (n->nlmsg_len) + len;

Completed in 139 milliseconds

123