Revision 061ab802 proto/ospf/ospf.h

View differences:

proto/ospf/ospf.h
424 424

  
425 425
#define LSA_EXT_EBIT 0x80000000
426 426

  
427
/* Endianity swap for lsa->type */
428
#define ntoht(x) x
429
#define htont(x) x
430

  
427 431

  
428 432
#else  /* OSPFv3 */
429 433

  
......
488 492
#define LSA_EXT_FBIT 0x2000000
489 493
#define LSA_EXT_TBIT 0x1000000
490 494

  
495
/* Endianity swap for lsa->type */
496
#define ntoht(x) ntohs(x)
497
#define htont(x) htons(x)
498

  
491 499
#endif
492 500

  
493 501
#define METRIC_MASK  0x00FFFFFF

Also available in: Unified diff