I just try to compile, but i dont know what to do with the header file and msddos.c is the master server crasher. it has the line of code #include "send_udp_fast.h". i dont know what to do with this file and i have tried on linux too, if u cud help that would be good. also, when i DO try to compile, i get over 300 errors.
Edit : here is the errors i get
Code:
send_udp_fast.h:129: error: `buff' undeclared (first use in this function)
send_udp_fast.h:130: error: invalid application of `sizeof' to incomplete type
iphdr'
send_udp_fast.h:131: error: `datapck' undeclared (first use in this function)
send_udp_fast.h:131: error: syntax error before ')' token
send_udp_fast.h:131: error: invalid application of `sizeof' to incomplete type
iphdr'
send_udp_fast.h:131: error: invalid application of `sizeof' to incomplete type
udphdr'
send_udp_fast.h:132: error: `pseudobuff' undeclared (first use in this functio
send_udp_fast.h:136: error: dereferencing pointer to incomplete type
send_udp_fast.h:137: error: dereferencing pointer to incomplete type
send_udp_fast.h:138: error: dereferencing pointer to incomplete type
send_udp_fast.h:139: error: dereferencing pointer to incomplete type
send_udp_fast.h:139: error: invalid application of `sizeof' to incomplete type
iphdr'
send_udp_fast.h:139: error: invalid application of `sizeof' to incomplete type
udphdr'
send_udp_fast.h:139: error: `datalen' undeclared (first use in this function)
send_udp_fast.h:140: error: dereferencing pointer to incomplete type
send_udp_fast.h:141: error: dereferencing pointer to incomplete type
send_udp_fast.h:142: error: dereferencing pointer to incomplete type
send_udp_fast.h:143: error: dereferencing pointer to incomplete type
send_udp_fast.h:143: error: `IPPROTO_UDP' undeclared (first use in this functi
)
send_udp_fast.h:144: error: dereferencing pointer to incomplete type
send_udp_fast.h:145: error: dereferencing pointer to incomplete type
send_udp_fast.h:145: error: `src' undeclared (first use in this function)
send_udp_fast.h:146: error: dereferencing pointer to incomplete type
send_udp_fast.h:149: error: dereferencing pointer to incomplete type
send_udp_fast.h:150: error: dereferencing pointer to incomplete type
send_udp_fast.h:151: error: dereferencing pointer to incomplete type
send_udp_fast.h:152: error: dereferencing pointer to incomplete type
send_udp_fast.h:152: error: invalid application of `sizeof' to incomplete type
udphdr'
send_udp_fast.h:155: error: `data' undeclared (first use in this function)
send_udp_fast.h:158: error: invalid application of `sizeof' to incomplete type
pseudohdr'
send_udp_fast.h:158: error: invalid application of `sizeof' to incomplete type
udphdr'
send_udp_fast.h:160: error: request for member `saddr' in something not a stru
ure or union
send_udp_fast.h:160: error: dereferencing pointer to incomplete type
send_udp_fast.h:161: error: request for member `daddr' in something not a stru
ure or union
send_udp_fast.h:161: error: dereferencing pointer to incomplete type
send_udp_fast.h:162: error: request for member `zero' in something not a struc
re or union
send_udp_fast.h:163: error: request for member `protocol' in something not a s
ucture or union
send_udp_fast.h:164: error: request for member `length' in something not a str
ture or union
send_udp_fast.h:164: error: dereferencing pointer to incomplete type
send_udp_fast.h:166: error: dereferencing pointer to incomplete type
send_udp_fast.h:166: error: `u_short' undeclared (first use in this function)
send_udp_fast.h:166: error: syntax error before ')' token
send_udp_fast.h:170: error: `SOCK_RAW' undeclared (first use in this function)
send_udp_fast.h:170: error: `IPPROTO_RAW' undeclared (first use in this functi
)
send_udp_fast.h:173: error: `num' undeclared (first use in this function)
send_udp_fast.h:174: error: invalid application of `sizeof' to incomplete type
iphdr'
send_udp_fast.h:174: error: invalid application of `sizeof' to incomplete type
udphdr'
send_udp_fast.h: At top level:
send_udp_fast.h:183: error: syntax error before "in_cksum"
send_udp_fast.h:183: error: syntax error before '*' token
send_udp_fast.h: In function `in_cksum':
send_udp_fast.h:185: error: `u_short' undeclared (first use in this function)
send_udp_fast.h:185: error: syntax error before "answer"
send_udp_fast.h:186: error: syntax error before '*' token
send_udp_fast.h:187: error: `len' undeclared (first use in this function)
send_udp_fast.h:190: error: `w' undeclared (first use in this function)
send_udp_fast.h:194: error: `u_char' undeclared (first use in this function)
send_udp_fast.h:194: error: syntax error before ')' token
send_udp_fast.h:194: error: `answer' undeclared (first use in this function)
send_udp_fast.h:194: error: syntax error before ')' token
msddos.c: At top level:
msddos.c:52: error: syntax error before "ip"
msddos.c:53: error: syntax error before "resolv"
msddos.c:53: warning: data definition has no type or storage class
msddos.c:70: error: syntax error before '*' token
msddos.c:71: warning: initialization from incompatible pointer type
msddos.c:72: warning: initialization from incompatible pointer type
msddos.c:73: warning: initialization from incompatible pointer type
msddos.c:74: warning: initialization from incompatible pointer type
msddos.c:75: warning: initialization from incompatible pointer type
msddos.c:76: warning: initialization from incompatible pointer type
msddos.c:77: warning: initialization from incompatible pointer type
msddos.c:78: warning: initialization from incompatible pointer type
msddos.c:80: warning: initialization from incompatible pointer type
msddos.c:80: warning: data definition has no type or storage class
msddos.c:103: error: syntax error before '*' token
msddos.c:103: warning: data definition has no type or storage class
msddos.c:104: error: syntax error before '*' token
msddos.c:104: warning: data definition has no type or storage class
msddos.c: In function `main':
msddos.c:117: error: `u_int' undeclared (first use in this function)
msddos.c:117: error: syntax error before "src_ip"
msddos.c:119: error: `u_short' undeclared (first use in this function)
msddos.c:154: error: `sport' undeclared (first use in this function)
msddos.c:159: error: `delay' undeclared (first use in this function)
msddos.c:168: error: `src_ip' undeclared (first use in this function)
msddos.c:179: error: `u_char' undeclared (first use in this function)
msddos.c:213: error: dereferencing pointer to incomplete type
msddos.c: At top level:
msddos.c:272: error: syntax error before "ip"
msddos.c: In function `q3test':
msddos.c:276: error: `u_int' undeclared (first use in this function)
msddos.c:276: error: syntax error before "total"
msddos.c:277: error: storage size of 'peer' isn't known
msddos.c:278: error: storage size of 'timeout' isn't known
msddos.c:279: error: `fd_set' undeclared (first use in this function)
msddos.c:279: error: syntax error before "fd_read"
msddos.c:280: error: `u_char' undeclared (first use in this function)
msddos.c:283: error: `ip' undeclared (first use in this function)
msddos.c:284: error: `port' undeclared (first use in this function)
msddos.c:285: error: `AF_INET' undeclared (first use in this function)
msddos.c:290: error: `SOCK_DGRAM' undeclared (first use in this function)
msddos.c:290: error: `IPPROTO_UDP' undeclared (first use in this function)
msddos.c:296: error: `fd_read' undeclared (first use in this function)
msddos.c:303: error: `buff' undeclared (first use in this function)
msddos.c:306: error: `total' undeclared (first use in this function)
msddos.c: At top level:
msddos.c:317: error: syntax error before "resolv"
msddos.c: In function `resolv':
msddos.c:322: error: `INADDR_NONE' undeclared (first use in this function)
msddos.c:323: warning: assignment makes pointer from integer without a cast
msddos.c:328: error: `u_int' undeclared (first use in this function)
msddos.c:328: error: syntax error before ')' token
msddos.c:328: error: dereferencing pointer to incomplete type
C:\MinGW\bin>mingw32-gcc -o msddos.exe msddos.c
msddos.c:17:19: netdb.h: No such file or directory
In file included from msddos.c:18:
send_udp_fast.h:54:24: sys/socket.h: No such file or directory
send_udp_fast.h:56:23: arpa/inet.h: No such file or directory
send_udp_fast.h:57:24: netinet/ip.h: No such file or directory
send_udp_fast.h:58:25: netinet/udp.h: No such file or directory
In file included from msddos.c:18:
send_udp_fast.h:73: error: syntax error before "src"
send_udp_fast.h:80: error: syntax error before "in_cksum"
send_udp_fast.h:80: error: syntax error before '*' token
send_udp_fast.h:80: warning: data definition has no type or storage class
send_udp_fast.h:85: error: syntax error before "u_int32_t"
send_udp_fast.h:85: warning: no semicolon at end of struct or union
send_udp_fast.h:86: warning: data definition has no type or storage class
send_udp_fast.h:87: error: syntax error before "zero"
send_udp_fast.h:87: warning: data definition has no type or storage class
send_udp_fast.h:88: error: syntax error before "protocol"
send_udp_fast.h:88: warning: data definition has no type or storage class
send_udp_fast.h:89: error: syntax error before "length"
send_udp_fast.h:89: warning: data definition has no type or storage class
send_udp_fast.h:90: warning: data definition has no type or storage class
send_udp_fast.h:102: error: syntax error before "src"
send_udp_fast.h: In function `send_udp_fast':
send_udp_fast.h:110: error: `u_char' undeclared (first use in this function)
send_udp_fast.h:110: error: (Each undeclared identifier is reported only once
send_udp_fast.h:110: error: for each function it appears in.)
send_udp_fast.h:110: error: syntax error before "buff"
send_udp_fast.h:113: error: storage size of 'peer' isn't known
send_udp_fast.h:122: error: `sport' undeclared (first use in this function)
send_udp_fast.h:123: error: `dport' undeclared (first use in this function)
send_udp_fast.h:125: error: `dst' undeclared (first use in this function)
send_udp_fast.h:127: error: `AF_INET' undeclared (first use in this function)
send_udp_fast.h:129: error: `buff' undeclared (first use in this function)
send_udp_fast.h:130: error: invalid application of `sizeof' to incomplete type
iphdr'
send_udp_fast.h:131: error: `datapck' undeclared (first use in this function)
send_udp_fast.h:131: error: syntax error before ')' token
send_udp_fast.h:131: error: invalid application of `sizeof' to incomplete type
iphdr'
send_udp_fast.h:131: error: invalid application of `sizeof' to incomplete type
udphdr'
send_udp_fast.h:132: error: `pseudobuff' undeclared (first use in this functio
send_udp_fast.h:136: error: dereferencing pointer to incomplete type
send_udp_fast.h:137: error: dereferencing pointer to incomplete type
send_udp_fast.h:138: error: dereferencing pointer to incomplete type
send_udp_fast.h:139: error: dereferencing pointer to incomplete type
send_udp_fast.h:139: error: invalid application of `sizeof' to incomplete type
iphdr'
send_udp_fast.h:139: error: invalid application of `sizeof' to incomplete type
udphdr'
send_udp_fast.h:139: error: `datalen' undeclared (first use in this function)
send_udp_fast.h:140: error: dereferencing pointer to incomplete type
send_udp_fast.h:141: error: dereferencing pointer to incomplete type
send_udp_fast.h:142: error: dereferencing pointer to incomplete type
send_udp_fast.h:143: error: dereferencing pointer to incomplete type
send_udp_fast.h:143: error: `IPPROTO_UDP' undeclared (first use in this functi
)
send_udp_fast.h:144: error: dereferencing pointer to incomplete type
send_udp_fast.h:145: error: dereferencing pointer to incomplete type
send_udp_fast.h:145: error: `src' undeclared (first use in this function)
send_udp_fast.h:146: error: dereferencing pointer to incomplete type
send_udp_fast.h:149: error: dereferencing pointer to incomplete type
send_udp_fast.h:150: error: dereferencing pointer to incomplete type
send_udp_fast.h:151: error: dereferencing pointer to incomplete type
send_udp_fast.h:152: error: dereferencing pointer to incomplete type
send_udp_fast.h:152: error: invalid application of `sizeof' to incomplete type
udphdr'
send_udp_fast.h:155: error: `data' undeclared (first use in this function)
send_udp_fast.h:158: error: invalid application of `sizeof' to incomplete type
pseudohdr'
send_udp_fast.h:158: error: invalid application of `sizeof' to incomplete type
udphdr'
send_udp_fast.h:160: error: request for member `saddr' in something not a stru
ure or union
send_udp_fast.h:160: error: dereferencing pointer to incomplete type
send_udp_fast.h:161: error: request for member `daddr' in something not a stru
ure or union
send_udp_fast.h:161: error: dereferencing pointer to incomplete type
send_udp_fast.h:162: error: request for member `zero' in something not a struc
re or union
send_udp_fast.h:163: error: request for member `protocol' in something not a s
ucture or union
send_udp_fast.h:164: error: request for member `length' in something not a str
ture or union
send_udp_fast.h:164: error: dereferencing pointer to incomplete type
send_udp_fast.h:166: error: dereferencing pointer to incomplete type
send_udp_fast.h:166: error: `u_short' undeclared (first use in this function)
send_udp_fast.h:166: error: syntax error before ')' token
send_udp_fast.h:170: error: `SOCK_RAW' undeclared (first use in this function)
send_udp_fast.h:170: error: `IPPROTO_RAW' undeclared (first use in this functi
)
send_udp_fast.h:173: error: `num' undeclared (first use in this function)
send_udp_fast.h:174: error: invalid application of `sizeof' to incomplete type
iphdr'
send_udp_fast.h:174: error: invalid application of `sizeof' to incomplete type
udphdr'
send_udp_fast.h: At top level:
send_udp_fast.h:183: error: syntax error before "in_cksum"
send_udp_fast.h:183: error: syntax error before '*' token
send_udp_fast.h: In function `in_cksum':
send_udp_fast.h:185: error: `u_short' undeclared (first use in this function)
send_udp_fast.h:185: error: syntax error before "answer"
send_udp_fast.h:186: error: syntax error before '*' token
send_udp_fast.h:187: error: `len' undeclared (first use in this function)
send_udp_fast.h:190: error: `w' undeclared (first use in this function)
send_udp_fast.h:194: error: `u_char' undeclared (first use in this function)
send_udp_fast.h:194: error: syntax error before ')' token
send_udp_fast.h:194: error: `answer' undeclared (first use in this function)
send_udp_fast.h:194: error: syntax error before ')' token
msddos.c: At top level:
msddos.c:52: error: syntax error before "ip"
msddos.c:53: error: syntax error before "resolv"
msddos.c:53: warning: data definition has no type or storage class
msddos.c:70: error: syntax error before '*' token
msddos.c:71: warning: initialization from incompatible pointer type
msddos.c:72: warning: initialization from incompatible pointer type
msddos.c:73: warning: initialization from incompatible pointer type
msddos.c:74: warning: initialization from incompatible pointer type
msddos.c:75: warning: initialization from incompatible pointer type
msddos.c:76: warning: initialization from incompatible pointer type
msddos.c:77: warning: initialization from incompatible pointer type
msddos.c:78: warning: initialization from incompatible pointer type
msddos.c:80: warning: initialization from incompatible pointer type
msddos.c:80: warning: data definition has no type or storage class
msddos.c:103: error: syntax error before '*' token
msddos.c:103: warning: data definition has no type or storage class
msddos.c:104: error: syntax error before '*' token
msddos.c:104: warning: data definition has no type or storage class
msddos.c: In function `main':
msddos.c:117: error: `u_int' undeclared (first use in this function)
msddos.c:117: error: syntax error before "src_ip"
msddos.c:119: error: `u_short' undeclared (first use in this function)
msddos.c:154: error: `sport' undeclared (first use in this function)
msddos.c:159: error: `delay' undeclared (first use in this function)
msddos.c:168: error: `src_ip' undeclared (first use in this function)
msddos.c:179: error: `u_char' undeclared (first use in this function)
msddos.c:213: error: dereferencing pointer to incomplete type
msddos.c: At top level:
msddos.c:272: error: syntax error before "ip"
msddos.c: In function `q3test':
msddos.c:276: error: `u_int' undeclared (first use in this function)
msddos.c:276: error: syntax error before "total"
msddos.c:277: error: storage size of 'peer' isn't known
msddos.c:278: error: storage size of 'timeout' isn't known
msddos.c:279: error: `fd_set' undeclared (first use in this function)
msddos.c:279: error: syntax error before "fd_read"
msddos.c:280: error: `u_char' undeclared (first use in this function)
msddos.c:283: error: `ip' undeclared (first use in this function)
msddos.c:284: error: `port' undeclared (first use in this function)
msddos.c:285: error: `AF_INET' undeclared (first use in this function)
msddos.c:290: error: `SOCK_DGRAM' undeclared (first use in this function)
msddos.c:290: error: `IPPROTO_UDP' undeclared (first use in this function)
msddos.c:296: error: `fd_read' undeclared (first use in this function)
msddos.c:303: error: `buff' undeclared (first use in this function)
msddos.c:306: error: `total' undeclared (first use in this function)
msddos.c: At top level:
msddos.c:317: error: syntax error before "resolv"
msddos.c: In function `resolv':
msddos.c:322: error: `INADDR_NONE' undeclared (first use in this function)
msddos.c:323: warning: assignment makes pointer from integer without a cast
msddos.c:328: error: `u_int' undeclared (first use in this function)
msddos.c:328: error: syntax error before ')' token
msddos.c:328: error: dereferencing pointer to incomplete type