mirror of
https://github.com/opnsense/src.git
synced 2026-02-26 19:30:29 -05:00
pfctl: always print 'l3' source/destination
While the kernel only performs the L3 check for
ETHERTYPE_IP/ETHERTYPE_IP6 we should always print the source and
destination addresses.
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D34918
This commit is contained in:
parent
812839e5aa
commit
a16732d670
1 changed files with 4 additions and 6 deletions
|
|
@ -783,12 +783,10 @@ print_eth_rule(struct pfctl_eth_rule *r, const char *anchor_call,
|
|||
printf(" to ");
|
||||
print_eth_addr(&r->dst);
|
||||
}
|
||||
if (r->proto == ETHERTYPE_IP || r->proto == ETHERTYPE_IPV6) {
|
||||
printf(" l3");
|
||||
print_fromto(&r->ipsrc, PF_OSFP_ANY, &r->ipdst,
|
||||
r->proto == ETHERTYPE_IP ? AF_INET : AF_INET6, 0,
|
||||
0, 0);
|
||||
}
|
||||
printf(" l3");
|
||||
print_fromto(&r->ipsrc, PF_OSFP_ANY, &r->ipdst,
|
||||
r->proto == ETHERTYPE_IP ? AF_INET : AF_INET6, 0,
|
||||
0, 0);
|
||||
if (r->qname[0])
|
||||
printf(" queue %s", r->qname);
|
||||
if (r->tagname[0])
|
||||
|
|
|
|||
Loading…
Reference in a new issue