1
0
mirror of https://git.burble.com/burble.dn42/bird.git synced 2024-05-12 03:55:05 +00:00

Support for address family constants

We already had them defined on BGP level, but they are more general.
This commit is contained in:
Ondrej Zajicek (work)
2019-11-03 20:26:54 +01:00
parent 08c4c9a30b
commit 0edf0c8cd9
6 changed files with 15 additions and 2 deletions

View File

@ -48,6 +48,13 @@
#define UDP_HEADER_LENGTH 8
/* IANA Address Family Numbers */
/* https://www.iana.org/assignments/address-family-numbers/address-family-numbers.xhtml */
/* Would use AF_ prefix, but that collides with POSIX address family numbers */
#define AFI_IPV4 1
#define AFI_IPV6 2
#ifdef DEBUGGING
typedef struct ip4_addr {