summaryrefslogtreecommitdiff
blob: a2b9087650bd18ed7ae8775546d08dc700b7a48d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
diff -urN ../tmp-orig/isic-0.05/icmpsic.c ./icmpsic.c
--- ../tmp-orig/isic-0.05/icmpsic.c	2000-01-25 18:35:25.000000000 +0100
+++ ./icmpsic.c	2004-12-20 14:29:04.714661648 +0100
@@ -253,7 +253,7 @@
 
 		payload = (short int *)((u_char *) icmp + 4);
 		for(cx = 0; cx <= (payload_s >> 1); cx+=1)
-				(u_short) payload[cx] = rand() & 0xffff;
+				payload[cx] = rand() & 0xffff;
 
 
 		if ( rand() <= (RAND_MAX * ICMPCksm) )
diff -urN ../tmp-orig/isic-0.05/isic.c ./isic.c
--- ../tmp-orig/isic-0.05/isic.c	2000-01-30 22:55:25.000000000 +0100
+++ ./isic.c	2004-12-20 14:28:13.952378688 +0100
@@ -232,8 +232,8 @@
 		
 		payload = (short int *)(buf + IP_H);
 		for(cx = 0; cx <= (payload_s >> 1); cx+=1)
-				(u_int16_t) payload[cx] = rand() & 0xffff;
-		(u_int16_t) payload[payload_s] = rand() & 0xffff;
+				payload[cx] = rand() & 0xffff;
+		payload[payload_s] = rand() & 0xffff;
 		
 		if ( printout ) {
 			printf("%s ->",
diff -urN ../tmp-orig/isic-0.05/tcpsic.c ./tcpsic.c
--- ../tmp-orig/isic-0.05/tcpsic.c	2000-01-29 20:04:13.000000000 +0100
+++ ./tcpsic.c	2004-12-20 14:28:36.223992888 +0100
@@ -304,7 +304,7 @@
 
 		payload = (short int *)((u_char *) tcp + 20);
 		for(cx = 0; cx <= (payload_s >> 1); cx+=1)
-				(u_int16_t) payload[cx] = rand() & 0xffff;
+				payload[cx] = rand() & 0xffff;
 
 		if ( rand() <= (RAND_MAX * TCPCksm) )
 			libnet_do_checksum(buf, IPPROTO_TCP, (tcp->th_off << 2)
diff -urN ../tmp-orig/isic-0.05/udpsic.c ./udpsic.c
--- ../tmp-orig/isic-0.05/udpsic.c	2000-01-29 20:04:14.000000000 +0100
+++ ./udpsic.c	2004-12-20 14:28:51.290702400 +0100
@@ -279,7 +279,7 @@
 
 		payload = (short int *)((u_char *) udp + UDP_H);
 		for(cx = 0; cx <= (payload_s >> 1); cx+=1)
-				(u_int16_t) payload[cx] = rand() & 0xffff;
+				payload[cx] = rand() & 0xffff;
 
 		if ( printout ) {
 			printf("%s,%i ->",