mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +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:
7
lib/ip.h
7
lib/ip.h
@@ -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 {
|
||||
|
Reference in New Issue
Block a user