Page MenuHomeFreeBSD

D24021.id69381.diff
No OneTemporary

D24021.id69381.diff

Index: sbin/ipfw/ipfw.8
===================================================================
--- sbin/ipfw/ipfw.8
+++ sbin/ipfw/ipfw.8
@@ -1343,7 +1343,7 @@
with multiple addresses) is provided for convenience only and
its use is discouraged.
.It Ar addr : Oo Cm not Oc Bro
-.Cm any | me | me6 |
+.Cm any | me | me4 | me6 |
.Cm table Ns Pq Ar name Ns Op , Ns Ar value
.Ar | addr-list | addr-set
.Brc
@@ -1351,7 +1351,10 @@
.It Cm any
Matches any IP address.
.It Cm me
-Matches any IP address configured on an interface in the system.
+Matches any IPv4 address configured on an interface in the system.
+.It Cm me4
+Alias for
+.Cm me .
.It Cm me6
Matches any IPv6 address configured on an interface in the system.
The address list is evaluated at the time the packet is
Index: sbin/ipfw/ipfw2.c
===================================================================
--- sbin/ipfw/ipfw2.c
+++ sbin/ipfw/ipfw2.c
@@ -3718,7 +3718,7 @@
inet_pton(AF_INET6, host, &a) == 1)
ret = add_srcip6(cmd, av, cblen, tstate);
else if (proto == IPPROTO_IP || strcmp(av, "me") == 0 ||
- inet_pton(AF_INET, host, &a) == 1)
+ strcmp(av, "me4") == 0 || inet_pton(AF_INET, host, &a) == 1)
ret = add_srcip(cmd, av, cblen, tstate);
else if (ret == NULL && strcmp(av, "any") != 0)
ret = cmd;
@@ -3748,7 +3748,7 @@
inet_pton(AF_INET6, host, &a) == 1)
ret = add_dstip6(cmd, av, cblen, tstate);
else if (proto == IPPROTO_IP || strcmp(av, "me") == 0 ||
- inet_pton(AF_INET, host, &a) == 1)
+ strcmp(av, "me4") == 0 || inet_pton(AF_INET, host, &a) == 1)
ret = add_dstip(cmd, av, cblen, tstate);
else if (ret == NULL && strcmp(av, "any") != 0)
ret = cmd;

File Metadata

Mime Type
text/plain
Expires
Tue, Aug 4, 2:29 AM (21 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35927329
Default Alt Text
D24021.id69381.diff (1 KB)

Event Timeline