Changeset View
Changeset View
Standalone View
Standalone View
sbin/ipfw/ipfw2.c
Show First 20 Lines • Show All 405 Lines • ▼ Show 20 Lines | |||||
static uint16_t pack_object(struct tidx *tstate, const char *name, int otype); | static uint16_t pack_object(struct tidx *tstate, const char *name, int otype); | ||||
static uint16_t pack_table(struct tidx *tstate, const char *name); | static uint16_t pack_table(struct tidx *tstate, const char *name); | ||||
static char *table_search_ctlv(ipfw_obj_ctlv *ctlv, uint16_t idx); | static char *table_search_ctlv(ipfw_obj_ctlv *ctlv, uint16_t idx); | ||||
static void object_sort_ctlv(ipfw_obj_ctlv *ctlv); | static void object_sort_ctlv(ipfw_obj_ctlv *ctlv); | ||||
static char *object_search_ctlv(ipfw_obj_ctlv *ctlv, uint16_t idx, | static char *object_search_ctlv(ipfw_obj_ctlv *ctlv, uint16_t idx, | ||||
uint16_t type); | uint16_t type); | ||||
int | |||||
is_ipfw(void) | |||||
{ | |||||
return (g_co.prog == cmdline_prog_ipfw); | |||||
} | |||||
/* | /* | ||||
* Simple string buffer API. | * Simple string buffer API. | ||||
* Used to simplify buffer passing between function and for | * Used to simplify buffer passing between function and for | ||||
* transparent overrun handling. | * transparent overrun handling. | ||||
*/ | */ | ||||
/* | /* | ||||
* Allocates new buffer of given size @sz. | * Allocates new buffer of given size @sz. | ||||
▲ Show 20 Lines • Show All 5,233 Lines • Show Last 20 Lines |