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, | |||||
/* NPTv6 tokens */ | |||||
TOK_NPTV6, | |||||
TOK_INTPREFIX, | |||||
TOK_EXTPREFIX, | |||||
TOK_PREFIXLEN, | |||||
}; | }; | ||||
/* | /* | ||||
* 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_nptv6_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 29 Lines |