* updated kwave (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / package / network / iptraf / hotfix.patch
blobe2512276f54135e6e5eac6e1f8b0bc1cd32d124d
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
4 # T2 SDE: package/.../iptraf/compile-fix.patch
5 # Copyright (C) 2005 - 2008 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
14 # version.
15 # --- T2-COPYRIGHT-NOTE-END ---
17 --- iptraf-3.0.1/src/tcptable.h.vanilla 2008-09-04 16:00:30.000000000 +0200
18 +++ iptraf-3.0.1/src/tcptable.h 2008-09-04 16:06:18.000000000 +0200
19 @@ -20,12 +20,16 @@
20 #include <arpa/inet.h>
21 #include <net/if_arp.h>
22 #include <asm/types.h>
23 +#include <net/if.h>
24 +#ifdef _NET_IF_H
25 +#define _LINUX_IF_H
26 +#endif
27 #include <linux/if_packet.h>
28 #include <linux/if_ether.h>
29 #include <linux/netdevice.h>
30 #include <linux/if_fddi.h>
31 #include <linux/if_tr.h>
32 -// #include <net/if.h>
33 +#include <net/if.h>
34 #include <netinet/ip.h>
35 #include <netinet/udp.h>
36 #include "servname.h"
37 --- iptraf-3.0.1/src/othptab.c.vanilla 2008-09-04 15:59:34.000000000 +0200
38 +++ iptraf-3.0.1/src/othptab.c 2008-09-04 16:07:28.000000000 +0200
39 @@ -19,14 +19,10 @@
40 #include <stdlib.h>
41 #include <asm/types.h>
42 #include <sys/socket.h>
43 -#include <linux/if_ether.h>
44 -#include <linux/if_tr.h>
45 -#include <linux/netdevice.h>
46 -#include <linux/if_fddi.h>
47 +#include "options.h"
48 +#include "tcptable.h"
49 #include <winops.h>
50 #include "arphdr.h"
51 -#include "options.h"
52 -#include "tcptable.h"
53 #include "othptab.h"
54 #include "deskman.h"
55 #include "attrs.h"
56 diff -Nur iptraf-3.0.0-orig/src/tr.c iptraf-3.0.0/src/tr.c
57 --- iptraf-3.0.0-orig/src/tr.c 2005-09-13 06:42:54.000000000 +0000
58 +++ iptraf-3.0.0/src/tr.c 2005-12-28 19:07:49.000000000 +0000
59 @@ -8,7 +8,7 @@
61 #include <asm/types.h>
62 #include <linux/if_tr.h>
63 -#include <netinet/in.h>
64 +//#include <netinet/in.h>
66 unsigned int get_tr_ip_offset(unsigned char *pkt)