| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: pfctl.c,v 1.5 2008/06/18 09:06:26 yamt Exp $ */ | | 1 | /* $NetBSD: pfctl.c,v 1.6 2020/04/22 23:40:40 joerg Exp $ */ |
2 | /* $OpenBSD: pfctl.c,v 1.268 2007/06/30 18:25:08 henning Exp $ */ | | 2 | /* $OpenBSD: pfctl.c,v 1.268 2007/06/30 18:25:08 henning Exp $ */ |
3 | | | 3 | |
4 | /* | | 4 | /* |
5 | * Copyright (c) 2001 Daniel Hartmeier | | 5 | * Copyright (c) 2001 Daniel Hartmeier |
6 | * Copyright (c) 2002,2003 Henning Brauer | | 6 | * Copyright (c) 2002,2003 Henning Brauer |
7 | * All rights reserved. | | 7 | * All rights reserved. |
8 | * | | 8 | * |
9 | * Redistribution and use in source and binary forms, with or without | | 9 | * Redistribution and use in source and binary forms, with or without |
10 | * modification, are permitted provided that the following conditions | | 10 | * modification, are permitted provided that the following conditions |
11 | * are met: | | 11 | * are met: |
12 | * | | 12 | * |
13 | * - Redistributions of source code must retain the above copyright | | 13 | * - Redistributions of source code must retain the above copyright |
14 | * notice, this list of conditions and the following disclaimer. | | 14 | * notice, this list of conditions and the following disclaimer. |
| @@ -86,28 +86,28 @@ int pfctl_show_src_nodes(int, int); | | | @@ -86,28 +86,28 @@ int pfctl_show_src_nodes(int, int); |
86 | int pfctl_show_states(int, const char *, int); | | 86 | int pfctl_show_states(int, const char *, int); |
87 | int pfctl_show_status(int, int); | | 87 | int pfctl_show_status(int, int); |
88 | int pfctl_show_timeouts(int, int); | | 88 | int pfctl_show_timeouts(int, int); |
89 | int pfctl_show_limits(int, int); | | 89 | int pfctl_show_limits(int, int); |
90 | void pfctl_debug(int, u_int32_t, int); | | 90 | void pfctl_debug(int, u_int32_t, int); |
91 | int pfctl_test_altqsupport(int, int); | | 91 | int pfctl_test_altqsupport(int, int); |
92 | int pfctl_show_anchors(int, int, char *); | | 92 | int pfctl_show_anchors(int, int, char *); |
93 | int pfctl_ruleset_trans(struct pfctl *, char *, struct pf_anchor *); | | 93 | int pfctl_ruleset_trans(struct pfctl *, char *, struct pf_anchor *); |
94 | int pfctl_load_ruleset(struct pfctl *, char *, | | 94 | int pfctl_load_ruleset(struct pfctl *, char *, |
95 | struct pf_ruleset *, int, int); | | 95 | struct pf_ruleset *, int, int); |
96 | int pfctl_load_rule(struct pfctl *, char *, struct pf_rule *, int); | | 96 | int pfctl_load_rule(struct pfctl *, char *, struct pf_rule *, int); |
97 | const char *pfctl_lookup_option(char *, const char **); | | 97 | const char *pfctl_lookup_option(char *, const char **); |
98 | | | 98 | |
99 | struct pf_anchor_global pf_anchors; | | 99 | extern struct pf_anchor_global pf_anchors; |
100 | struct pf_anchor pf_main_anchor; | | 100 | extern struct pf_anchor pf_main_anchor; |
101 | | | 101 | |
102 | const char *clearopt; | | 102 | const char *clearopt; |
103 | char *rulesopt; | | 103 | char *rulesopt; |
104 | const char *showopt; | | 104 | const char *showopt; |
105 | const char *debugopt; | | 105 | const char *debugopt; |
106 | char *anchoropt; | | 106 | char *anchoropt; |
107 | const char *optiopt = NULL; | | 107 | const char *optiopt = NULL; |
108 | char *pf_device = "/dev/pf"; | | 108 | char *pf_device = "/dev/pf"; |
109 | char *ifaceopt; | | 109 | char *ifaceopt; |
110 | char *tableopt; | | 110 | char *tableopt; |
111 | const char *tblcmdopt; | | 111 | const char *tblcmdopt; |
112 | int src_node_killers; | | 112 | int src_node_killers; |
113 | char *src_node_kill[2]; | | 113 | char *src_node_kill[2]; |