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

libnet-functions.h File Reference

Go to the source code of this file.

Functions

int libnet_plist_chain_new (struct libnet_plist_chain **, char *)
int libnet_plist_chain_next_pair (struct libnet_plist_chain *, u_short *bport, u_short *eport)
int libnet_plist_chain_dump (struct libnet_plist_chain *)
u_char * libnet_plist_chain_dump_string (struct libnet_plist_chain *)
int libnet_plist_chain_free (struct libnet_plist_chain *)
void libnet_error (int, char *,...)
int libnet_seed_prand ()
u_long libnet_get_prand (int)
int libnet_do_checksum (u_char *, int, int)
u_char * libnet_host_lookup (u_long, u_short)
void libnet_host_lookup_r (u_long, u_short, u_char *)
u_long libnet_name_resolve (u_char *, u_short)
u_short libnet_ip_check (u_short *, int)
int libnet_in_cksum (u_short *, int)
int libnet_open_raw_sock (int)
int libnet_close_raw_sock (int)
int libnet_select_device (struct sockaddr_in *sin, u_char **device, u_char *ebuf)
int libnet_build_ethernet (u_char *, u_char *, u_short, const u_char *, int, u_char *)
int libnet_build_arp (u_short, u_short, u_char, u_char, u_short, u_char *, u_char *, u_char *, u_char *, const u_char *, int, u_char *)
int libnet_build_tcp (u_short, u_short, u_long, u_long, u_char, u_short, u_short, const u_char *, int, u_char *)
int libnet_build_udp (u_short, u_short, const u_char *, int, u_char *)
int libnet_build_icmp_echo (u_char, u_char, u_short, u_short, const u_char *, int, u_char *)
int libnet_build_icmp_mask (u_char, u_char, u_short, u_short, u_long, const u_char *, int, u_char *)
int libnet_build_icmp_unreach (u_char, u_char, u_short, u_char, u_short, u_short, u_char, u_char, u_long, u_long, const u_char *, int, u_char *)
int libnet_build_icmp_redirect (u_char, u_char, u_long, u_short, u_char, u_short, u_short, u_char, u_char, u_long, u_long, const u_char *, int, u_char *)
int libnet_build_icmp_timeexceed (u_char, u_char, u_short, u_char, u_short, u_short, u_char, u_char, u_long, u_long, const u_char *, int, u_char *)
int libnet_build_icmp_timestamp (u_char, u_char, u_short, u_short, n_time, n_time, n_time, const u_char *, int, u_char *)
int libnet_build_igmp (u_char, u_char, u_long, const u_char *, int, u_char *)
int libnet_build_ip (u_short, u_char, u_short, u_short, u_char, u_char, u_long, u_long, const u_char *, int, u_char *)
int libnet_build_dns (u_short, u_short, u_short, u_short, u_short, u_short, const u_char *, int, u_char *)
int libnet_build_rip (u_char, u_char, u_short, u_short, u_short, u_long, u_long, u_long, u_long, const u_char *, int, u_char *)
int libnet_insert_ipo (struct ipoption *, u_char, u_char *)
int libnet_insert_tcpo (struct tcpoption *, u_char, u_char *)
int libnet_write_ip (int sock, u_char *, int)
int libnet_write_link_layer (struct libnet_link_int *, const u_char *, u_char *, int)
libnet_link_intlibnet_open_link_interface (char *, char *)
int libnet_close_link_interface (struct libnet_link_int *)
char * ll_strerror (int)
u_long libnet_get_ipaddr (struct libnet_link_int *, const u_char *, char *)
ether_addrlibnet_get_hwaddr (struct libnet_link_int *, const u_char *, char *)
int libnet_init_packet (int, u_char **)
int libnet_destroy_packet (u_char **)
int libnet_init_packet_arena (struct libnet_arena **, int, u_short)
u_char * libnet_next_packet_from_arena (struct libnet_arena **, int)
int libnet_destroy_packet_arena (struct libnet_arena **)
void libnet_hex_dump (u_char *, int, int, FILE *)


Function Documentation

int libnet_build_arp u_short  ,
u_short  ,
u_char  ,
u_char  ,
u_short  ,
u_char *  ,
u_char *  ,
u_char *  ,
u_char *  ,
const u_char *  ,
int  ,
u_char * 
 

int libnet_build_dns u_short  ,
u_short  ,
u_short  ,
u_short  ,
u_short  ,
u_short  ,
const u_char *  ,
int  ,
u_char * 
 

int libnet_build_ethernet u_char *  ,
u_char *  ,
u_short  ,
const u_char *  ,
int  ,
u_char * 
 

int libnet_build_icmp_echo u_char  ,
u_char  ,
u_short  ,
u_short  ,
const u_char *  ,
int  ,
u_char * 
 

int libnet_build_icmp_mask u_char  ,
u_char  ,
u_short  ,
u_short  ,
u_long  ,
const u_char *  ,
int  ,
u_char * 
 

int libnet_build_icmp_redirect u_char  ,
u_char  ,
u_long  ,
u_short  ,
u_char  ,
u_short  ,
u_short  ,
u_char  ,
u_char  ,
u_long  ,
u_long  ,
const u_char *  ,
int  ,
u_char * 
 

int libnet_build_icmp_timeexceed u_char  ,
u_char  ,
u_short  ,
u_char  ,
u_short  ,
u_short  ,
u_char  ,
u_char  ,
u_long  ,
u_long  ,
const u_char *  ,
int  ,
u_char * 
 

int libnet_build_icmp_timestamp u_char  ,
u_char  ,
u_short  ,
u_short  ,
n_time  ,
n_time  ,
n_time  ,
const u_char *  ,
int  ,
u_char * 
 

int libnet_build_icmp_unreach u_char  ,
u_char  ,
u_short  ,
u_char  ,
u_short  ,
u_short  ,
u_char  ,
u_char  ,
u_long  ,
u_long  ,
const u_char *  ,
int  ,
u_char * 
 

int libnet_build_igmp u_char  ,
u_char  ,
u_long  ,
const u_char *  ,
int  ,
u_char * 
 

int libnet_build_ip u_short  ,
u_char  ,
u_short  ,
u_short  ,
u_char  ,
u_char  ,
u_long  ,
u_long  ,
const u_char *  ,
int  ,
u_char * 
 

int libnet_build_rip u_char  ,
u_char  ,
u_short  ,
u_short  ,
u_short  ,
u_long  ,
u_long  ,
u_long  ,
u_long  ,
const u_char *  ,
int  ,
u_char * 
 

int libnet_build_tcp u_short  ,
u_short  ,
u_long  ,
u_long  ,
u_char  ,
u_short  ,
u_short  ,
const u_char *  ,
int  ,
u_char * 
 

int libnet_build_udp u_short  ,
u_short  ,
const u_char *  ,
int  ,
u_char * 
 

int libnet_close_link_interface struct libnet_link_int  ) 
 

int libnet_close_raw_sock int   ) 
 

int libnet_destroy_packet u_char **   ) 
 

int libnet_destroy_packet_arena struct libnet_arena **   ) 
 

int libnet_do_checksum u_char *  ,
int  ,
int 
 

void libnet_error int  ,
char *  ,
  ...
 

struct ether_addr* libnet_get_hwaddr struct libnet_link_int ,
const u_char *  ,
char * 
 

u_long libnet_get_ipaddr struct libnet_link_int ,
const u_char *  ,
char * 
 

u_long libnet_get_prand int   ) 
 

void libnet_hex_dump u_char *  ,
int  ,
int  ,
FILE * 
 

u_char* libnet_host_lookup u_long  ,
u_short 
 

void libnet_host_lookup_r u_long  ,
u_short  ,
u_char * 
 

int libnet_in_cksum u_short *  ,
int 
 

int libnet_init_packet int  ,
u_char ** 
 

int libnet_init_packet_arena struct libnet_arena **  ,
int  ,
u_short 
 

int libnet_insert_ipo struct ipoption ,
u_char  ,
u_char * 
 

int libnet_insert_tcpo struct tcpoption ,
u_char  ,
u_char * 
 

u_short libnet_ip_check u_short *  ,
int 
 

u_long libnet_name_resolve u_char *  ,
u_short 
 

u_char* libnet_next_packet_from_arena struct libnet_arena **  ,
int 
 

struct libnet_link_int* libnet_open_link_interface char *  ,
char * 
 

int libnet_open_raw_sock int   ) 
 

int libnet_plist_chain_dump struct libnet_plist_chain  ) 
 

u_char* libnet_plist_chain_dump_string struct libnet_plist_chain  ) 
 

int libnet_plist_chain_free struct libnet_plist_chain  ) 
 

int libnet_plist_chain_new struct libnet_plist_chain **  ,
char * 
 

int libnet_plist_chain_next_pair struct libnet_plist_chain ,
u_short *  bport,
u_short *  eport
 

int libnet_seed_prand  ) 
 

int libnet_select_device struct sockaddr_in *  sin,
u_char **  device,
u_char *  ebuf
 

int libnet_write_ip int  sock,
u_char *  ,
int 
 

int libnet_write_link_layer struct libnet_link_int ,
const u_char *  ,
u_char *  ,
int 
 

char* ll_strerror int   ) 
 


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