summaryrefslogtreecommitdiffstats
path: root/iptables.c
diff options
context:
space:
mode:
authorMarc Boucher <marc@mbsi.ca>2001-12-06 14:50:19 +0000
committerMarc Boucher <marc@mbsi.ca>2001-12-06 14:50:19 +0000
commitb93c79862b47f227ac908430a2c9f16b4ecc0631 (patch)
tree71c404956d054f912b196b6b0356ea5c6c0d3df3 /iptables.c
parent389e3544861d170016c1059abe699d991e341d41 (diff)
Export addr_to_anyname(), mask_to_dotted(), parse_hostnetworkmask()
and parse_protocol() as they are needed by the upcoming ipt_conntrack match module.
Diffstat (limited to 'iptables.c')
-rw-r--r--iptables.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/iptables.c b/iptables.c
index 07de8964..3ff05898 100644
--- a/iptables.c
+++ b/iptables.c
@@ -604,7 +604,7 @@ parse_mask(char *mask)
return &maskaddr;
}
-static void
+void
parse_hostnetworkmask(const char *name, struct in_addr **addrpp,
struct in_addr *maskp, unsigned int *naddrs)
{
@@ -695,7 +695,7 @@ find_proto(const char *pname, enum ipt_tryload tryload, int nolookup)
return find_match(pname, tryload);
}
-static u_int16_t
+u_int16_t
parse_protocol(const char *s)
{
unsigned int proto;
@@ -818,7 +818,8 @@ addr_to_dotted(const struct in_addr *addrp)
sprintf(buf, "%d.%d.%d.%d", bytep[0], bytep[1], bytep[2], bytep[3]);
return buf;
}
-static char *
+
+char *
addr_to_anyname(const struct in_addr *addr)
{
char *name;
@@ -830,7 +831,7 @@ addr_to_anyname(const struct in_addr *addr)
return addr_to_dotted(addr);
}
-static char *
+char *
mask_to_dotted(const struct in_addr *mask)
{
int i;