Changeset View
Changeset View
Standalone View
Standalone View
sbin/ipfw/ipfw2.h
Show First 20 Lines • Show All 223 Lines • ▼ Show 20 Lines | enum tokens { | ||||
TOK_VALTYPE, | TOK_VALTYPE, | ||||
TOK_ALGO, | TOK_ALGO, | ||||
TOK_TALIST, | TOK_TALIST, | ||||
TOK_ATOMIC, | TOK_ATOMIC, | ||||
TOK_LOCK, | TOK_LOCK, | ||||
TOK_UNLOCK, | TOK_UNLOCK, | ||||
TOK_VLIST, | TOK_VLIST, | ||||
TOK_OLIST, | TOK_OLIST, | ||||
TOK_STATS, | |||||
/* NAT64 tokens */ | |||||
TOK_NAT64STL, | |||||
TOK_NAT64LSN, | |||||
TOK_STATES, | |||||
TOK_CONFIG, | |||||
TOK_TABLE4, | |||||
TOK_TABLE6, | |||||
TOK_PREFIX, | |||||
TOK_PREFIX4, | |||||
TOK_PREFIX6, | |||||
TOK_AGG_LEN, | |||||
TOK_AGG_COUNT, | |||||
TOK_MAX_PORTS, | |||||
TOK_JMAXLEN, | |||||
TOK_PORT_RANGE, | |||||
TOK_NH_DEL_AGE, | |||||
TOK_PG_DEL_AGE, | |||||
TOK_TCP_SYN_AGE, | |||||
TOK_TCP_CLOSE_AGE, | |||||
TOK_TCP_EST_AGE, | |||||
TOK_UDP_AGE, | |||||
TOK_ICMP_AGE, | |||||
}; | }; | ||||
/* | /* | ||||
* the following macro returns an error message if we run out of | * the following macro returns an error message if we run out of | ||||
* arguments. | * arguments. | ||||
*/ | */ | ||||
#define NEED(_p, msg) {if (!_p) errx(EX_USAGE, msg);} | #define NEED(_p, msg) {if (!_p) errx(EX_USAGE, msg);} | ||||
#define NEED1(msg) {if (!(*av)) errx(EX_USAGE, msg);} | #define NEED1(msg) {if (!(*av)) errx(EX_USAGE, msg);} | ||||
▲ Show 20 Lines • Show All 70 Lines • ▼ Show 20 Lines | |||||
void ipfw_sets_handler(char *av[]); | void ipfw_sets_handler(char *av[]); | ||||
void ipfw_table_handler(int ac, char *av[]); | void ipfw_table_handler(int ac, char *av[]); | ||||
void ipfw_sysctl_handler(char *av[], int which); | void ipfw_sysctl_handler(char *av[], int which); | ||||
void ipfw_delete(char *av[]); | void ipfw_delete(char *av[]); | ||||
void ipfw_flush(int force); | void ipfw_flush(int force); | ||||
void ipfw_zero(int ac, char *av[], int optname); | void ipfw_zero(int ac, char *av[], int optname); | ||||
void ipfw_list(int ac, char *av[], int show_counters); | void ipfw_list(int ac, char *av[], int show_counters); | ||||
void ipfw_internal_handler(int ac, char *av[]); | void ipfw_internal_handler(int ac, char *av[]); | ||||
void ipfw_nat64lsn_handler(int ac, char *av[]); | |||||
void ipfw_nat64stl_handler(int ac, char *av[]); | |||||
int ipfw_check_object_name(const char *name); | int ipfw_check_object_name(const char *name); | ||||
#ifdef PF | #ifdef PF | ||||
/* altq.c */ | /* altq.c */ | ||||
void altq_set_enabled(int enabled); | void altq_set_enabled(int enabled); | ||||
u_int32_t altq_name_to_qid(const char *name); | u_int32_t altq_name_to_qid(const char *name); | ||||
void print_altq_cmd(struct buf_pr *bp, struct _ipfw_insn_altq *altqptr); | void print_altq_cmd(struct buf_pr *bp, struct _ipfw_insn_altq *altqptr); | ||||
#else | #else | ||||
Show All 17 Lines | |||||
void fill_flow6(struct _ipfw_insn_u32 *cmd, char *av, int cblen); | void fill_flow6(struct _ipfw_insn_u32 *cmd, char *av, int cblen); | ||||
void fill_unreach6_code(u_short *codep, char *str); | void fill_unreach6_code(u_short *codep, char *str); | ||||
void fill_icmp6types(struct _ipfw_insn_icmp6 *cmd, char *av, int cblen); | void fill_icmp6types(struct _ipfw_insn_icmp6 *cmd, char *av, int cblen); | ||||
int fill_ext6hdr(struct _ipfw_insn *cmd, char *av); | int fill_ext6hdr(struct _ipfw_insn *cmd, char *av); | ||||
/* tables.c */ | /* tables.c */ | ||||
struct _ipfw_obj_ctlv; | struct _ipfw_obj_ctlv; | ||||
struct _ipfw_obj_ntlv; | |||||
int table_check_name(const char *tablename); | int table_check_name(const char *tablename); | ||||
void ipfw_list_ta(int ac, char *av[]); | void ipfw_list_ta(int ac, char *av[]); | ||||
void ipfw_list_values(int ac, char *av[]); | void ipfw_list_values(int ac, char *av[]); | ||||
void table_fill_ntlv(struct _ipfw_obj_ntlv *ntlv, const char *name, | |||||
uint8_t set, uint16_t uidx); | |||||