SWAP32
#undef SWAP32
#define SWAP32(x) ap->x = be32toh(ap->x)
#define SWAP32(x) lp->x = bswap32(lp->x)
#undef SWAP32
#define SWAP32(x) (x) = htole32(ntohl((x)))
#undef SWAP32
#define SWAP32(x) nlp->x = bswap32(olp->x)