File: diff_files

package info (click to toggle)
paris-traceroute 0.92-dev-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 4,188 kB
  • ctags: 1,196
  • sloc: sh: 8,915; cpp: 5,740; makefile: 319; ansic: 2
file content (67 lines) | stat: -rw-r--r-- 1,733 bytes parent folder | download | duplicates (2)
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
57
58
59
60
61
62
63
64
65
66
67
11,12d10
< #include <pthread.h>
< 
19c17
< #define MT_TRACERT		6
---
> #define EXHAUSTIVE_TRACERT		6
21a20
>   
24c23
<     log(FATAL, "You must be root to run this program");
---
>     //log(FATAL, "You must be root to run this program");
27a27,28
>   //printf("WARNING !! uncomment switch algo AND if algo scout !!\n");
>   
37c38
<   if (strncmp(opts->algo, "hopbyhop", 20) == 0) {
---
>   if (strncmp(opts->algo, "hopbyhop", strlen(opts->algo)) == 0) {
39c40
<   } else if (strncmp(opts->algo, "packetbypacket", 20) == 0) {
---
>   } else if (strncmp(opts->algo, "packetbypacket", strlen(opts->algo)) == 0) {
41c42
<   } else if (strncmp(opts->algo, "test", 20) == 0) {
---
>   } else if (strncmp(opts->algo, "test", strlen(opts->algo)) == 0) {
43c44
<   } else if (strncmp(opts->algo, "concurrent", 20) == 0) {
---
>   } else if (strncmp(opts->algo, "concurrent", strlen(opts->algo)) == 0) {
45c46
<   } else if (strncmp(opts->algo, "scout", 20) == 0) {
---
>   } else if (strncmp(opts->algo, "scout", strlen(opts->algo)) == 0) {
49a51,52
>   } else if (strncmp(opts->algo, "exhaustive", strlen(opts->algo)) == 0) {
>     algo = EXHAUSTIVE_TRACERT;
61a65,67
>     case EXHAUSTIVE_TRACERT:
>       traceroute = new ExhaustiveTracert(opts);
>       break;
76,77c82,83
< 	if (algo == 
< 
---
>   //traceroute->getHopInfo(0, 0);
>   
117,118c123,129
<   Output::text(stdout, traceroute, opts);
< 
---
>   //if (algo != EXHAUSTIVE_TRACERT)
>     Output::text(stdout, traceroute, opts);
>   //else
>   //  printf("Output disabled for ExhaustiveTracert\n");
>   
>   log(INFO, "output done");
>   
120a132
>   log(INFO, "deleted icmp_server");
122a135
>   log(INFO, "deleted traceroute");
124a138,139
>   log(INFO, "exiting...");
>