Lines Matching refs:isc

258 printent(ipscan_t *isc)  in printent()  argument
265 bcopy(isc->ipsc_ctxt, buf, ISC_TLEN); in printent()
266 printf("%s : (\"", isc->ipsc_tag); in printent()
267 printbuf(isc->ipsc_ctxt, isc->ipsc_clen, 0); in printent()
269 bcopy(isc->ipsc_cmsk, buf, ISC_TLEN); in printent()
272 printbuf(isc->ipsc_stxt, isc->ipsc_slen, 0); in printent()
274 bcopy(isc->ipsc_smsk, buf, ISC_TLEN); in printent()
277 switch (isc->ipsc_action) in printent()
284 printf("(%s", inet_ntoa(isc->ipsc_ip)); in printent()
285 if (isc->ipsc_port) in printent()
286 printf(",%d", isc->ipsc_port); in printent()
296 if (isc->ipsc_else != ISC_A_NONE) { in printent()
298 switch (isc->ipsc_else) in printent()
305 printf("(%s", inet_ntoa(isc->ipsc_eip)); in printent()
306 if (isc->ipsc_eport) in printent()
307 printf(",%d", isc->ipsc_eport); in printent()
320 for (u = (u_char *)isc, i = sizeof(*isc); i; ) { in printent()
329 isc->ipsc_hits, isc->ipsc_active, isc->ipsc_fref, in printent()
330 isc->ipsc_sref); in printent()
338 ipscan_t isc, *iscp; in addtag() local
340 bzero((char *)&isc, sizeof(isc)); in addtag()
342 strncpy(isc.ipsc_tag, tstr, sizeof(isc.ipsc_tag)); in addtag()
343 isc.ipsc_tag[sizeof(isc.ipsc_tag) - 1] = '\0'; in addtag()
346 isc.ipsc_clen = cram(isc.ipsc_ctxt, cp[0]); in addtag()
348 if (cram(isc.ipsc_cmsk, cp[1]) != isc.ipsc_clen) { in addtag()
357 isc.ipsc_slen = cram(isc.ipsc_stxt, sp[0]); in addtag()
359 if (cram(isc.ipsc_smsk, sp[1]) != isc.ipsc_slen) { in addtag()
368 isc.ipsc_action = ISC_A_CLOSE; in addtag()
370 isc.ipsc_action = ISC_A_TRACK; in addtag()
372 isc.ipsc_action = ISC_A_REDIRECT; in addtag()
373 isc.ipsc_ip = act->act_ip; in addtag()
374 isc.ipsc_port = act->act_port; in addtag()
379 isc.ipsc_else = ISC_A_CLOSE; in addtag()
381 isc.ipsc_else = ISC_A_TRACK; in addtag()
383 isc.ipsc_else = ISC_A_REDIRECT; in addtag()
384 isc.ipsc_eip = act->act_eip; in addtag()
385 isc.ipsc_eport = act->act_eport; in addtag()
390 iscp = &isc; in addtag()
401 printent(&isc); in addtag()
467 ipscan_t isc; in showlist() local
473 if (kmemcpy((char *)&isc, (u_long)ipsc.iscs_list, in showlist()
474 sizeof(isc)) == -1) { in showlist()
478 printent(&isc); in showlist()
479 ipsc.iscs_list = isc.ipsc_next; in showlist()