]> git.puffer.fish Git - mirror/frr.git/commit
lib: add a transparent union for sockaddrs 14736/head
authorDavid Lamparter <equinox@opensourcerouting.org>
Wed, 30 Nov 2022 10:19:14 +0000 (11:19 +0100)
committerDavid Lamparter <equinox@opensourcerouting.org>
Sun, 5 Nov 2023 17:19:52 +0000 (18:19 +0100)
commitbf098b4a11a42e123fbfef664027b2ba183a31c4
treed66a03ee9f2ae14ade6779c1d16dfe441de573b6
parent19cbc3157983ec0a1a15ec1be90a4a1a3de9969b
lib: add a transparent union for sockaddrs

As with "prefixptr"/"prefixconstptr", this allows function prototypes to
say "just give me any sockaddr" typing-wise, without having the compiler
complain that a "struct sockaddr_in" is not a "struct sockaddr".

(Split off from other changes that start using this.)

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
lib/sockunion.h