Bug 263839 - please define/document RT_ADVANCE() in route(4)
Summary: please define/document RT_ADVANCE() in route(4)
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: standards (show other bugs)
Version: 13.0-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-standards (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-07 13:26 UTC by Andrew Cagney
Modified: 2022-05-07 13:26 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Cagney 2022-05-07 13:26:14 UTC
(yea, admittedly, there's no real standard)

It seems that when building a message to send to PF_ROUTE requires some magical alignment.

FreeBSD defines, but doesn't document, SO_SIZE()
NetBSD defines, but doesn't document, RT_ADVANCE() and RT_ROUNDUP()
OpenBSD hides definitions for ADVANCE() and ROUNDUP() in route.c

Can I suggest adding/documenting the RT_* macros; mainly because everything else in net/route.h starts with the RT* prefix.