|
| static int | in_cksum (u_short *p, int n) |
| static unsigned long | maketime () |
| static struct timeval | timeval (unsigned long val) |
| static unsigned long | compute_rtt (unsigned long then) |
| static int | packetdead (unsigned long then) |
| static int | rawsocket (int family) |
| | Opens and returns a raw socket.
|
| static int | openbpf (struct in_addr dst, struct in_addr *src, int magic) |
| | Opens a packet filter, grabs packets from dst to port magic.
|
| static int | v6_openbpf (struct in6_addr *dst, struct in6_addr *src, int magic) |
| static struct list * | get_packet (struct list *l, unsigned short dport) |
| static struct list * | add_packet (struct list *l, unsigned short dport, unsigned long ack) |
| | If no packet with dport is in list, prepends a "packet" to the.
|
| static struct list * | rm_packet (struct list *l, unsigned short dport) |
| static struct list * | rm_dead_packets (struct list *l, int *retry) |
| static struct tcphdr * | extracttcp (char *pkt, unsigned int len) |
| static struct tcphdr * | v6_extracttcp (char *pkt) |
| static unsigned long | extractack (char *pkt, int len, int family) |
| static unsigned short | extractsport (char *pkt, int len, int family) |
| static int | issynack (char *pkt, int len, int family) |
| static char * | mktcp (struct in_addr src, int sport, struct in_addr dst, int dport, unsigned long th_ack, unsigned char flag) |
| static char * | mktcpv6 (int sport, int dport, unsigned long th_ack, unsigned char flag) |
| static struct list * | sendpacket (int soc, int bpf, int skip, struct in_addr dst, struct in_addr src, int dport, int magic, struct list *packets, unsigned long *rtt, int sniff, struct script_infos *env) |
| static struct list * | v6_sendpacket (int soc, int bpf, int skip, struct in6_addr *dst, int dport, int magic, struct list *packets, unsigned long *rtt, int sniff, struct script_infos *env) |
| static int | scan (struct script_infos *env, char *portrange, struct in6_addr *dst6, unsigned long rtt) |
| tree_cell * | plugin_run_synscan (lex_ctxt *lexic) |