forked from autotest/autotest-client-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
isic-gcc41-fix.patch
56 lines (47 loc) · 2.11 KB
/
isic-gcc41-fix.patch
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
51
52
53
54
55
56
diff -uprN isic-old/icmpsic.c isic-new/icmpsic.c
--- isic-old/icmpsic.c 2004-11-06 21:11:11.000000000 +0100
+++ isic-new/icmpsic.c 2006-05-02 16:43:42.000000000 +0200
@@ -265,7 +265,8 @@ main(int argc, char **argv)
payload = (short int *)((u_char *) icmp + 4);
for(cx = 0; cx <= (payload_s >> 1); cx+=1)
- (u_short) payload[cx] = rand() & 0xffff;
+// (u_short) payload[cx] = rand() & 0xffff;
+ payload[cx] = rand() & 0xffff;
if ( rand() <= (RAND_MAX * ICMPCksm) )
diff -uprN isic-old/isic.c isic-new/isic.c
--- isic-old/isic.c 2004-11-06 21:11:14.000000000 +0100
+++ isic-new/isic.c 2006-05-02 16:39:51.000000000 +0200
@@ -229,8 +229,11 @@ main(int argc, char **argv)
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;
+/* (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 -uprN isic-old/tcpsic.c isic-new/tcpsic.c
--- isic-old/tcpsic.c 2004-11-06 21:11:16.000000000 +0100
+++ isic-new/tcpsic.c 2006-05-02 16:41:31.000000000 +0200
@@ -317,7 +317,8 @@ main(int argc, char **argv)
payload = (short int *)((u_char *) tcp + 20);
for(cx = 0; cx <= (payload_s >> 1); cx+=1)
- (u_int16_t) payload[cx] = rand() & 0xffff;
+// (u_int16_t) payload[cx] = rand() & 0xffff;
+ payload[cx] = rand() & 0xffff;
if ( rand() <= (RAND_MAX * TCPCksm) )
libnet_do_checksum(l, (u_int8_t *)buf, IPPROTO_TCP, (tcp->th_off << 2)
diff -uprN isic-old/udpsic.c isic-new/udpsic.c
--- isic-old/udpsic.c 2004-11-06 21:11:20.000000000 +0100
+++ isic-new/udpsic.c 2006-05-02 16:42:55.000000000 +0200
@@ -292,7 +292,8 @@ main(int argc, char **argv)
payload = (short int *)((u_char *) udp + UDP_H);
for(cx = 0; cx <= (payload_s >> 1); cx+=1)
- (u_int16_t) payload[cx] = rand() & 0xffff;
+// (u_int16_t) payload[cx] = rand() & 0xffff;
+ payload[cx] = rand() & 0xffff;
if ( printout ) {
printf("%s,%i ->",