Update mtr to 0.73 (#3633)
[openwrt/svn-archive/archive.git] / net / mtr / patches / 002-no_split_rej_file.patch
1 diff -urN mtr-0.73/split.c.rej mtr-0.73.new/split.c.rej
2 --- mtr-0.73/split.c.rej 2006-11-18 12:04:44.000000000 +0100
3 +++ mtr-0.73.new/split.c.rej 1970-01-01 01:00:00.000000000 +0100
4 @@ -1,29 +0,0 @@
5 -***************
6 -*** 103,115 ****
7 - name = dns_lookup(addr);
8 - if(name != NULL) {
9 - /* May be we should test name's length */
10 -- sprintf(newLine, "%s %d %d %d %d %d %d", name,
11 - net_loss(at),
12 - net_returned(at), net_xmit(at),
13 - net_best(at) /1000, net_avg(at)/1000,
14 - net_worst(at)/1000);
15 - } else {
16 -- sprintf(newLine, "%s %d %d %d %d %d %d",
17 - strlongip( addr ),
18 - net_loss(at),
19 - net_returned(at), net_xmit(at),
20 ---- 103,115 ----
21 - name = dns_lookup(addr);
22 - if(name != NULL) {
23 - /* May be we should test name's length */
24 -+ snprintf(newLine,sizeof(newLine), "%s %d %d %d %d %d %d", name,
25 - net_loss(at),
26 - net_returned(at), net_xmit(at),
27 - net_best(at) /1000, net_avg(at)/1000,
28 - net_worst(at)/1000);
29 - } else {
30 -+ snprintf(newLine,sizeof(newLine), "%s %d %d %d %d %d %d",
31 - strlongip( addr ),
32 - net_loss(at),
33 - net_returned(at), net_xmit(at),
34 diff -urN mtr-0.73/dns.c.rej mtr-0.73.new/dns.c.rej
35 --- mtr-0.73/dns.c.rej 2006-06-14 07:00:56.000000000 +0200
36 +++ mtr-0.73.new/dns.c.rej 1970-01-01 01:00:00.000000000 +0100
37 @@ -1,17 +0,0 @@
38 -***************
39 -*** 1357,1363 ****
40 - #ifdef ENABLE_IPV6
41 - /* Returns an ip6.arpa character string. */
42 - void addr2ip6arpa( ip_t * ip, char * buf ) {
43 -- char * p = (char *) ip;
44 - char * b = buf;
45 - int i;
46 -
47 ---- 1357,1363 ----
48 - #ifdef ENABLE_IPV6
49 - /* Returns an ip6.arpa character string. */
50 - void addr2ip6arpa( ip_t * ip, char * buf ) {
51 -+ unsigned char * p = (unsigned char *) ip;
52 - char * b = buf;
53 - int i;
54 -