dsniff
2.4b2
About: A collection of tools for network auditing Fossies Dox: dsniff-2.4b2.tar.gz ("inofficial" and yet experimental doxygen-generated source code documentation) 
|
Go to the documentation of this file. 13 #include <sys/param.h> 14 #include <sys/types.h> 28 struct buf inbuf, outbuf;
35 while ((i =
buf_len(&inbuf)) > 0) {
41 for (j = 0; j < i; j++) {
48 buf_put(&outbuf,
" ", (j % 2) + 2);
54 for (j = 0; j < i; j++) {
56 c = isprint(c) ? c :
'.';
int buf_putf(buf_t buf, const char *fmt,...)
int decode_hex(u_char *buf, int len, u_char *obuf, int olen)
void buf_init(buf_t buf, u_char *data, int len)
int buf_put(buf_t buf, void *src, int len)
int buf_get(buf_t buf, void *dst, int len)
int buf_seek(buf_t buf, int off, int whence)