Searched refs:NETLINK_ALIGN (Results 1 – 6 of 6) sorted by relevance
113 attrs_len -= NETLINK_ALIGN(sizeof(struct rtmsg)); in rtnl_route_from_linux()114 nla_head = (struct nlattr *)((char *)rtm + NETLINK_ALIGN(sizeof(struct rtmsg))); in rtnl_route_from_linux()272 int hdrlen = NETLINK_ALIGN(raw_hdrlen); in nlmsg_copy_all_nla()425 int hdrlen = NETLINK_ALIGN(sizeof(struct rtmsg)); in rtnl_newroute_to_linux()
45 #define NETLINK_ALIGN(_len) _roundup2(_len, NETLINK_ALIGN_SIZE) macro
51 #define NETLINK_ALIGN(_len) _roundup2(_len, NETLINK_ALIGN_SIZE) macro384 int off = NLMSG_HDRLEN + NETLINK_ALIGN(hdrlen); in snl_parse_attrs()741 sz = NETLINK_ALIGN(sz); in snl_reserve_msg_data_raw()896 nla->nla_len = NETLINK_ALIGN(snl_get_msg_offset(nw) - off); in snl_end_attr_nested()
570 int required_len = NETLINK_ALIGN(len + sizeof(struct nlmsghdr)); in nlmsg_add()639 payload_len = NETLINK_ALIGN(payload_len); in nlmsg_ack()
127 sz = NETLINK_ALIGN(sz); in nlmsg_reserve_data_raw()
413 nla_len += NETLINK_ALIGN(num_nhops * sizeof(struct nexthop_grp)); in dump_nhgrp()