tup
tup->ipft_name, tup->ipft_min, tup->ipft_max);
if (tup->ipft_sz == sizeof(u_long))
printf("%lu\n", tup->ipft_vlong);
else if (tup->ipft_sz == sizeof(u_int))
printf("%u\n", tup->ipft_vint);
else if (tup->ipft_sz == sizeof(u_short))
printf("%hu\n", tup->ipft_vshort);
else if (tup->ipft_sz == sizeof(u_char))
printf("%u\n", (u_int)tup->ipft_vchar);
printf("sz = %d\n", tup->ipft_sz);
void printtunable(tup)
ipftune_t *tup;
sof_socktuple32_t *tup;
sz = props.sfp_socktuple_cnt * sizeof (*tup);
tup = my_malloc(sz, "socket tuple buffer");
if (Pread(Proc, tup, sz, (uintptr_t)props.sfp_socktuple) == sz)
tup[i].sofst_family, tup[i].sofst_type,
tup[i].sofst_protocol);
sof_socktuple_t *tup;
sz = props.sfp_socktuple_cnt * sizeof (*tup);
tup = my_malloc(sz, "socket tuple buffer");
if (Pread(Proc, tup, sz, (uintptr_t)props.sfp_socktuple) == sz)
tup[i].sofst_family, tup[i].sofst_type,
tup[i].sofst_protocol);
type_ident_decl1(struct tup *tup, char *funcbuf, size_t buflen, char *ident)
if (!tup) {
ti = tup->ti;
type_ident_decl1(tup->up, fb, NDLBUFSZ, ident);
type_ident_decl1(tup->up, fb, NDLBUFSZ, ident);
type_ident_decl1(tup->up, fb, NDLBUFSZ, ident);
type_ident_decl1(tup->up, funcbuf+1, buflen - 1, ident);
type_ident_decl1(tup->up, p, NDLBUFSZ - 1, ident);
type_ident_decl1(tup->up, p, NDLBUFSZ - 1, ident);
struct tup tup_tab[40];
struct tup *tup;
struct tup *up = 0;
tup = &tup_tab[n_tt];
tup->up = up;
tup->ti = ti;
up = tup;
struct tup *up;
static void type_ident_decl1(struct tup *, char *, size_t, char *);
sof_socktuple_t *tup = ent->sofe_socktuple;
tup = ent->sofe_socktuple;
for (i = 0; i < ent->sofe_socktuple_cnt; i++, tup++) {
ASSERT(tup < ent->sofe_socktuple + tuplesz);
tup->sofst_family = tup32.sofst_family;
tup->sofst_type = tup32.sofst_type;
tup->sofst_protocol = tup32.sofst_protocol;
u_short tup, po;
tup = *pop;
if (tup != po) /* EQUAL */
if (tup == po) /* NOTEQUAL */
if (tup >= po) /* LESSTHAN */
if (tup <= po) /* GREATERTHAN */
if (tup > po) /* LT or EQ */
if (tup < po) /* GT or EQ */
if (tup >= po && tup <= frp->frp_top) /* Out of range */
if (tup <= po || tup >= frp->frp_top) /* In range */
if (tup < po || tup > frp->frp_top) /* Inclusive range */