repo.or.cz
/
unleashed
/
tickless.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
add UNLEASHED_OBJ to unleashed.mk
[unleashed/tickless.git]
/
usr
/
src
/
cmd
/
ipf
/
lib
/
common
/
printsbuf.c
blob
cc13e19b6b758de82aa3e75d0e8f7a61dc552e25
1
/*
2
* Copyright (C) 1993-2005 by Darren Reed.
3
* See the IPFILTER.LICENCE file for details on licencing.
4
*/
5
6
#ifdef IPFILTER_SCAN
7
8
#include <ctype.h>
9
#include <stdio.h>
10
#include
"ipf.h"
11
#include
"netinet/ip_scan.h"
12
13
void
printsbuf
(
buf
)
14
char
*
buf
;
15
{
16
u_char
*
s
;
17
int
i
;
18
19
for
(
s
= (
u_char
*)
buf
,
i
=
ISC_TLEN
;
i
;
i
--,
s
++) {
20
if
(
ISPRINT
(*
s
))
21
putchar
(*
s
);
22
else
23
printf
(
"
\\
%o"
, *
s
);
24
}
25
}
26
27
#endif