Home
last modified time | relevance | path

Searched refs:NETLINK_ALIGN (Results 1 – 5 of 5) sorted by relevance

/freebsd/sys/compat/linux/
H A Dlinux_netlink.c130 attrs_len -= NETLINK_ALIGN(sizeof(struct rtmsg)); in rtnl_route_from_linux()
131 nla_head = (struct nlattr *)((char *)rtm + NETLINK_ALIGN(sizeof(struct rtmsg))); in rtnl_route_from_linux()
291 int hdrlen = NETLINK_ALIGN(raw_hdrlen); in nlmsg_copy_all_nla()
444 int hdrlen = NETLINK_ALIGN(sizeof(struct rtmsg)); in rtnl_newroute_to_linux()
/freebsd/sys/netlink/
H A Dnetlink_message_writer.c205 required_len = NETLINK_ALIGN(len + sizeof(struct nlmsghdr)); in _nlmsg_add()
279 payload_len = NETLINK_ALIGN(payload_len); in nlmsg_ack()
345 sz = NETLINK_ALIGN(sz); in nlmsg_reserve_data_raw()
H A Dnetlink_ctl.h46 #define NETLINK_ALIGN(_len) _roundup2(_len, NETLINK_ALIGN_SIZE) macro
H A Dnetlink_snl.h52 #define NETLINK_ALIGN(_len) _roundup2(_len, NETLINK_ALIGN_SIZE) macro
471 int off = NLMSG_HDRLEN + NETLINK_ALIGN(hdrlen); in snl_parse_attrs()
1097 sz = NETLINK_ALIGN(sz); in snl_reserve_msg_data_raw()
1258 nla->nla_len = NETLINK_ALIGN(snl_get_msg_offset(nw) - off); in snl_end_attr_nested()
/freebsd/sys/netlink/route/
H A Dnexthop.c413 nla_len += NETLINK_ALIGN(num_nhops * sizeof(struct nexthop_grp)); in dump_nhgrp()