Searched refs:NLMSG_ALIGN (Results 1 – 6 of 6) sorted by relevance
49 #define NLMSG_ALIGN(len) (((len) + NLMSG_ALIGNTO - 1) & ~(NLMSG_ALIGNTO - 1)) macro50 #define NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))51 #define NLMSG_LENGTH(len) ((len) + NLMSG_ALIGN(sizeof(struct nlmsghdr)))52 #define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(len))54 #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \56 (((char *)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
31 (u8 *) NLMSG_DATA(h) + NLMSG_ALIGN(sizeof(struct ifinfomsg)), in netlink_receive_link()197 ((char *) &req + NLMSG_ALIGN(req.hdr.nlmsg_len)), in netlink_send_oper_ifla()206 ((char *) &req + NLMSG_ALIGN(req.hdr.nlmsg_len)), in netlink_send_oper_ifla()
278 NLMSG_ALIGN(sizeof(struct rtgenmsg))]; in nl_sendreq()558 NLMSG_ALIGN(sizeof(struct ifaddrs[icnt])) in rk_getifaddrs()664 sockaddr_size = NLMSG_ALIGN(sa_len); in rk_getifaddrs()666 dlen += NLMSG_ALIGN(sa_len); in rk_getifaddrs()672 data += NLMSG_ALIGN(sa_len); in rk_getifaddrs()677 nlen += NLMSG_ALIGN(rtapayload + 1); in rk_getifaddrs()684 ifname += NLMSG_ALIGN(rtapayload + 1); in rk_getifaddrs()689 xlen += NLMSG_ALIGN(rtapayload); in rk_getifaddrs()693 xdata += NLMSG_ALIGN(rtapayload); in rk_getifaddrs()731 nlen += NLMSG_ALIGN(rtapayload + 1); in rk_getifaddrs()[all …]
70 #define HDR_LENGTH (NLMSG_LENGTH(NLMSG_ALIGN(sizeof(struct nfgenmsg))))200 int attr_len = nlh->nlmsg_len - NLMSG_ALIGN(HDR_LENGTH); in netfilter_read_linux()235 pkth.caplen = pkth.len = nlh->nlmsg_len-NLMSG_ALIGN(sizeof(struct nlmsghdr)); in netfilter_read_linux()260 msg_len = NLMSG_ALIGN(nlh->nlmsg_len); in netfilter_read_linux()342 struct nfattr *nfa = (struct nfattr *) (buf + NLMSG_ALIGN(nlh->nlmsg_len)); in netfilter_send_config_msg()347 nlh->nlmsg_len = NLMSG_ALIGN(nlh->nlmsg_len) + NFA_ALIGN(nfa->nfa_len); in netfilter_send_config_msg()383 if (nlh->nlmsg_len < NLMSG_ALIGN(sizeof(struct nlmsgerr))) { in netfilter_send_config_msg()
35 #define NLA_HDRLEN NLMSG_ALIGN(sizeof(struct nlattr))135 (skip = NLMSG_ALIGN(nlalen)) > *len || in nla_from_buf()193 (skip = NLMSG_ALIGN(msglen)) > *len || in nlmsg_from_buf()274 if ((skip = NLMSG_ALIGN(len)) > UINT16_MAX - sizeof(a.u) || in nlmsg_setattr()
648 nlmsg_len = NLMSG_ALIGN(sizeof(struct ifinfomsg)); in vlan_read_ifnames()