pfctl: match geticmpcodeby*()/print_fromto() prototypes to definitions
The definitions use sa_family_t, not u_int8_t.
Sponsored by: Rubicon Communications, LLC ("Netgate")
This commit is contained in:
@@ -71,7 +71,7 @@ void print_port (u_int8_t, u_int16_t, u_int16_t, const char *, int);
|
|||||||
void print_ugid (u_int8_t, unsigned, unsigned, const char *, unsigned);
|
void print_ugid (u_int8_t, unsigned, unsigned, const char *, unsigned);
|
||||||
void print_flags (u_int8_t);
|
void print_flags (u_int8_t);
|
||||||
void print_fromto(struct pf_rule_addr *, pf_osfp_t,
|
void print_fromto(struct pf_rule_addr *, pf_osfp_t,
|
||||||
struct pf_rule_addr *, u_int8_t, u_int8_t, int, int);
|
struct pf_rule_addr *, sa_family_t, u_int8_t, int, int);
|
||||||
int ifa_skip_if(const char *filter, struct node_host *p);
|
int ifa_skip_if(const char *filter, struct node_host *p);
|
||||||
|
|
||||||
struct node_host *host_if(const char *, int, int *);
|
struct node_host *host_if(const char *, int, int *);
|
||||||
|
|||||||
@@ -340,10 +340,10 @@ struct icmpcodeent {
|
|||||||
u_int8_t code;
|
u_int8_t code;
|
||||||
};
|
};
|
||||||
|
|
||||||
const struct icmptypeent *geticmptypebynumber(u_int8_t, u_int8_t);
|
const struct icmptypeent *geticmptypebynumber(u_int8_t, sa_family_t);
|
||||||
const struct icmptypeent *geticmptypebyname(char *, u_int8_t);
|
const struct icmptypeent *geticmptypebyname(char *, sa_family_t);
|
||||||
const struct icmpcodeent *geticmpcodebynumber(u_int8_t, u_int8_t, u_int8_t);
|
const struct icmpcodeent *geticmpcodebynumber(u_int8_t, u_int8_t, sa_family_t);
|
||||||
const struct icmpcodeent *geticmpcodebyname(u_long, char *, u_int8_t);
|
const struct icmpcodeent *geticmpcodebyname(u_long, char *, sa_family_t);
|
||||||
|
|
||||||
struct pf_timeout {
|
struct pf_timeout {
|
||||||
const char *name;
|
const char *name;
|
||||||
|
|||||||
Reference in New Issue
Block a user