Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F103458828
D31740.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
825 B
Referenced Files
None
Subscribers
None
D31740.id.diff
View Options
Index: sbin/pfctl/pfctl_parser.h
===================================================================
--- sbin/pfctl/pfctl_parser.h
+++ sbin/pfctl/pfctl_parser.h
@@ -74,6 +74,37 @@
struct pfr_buffer; /* forward definition */
+struct pf_eth_rule_addr {
+ uint8_t addr[ETHER_ADDR_LEN];
+ uint8_t neg;
+};
+
+struct pf_eth_rule {
+ uint32_t nr;
+
+ uint8_t quick;
+
+ /* Filter */
+ char ifname[IFNAMSIZ];
+ uint8_t ifnot;
+ uint8_t direction;
+ uint16_t proto;
+ struct pf_eth_rule_addr src, dst;
+
+ /* Stats */
+ uint64_t evaluations;
+ uint64_t packets[2];
+ uint64_t bytes[2];
+
+ /* Action */
+ char qname[PF_QNAME_SIZE];
+ char tagname[PF_TAG_NAME_SIZE];
+ uint8_t action;
+
+ TAILQ_ENTRY(pf_eth_rule) entries;
+};
+
+TAILQ_HEAD(pf_eth_rules, pf_eth_rule);
struct pfctl {
int dev;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 26, 7:28 AM (19 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14837917
Default Alt Text
D31740.id.diff (825 B)
Attached To
Mode
D31740: pfctl: Move pf_eth_rule definition into pfctl
Attached
Detach File
Event Timeline
Log In to Comment