Revision 506fa1a7 proto/ospf/lsalib.h

View differences:

proto/ospf/lsalib.h
13 13
#ifdef CPU_BIG_ENDIAN
14 14
static inline void htonlsah(struct ospf_lsa_header *h, struct ospf_lsa_header *n) { *n = *h; };
15 15
static inline void ntohlsah(struct ospf_lsa_header *n, struct ospf_lsa_header *h) { *h = *n; };
16
static inline void htonlsab(void *h, void *n, u16 len) { memcpy(n, h, len); };
17
static inline void ntohlsab(void *n, void *h, u16 len) { memcpy(h, n, len); };
16
static inline void htonlsab(void *h, void *n, u16 len) { ASSERT(h != n); memcpy(n, h, len); };
17
static inline void ntohlsab(void *n, void *h, u16 len) { ASSERT(n != h); memcpy(h, n, len); };
18 18
static inline void htonlsab1(void *h, u16 len) { };
19 19
static inline void ntohlsab1(void *n, u16 len) { };
20 20
#else

Also available in: Unified diff