FreeBSD Bugzilla – Attachment 207583 Details for
Bug 240650
ipfw(8): Check for IPv4 in add_src() and add_dat, don't assume !IPv6 is IPv4
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch (Revision 2)
ipfw2-add_src-ipv4-not-notipv6.patch (text/plain), 694 bytes, created by
Neel Chauhan
on 2019-09-17 19:17:55 UTC
(
hide
)
Description:
Patch (Revision 2)
Filename:
MIME Type:
Creator:
Neel Chauhan
Created:
2019-09-17 19:17:55 UTC
Size:
694 bytes
patch
obsolete
>Index: sbin/ipfw/ipfw2.c >=================================================================== >--- sbin/ipfw/ipfw2.c (revision 352459) >+++ sbin/ipfw/ipfw2.c (working copy) >@@ -3717,9 +3717,8 @@ > if (proto == IPPROTO_IPV6 || strcmp(av, "me6") == 0 || > inet_pton(AF_INET6, host, &a) == 1) > ret = add_srcip6(cmd, av, cblen, tstate); >- /* XXX: should check for IPv4, not !IPv6 */ >- if (ret == NULL && (proto == IPPROTO_IP || strcmp(av, "me") == 0 || >- inet_pton(AF_INET6, host, &a) != 1)) >+ if (proto == IPPROTO_IP || strcmp(av, "me") == 0 || >+ inet_pton(AF_INET, host, &a) == 1) > ret = add_srcip(cmd, av, cblen, tstate); > if (ret == NULL && strcmp(av, "any") != 0) > ret = cmd;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 240650
:
207582
|
207583
|
207584
|
212336