diff options
author | Martin Mares <mj@ucw.cz> | 2000-03-20 18:45:03 +0000 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2000-03-20 18:45:03 +0000 |
commit | ca97b489de8cca61d1affa49983b7cdc1c81cf96 (patch) | |
tree | babc85f24bf829075a9763f607b04e5864bcf9d8 /nest/route.h | |
parent | 2638249d34cc7f600fba25edd29538c00a3aca31 (diff) |
Define new data types for BGP.
Diffstat (limited to 'nest/route.h')
-rw-r--r-- | nest/route.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nest/route.h b/nest/route.h index aa21596e..f180d5e3 100644 --- a/nest/route.h +++ b/nest/route.h @@ -294,12 +294,13 @@ typedef struct eattr { #define EAF_TYPE_MASK 0x0f /* Mask with this to get type */ #define EAF_TYPE_INT 0x01 /* 32-bit signed integer number */ #define EAF_TYPE_OPAQUE 0x02 /* Opaque byte string (not filterable) */ -#define EAF_TYPE_IP_ADDRESS 0x04 /* IP address [FIXME: embed at least for IPv4?] */ -#define EAF_TYPE_AS_PATH 0x06 /* BGP AS path [FIXME: define storage layout] */ +#define EAF_TYPE_IP_ADDRESS 0x04 /* IP address */ +#define EAF_TYPE_ROUTER_ID 0x05 /* Router ID (IPv4 address) */ +#define EAF_TYPE_AS_PATH 0x06 /* BGP AS path (encoding per RFC 1771) */ #define EAF_TYPE_INT_SET 0x0a /* Set of integers (e.g., a community list) */ #define EAF_TYPE_UNDEF 0x0f /* `force undefined' entry */ #define EAF_EMBEDDED 0x01 /* Data stored in eattr.u.data (part of type spec) */ -#define EAF_VAR_LENGTH 0x02 /* Attribute length is variable */ +#define EAF_VAR_LENGTH 0x02 /* Attribute length is variable (part of type spec) */ #define EAF_TEMP 0x80 /* A temporary attribute (the one stored in the tmp attr list) */ struct adata { |