Revision ba321706 lib/ipv4.h

View differences:

lib/ipv4.h
56 56
#define ipa_ntoh(x) x = _MI(ntohl(_I(x)))
57 57
#define ipa_classify(x) ipv4_classify(_I(x))
58 58
#define ipa_has_link_scope(x) ipv4_has_link_scope(_I(x))
59
#define ipa_opposite(x,len) _MI(_I(x) ^ (len == 30 ? 3 : 1))
59
#define ipa_opposite_m1(x) _MI(_I(x) ^ 1)
60
#define ipa_opposite_m2(x) _MI(_I(x) ^ 3)
60 61
#define ipa_class_mask(x) _MI(ipv4_class_mask(_I(x)))
61 62
#define ipa_from_u32(x) _MI(x)
62 63
#define ipa_to_u32(x) _I(x)

Also available in: Unified diff