summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1998-10-19 00:22:28 +0200
committerMartin Mares <mj@ucw.cz>1998-10-19 00:22:28 +0200
commitab3a76a382745e0195b213c6d87ddc0e3cabd690 (patch)
tree36d454f6f6986f6e1b9a798ab78460a39eb954fb
parent7e7790c61f14dff300d7c5464fdd47e4c15a0731 (diff)
downloadbird-ab3a76a382745e0195b213c6d87ddc0e3cabd690.tar
bird-ab3a76a382745e0195b213c6d87ddc0e3cabd690.zip
Added ipa_from_u32 and ipa_from_u32 for use in the kernel sync code (IPv4 only).
Don't ever think of using it in routing protocols.
-rw-r--r--lib/ipv4.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ipv4.h b/lib/ipv4.h
index a771500..81fa046 100644
--- a/lib/ipv4.h
+++ b/lib/ipv4.h
@@ -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);