Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115013252
D46591.id143488.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
622 B
Referenced Files
None
Subscribers
None
D46591.id143488.diff
View Options
diff --git a/sys/netpfil/pf/pf.c b/sys/netpfil/pf/pf.c
--- a/sys/netpfil/pf/pf.c
+++ b/sys/netpfil/pf/pf.c
@@ -4920,8 +4920,7 @@
break;
#ifdef INET
case IPPROTO_ICMP:
- if (pd->af != AF_INET)
- break;
+ MPASS(af == AF_INET);
icmptype = pd->hdr.icmp.icmp_type;
icmpcode = pd->hdr.icmp.icmp_code;
state_icmp = pf_icmp_mapping(pd, icmptype,
@@ -4937,8 +4936,7 @@
#endif /* INET */
#ifdef INET6
case IPPROTO_ICMPV6:
- if (af != AF_INET6)
- break;
+ MPASS(af == AF_INET6);
icmptype = pd->hdr.icmp6.icmp6_type;
icmpcode = pd->hdr.icmp6.icmp6_code;
state_icmp = pf_icmp_mapping(pd, icmptype,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 20, 2:54 PM (3 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17645414
Default Alt Text
D46591.id143488.diff (622 B)
Attached To
Mode
D46591: pf: remove redundant checks
Attached
Detach File
Event Timeline
Log In to Comment