1 Common subdirectories: sendip-2.5/contrib and sendip-2.5-a/contrib
2 diff -up sendip-2.5/ipv4.c sendip-2.5-a/ipv4.c
3 --- sendip-2.5/ipv4.c 2003-04-21 21:23:22.000000000 +0800
4 +++ sendip-2.5-a/ipv4.c 2009-02-11 09:16:13.000000000 +0800
5 @@ -204,7 +204,7 @@ bool do_opt(char *opt, char *arg, sendip
6 if(!strcmp(opt+2, "num")) {
7 /* Other options (auto legnth) */
8 u_int8_t cp, cls, num, len;
9 - u_int8_t *data = malloc(strlen(arg)+2);
10 + char *data = malloc(strlen(arg)+2);
12 fprintf(stderr,"Out of memory!\n");
14 @@ -214,7 +214,7 @@ bool do_opt(char *opt, char *arg, sendip
18 - addoption(cp,cls,num,len+1,data+1,pack);
19 + addoption(cp,cls,num,len+1,(u_int8_t*)(data+1),pack);
21 } else if(!strcmp(opt+2, "eol")) {
23 @@ -226,7 +226,7 @@ bool do_opt(char *opt, char *arg, sendip
25 * Format is the same as for loose source route
27 - char *data = strdup(arg);
28 + char *data = strdup(arg);
31 fprintf(stderr,"Out of memory!\n");
32 @@ -237,7 +237,7 @@ bool do_opt(char *opt, char *arg, sendip
36 - addoption(0,0,7,len+2,data,pack);
37 + addoption(0,0,7,len+2,(u_int8_t*)data,pack);
40 } else if(!strcmp(opt+2, "ts")) {
41 @@ -352,7 +352,7 @@ bool do_opt(char *opt, char *arg, sendip
45 - addoption(0,2,4,data_out-data+2,data,pack);
46 + addoption(0,2,4,data_out-data+2,(u_int8_t*)data,pack);
48 /* End of timestamp parsing */
50 @@ -377,7 +377,7 @@ bool do_opt(char *opt, char *arg, sendip
54 - addoption(1,0,3,len+2,data,pack);
55 + addoption(1,0,3,len+2,(u_int8_t*)data,pack);
58 } else if(!strcmp(opt+2, "sid")) {
59 @@ -399,7 +399,7 @@ bool do_opt(char *opt, char *arg, sendip
63 - addoption(1,0,9,len+2,data,pack);
64 + addoption(1,0,9,len+2,(u_int8_t*)data,pack);
68 Only in sendip-2.5-a: sendip.1
69 Only in sendip-2.5-a: sendip.spec
70 diff -up sendip-2.5/tcp.c sendip-2.5-a/tcp.c
71 --- sendip-2.5/tcp.c 2003-06-11 04:15:43.000000000 +0800
72 +++ sendip-2.5-a/tcp.c 2009-02-11 09:18:06.000000000 +0800
73 @@ -204,8 +204,8 @@ bool do_opt(char *opt, char *arg, sendip
74 fprintf(stderr,"Out of memory!\n");
77 - sprintf(data,"0x%s",arg);
78 - len = compact_string(data);
79 + sprintf((char*)data,"0x%s",arg);
80 + len = compact_string((char*)data);
82 addoption(*data,1,NULL,pack);
84 @@ -230,7 +230,7 @@ bool do_opt(char *opt, char *arg, sendip
85 addoption(4,2,NULL,pack);
86 } else if (!strcmp(opt+2, "sack")) {
87 /* Selective Acknowledge rfc1323 */
88 - unsigned char *next;