/****************************************************************************** * ipraw.h by S/ash (member of RtC) * * contain function prototypes for sending our own IP packets * * RtC : http://www.rtc.fr.st -- email : rtc@fr.st * * RtC Tech : http://www.rtctech.fr.st * * S/ash : sl4sh@ifrance.com * ******************************************************************************/ #ifndef __IPRAW_H__ #define __IPRAW_H__ #define _BSD_SOURCE #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include /* * File ipraw.c */ #ifdef DEBUGGING void HEXDUMP(unsigned, unsigned char*); #endif unsigned short in_chksum(u_short*, int); int tcp_send(int, struct sockaddr_in*, unsigned long, unsigned long, unsigned, unsigned, unsigned char, unsigned long, unsigned long, unsigned, char*, unsigned); int udp_send(int, struct sockaddr_in*, unsigned long, unsigned long, unsigned, unsigned, char*, unsigned); int icmp_send(int, struct sockaddr_in*, unsigned long, unsigned long, u_short, u_short, u_short, u_short, char*, int); struct in_addr resolve(char*); #endif