mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
Temporary OSPFv3 development commit
This commit is contained in:
@@ -424,6 +424,10 @@ struct ospf_lsa_ext
|
||||
|
||||
#define LSA_EXT_EBIT 0x80000000
|
||||
|
||||
/* Endianity swap for lsa->type */
|
||||
#define ntoht(x) x
|
||||
#define htont(x) x
|
||||
|
||||
|
||||
#else /* OSPFv3 */
|
||||
|
||||
@@ -488,6 +492,10 @@ struct ospf_lsa_prefix
|
||||
#define LSA_EXT_FBIT 0x2000000
|
||||
#define LSA_EXT_TBIT 0x1000000
|
||||
|
||||
/* Endianity swap for lsa->type */
|
||||
#define ntoht(x) ntohs(x)
|
||||
#define htont(x) htons(x)
|
||||
|
||||
#endif
|
||||
|
||||
#define METRIC_MASK 0x00FFFFFF
|
||||
|
Reference in New Issue
Block a user