OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
2.6 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../iptraf/compile-fix.patch
  5. # Copyright (C) 2005 - 2006 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. # --- SDE-COPYRIGHT-NOTE-END ---
  16. diff -Nur iptraf-3.0.0-orig/src/othptab.c iptraf-3.0.0/src/othptab.c
  17. --- iptraf-3.0.0-orig/src/othptab.c 2005-09-13 06:42:54.000000000 +0000
  18. +++ iptraf-3.0.0/src/othptab.c 2005-12-28 19:01:08.000000000 +0000
  19. @@ -17,13 +17,14 @@
  20. ***/
  21. #include <asm/types.h>
  22. -#include <linux/if_ether.h>
  23. -#include <linux/if_tr.h>
  24. -#include <linux/if_fddi.h>
  25. +#include "tcptable.h"
  26. +//#include <linux/if_ether.h>
  27. +//#include <linux/if_tr.h>
  28. +//#include <linux/if_fddi.h>
  29. #include <winops.h>
  30. #include "arphdr.h"
  31. #include "options.h"
  32. -#include "tcptable.h"
  33. +//#include "tcptable.h"
  34. #include "othptab.h"
  35. #include "deskman.h"
  36. #include "attrs.h"
  37. diff -Nur iptraf-3.0.0-orig/src/packet.c iptraf-3.0.0/src/packet.c
  38. --- iptraf-3.0.0-orig/src/packet.c 2005-09-13 06:42:54.000000000 +0000
  39. +++ iptraf-3.0.0/src/packet.c 2005-12-28 19:02:18.000000000 +0000
  40. @@ -32,6 +32,9 @@
  41. #include <sys/time.h>
  42. #include <net/if_arp.h>
  43. #include <net/if.h>
  44. +#ifdef _NET_IF_H
  45. +#define _LINUX_IF_H
  46. +#endif
  47. #include <sys/ioctl.h>
  48. #include <linux/if_packet.h>
  49. #include <linux/if_ether.h>
  50. diff -Nur iptraf-3.0.0-orig/src/tcptable.h iptraf-3.0.0/src/tcptable.h
  51. --- iptraf-3.0.0-orig/src/tcptable.h 2005-09-13 06:42:54.000000000 +0000
  52. +++ iptraf-3.0.0/src/tcptable.h 2005-12-28 18:59:23.000000000 +0000
  53. @@ -20,11 +20,15 @@
  54. #include <arpa/inet.h>
  55. #include <net/if_arp.h>
  56. #include <asm/types.h>
  57. +#include <net/if.h>
  58. +#ifdef _NET_IF_H
  59. +#define _LINUX_IF_H
  60. +#endif
  61. #include <linux/if_packet.h>
  62. #include <linux/if_ether.h>
  63. #include <linux/if_fddi.h>
  64. #include <linux/if_tr.h>
  65. -#include <net/if.h>
  66. +//#include <net/if.h>
  67. #include <netinet/ip.h>
  68. #include <netinet/udp.h>
  69. #include "servname.h"
  70. diff -Nur iptraf-3.0.0-orig/src/tr.c iptraf-3.0.0/src/tr.c
  71. --- iptraf-3.0.0-orig/src/tr.c 2005-09-13 06:42:54.000000000 +0000
  72. +++ iptraf-3.0.0/src/tr.c 2005-12-28 19:07:49.000000000 +0000
  73. @@ -8,7 +8,7 @@
  74. #include <asm/types.h>
  75. #include <linux/if_tr.h>
  76. -#include <netinet/in.h>
  77. +//#include <netinet/in.h>
  78. unsigned int get_tr_ip_offset(unsigned char *pkt)
  79. {