Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

util_net.c File Reference

#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <string.h>
#include "util_net.h"

Go to the source code of this file.

Functions

char * mktcpflag_str (int flags)
char * inet_ntoax (u_int32_t ip)


Function Documentation

char* inet_ntoax u_int32_t  ip  ) 
 

A inet_ntoa that has 2 static buffers that are changed between subsequent calls

Parameters:
ip ip in NETWORK BYTE ORDER

Definition at line 75 of file util_net.c.

References snprintf.

Referenced by flowps_newflow_callback().

char* mktcpflag_str int  flags  ) 
 

give a textual representation of tcp flags

Parameters:
flags tcph->flags
Returns:
ptr to a static buffer w/ the string represented

Definition at line 26 of file util_net.c.

References memset.

Referenced by flowps_entry_print(), and flowps_newflow_callback().


Generated on Sun May 14 14:51:27 2006 by  doxygen 1.4.2