]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Added ipa_from_u32 and ipa_from_u32 for use in the kernel sync code (IPv4 only).
authorMartin Mares <mj@ucw.cz>
Sun, 18 Oct 1998 22:22:28 +0000 (22:22 +0000)
committerMartin Mares <mj@ucw.cz>
Sun, 18 Oct 1998 22:22:28 +0000 (22:22 +0000)
Don't ever think of using it in routing protocols.

lib/ipv4.h

index a7715001a98f74d3374425f6a361526e5f93c6b4..81fa046bd54b8aa21253a911b4831159abcee6c7 100644 (file)
@@ -55,6 +55,8 @@ typedef u32 ip_addr;
 #define ipa_classify(x) ipv4_classify(_I(x))
 #define ipa_opposite(x) _MI(_I(x) ^ 1)
 #define ipa_class_mask(x) x = _MI(ipv4_class_mask(_I(x)))
+#define ipa_from_u32(x) _MI(x)
+#define ipa_to_u32(x) _I(x)
 
 int ipv4_classify(u32);
 u32 ipv4_class_mask(u32);