]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
route.h: introduce a macro, SA_SIZE(struct sockaddr *) which returns
authorLuigi Rizzo <luigi@FreeBSD.org>
Tue, 13 Apr 2004 11:22:22 +0000 (11:22 +0000)
committerLuigi Rizzo <luigi@FreeBSD.org>
Tue, 13 Apr 2004 11:22:22 +0000 (11:22 +0000)
commite74642df71db2f41aeed15fd0b857af221452aa6
treef81cadb2baf9d439843a5c8123c911c7980bb872
parent9869addc5191743b49d9cbc5b87a8589dd851efb
route.h: introduce a macro, SA_SIZE(struct sockaddr *) which returns
the space occupied by a struct sockaddr when passed through a
routing socket.
Use it to replace the macro ROUNDUP(int), that does the same but
is redefined by every file which uses it, courtesy of
the School of Cut'n'Paste Programming(TM).

(partial) userland changes to follow.
sys/net/route.c
sys/net/route.h
sys/net/rtsock.c