1*0Sstevel@tonic-gate #ifdef	IPFILTER_SCAN
2*0Sstevel@tonic-gate 
3*0Sstevel@tonic-gate #include <ctype.h>
4*0Sstevel@tonic-gate #include <stdio.h>
5*0Sstevel@tonic-gate #include "ipf.h"
6*0Sstevel@tonic-gate #include "netinet/ip_scan.h"
7*0Sstevel@tonic-gate 
8*0Sstevel@tonic-gate void printsbuf(buf)
9*0Sstevel@tonic-gate char *buf;
10*0Sstevel@tonic-gate {
11*0Sstevel@tonic-gate 	u_char *s;
12*0Sstevel@tonic-gate 	int i;
13*0Sstevel@tonic-gate 
14*0Sstevel@tonic-gate 	for (s = (u_char *)buf, i = ISC_TLEN; i; i--, s++) {
15*0Sstevel@tonic-gate 		if (isprint(*s))
16*0Sstevel@tonic-gate 			putchar(*s);
17*0Sstevel@tonic-gate 		else
18*0Sstevel@tonic-gate 			printf("\\%o", *s);
19*0Sstevel@tonic-gate 	}
20*0Sstevel@tonic-gate }
21*0Sstevel@tonic-gate 
22*0Sstevel@tonic-gate #endif
23