summaryrefslogtreecommitdiff
path: root/net/netdude/files/patch-protocols-icmp::nd_icmp.h
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2002-11-24 09:52:50 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2002-11-24 09:52:50 +0000
commit95984d4c265dfb5b770b261882d3d08f1cfc3420 (patch)
tree5e3322a0dc9e51db9d59784cd34d1b1685c5ea26 /net/netdude/files/patch-protocols-icmp::nd_icmp.h
parentmake graphics/tosvcd compile on -current again (diff)
Make net/netdude compiling on -current again.
PR: ports/45538 Submitted by: Paul Everlund <tdv94ped@cs.umu.se>
Notes
Notes: svn path=/head/; revision=70980
Diffstat (limited to 'net/netdude/files/patch-protocols-icmp::nd_icmp.h')
-rw-r--r--net/netdude/files/patch-protocols-icmp::nd_icmp.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/net/netdude/files/patch-protocols-icmp::nd_icmp.h b/net/netdude/files/patch-protocols-icmp::nd_icmp.h
new file mode 100644
index 000000000000..5bd94fbb41ca
--- /dev/null
+++ b/net/netdude/files/patch-protocols-icmp::nd_icmp.h
@@ -0,0 +1,49 @@
+--- protocols/icmp/nd_icmp.h.orig Sun Oct 13 12:45:27 2002
++++ protocols/icmp/nd_icmp.h Sun Oct 13 12:45:40 2002
+@@ -30,8 +30,46 @@
+ #include <netdude/nd_types.h>
+
+ #include <netinet/in.h>
++#include <netinet/ip.h>
+ #include <netinet/ip_icmp.h>
+
++#ifdef __FreeBSD__
++#define ICMP_DEST_UNREACH ICMP_UNREACH
++#define ICMP_SOURCE_QUENCH ICMP_SOURCEQUENCH
++#define ICMP_TIME_EXCEEDED ICMP_TIMXCEED
++#define ICMP_PARAMETERPROB ICMP_PARAMPROB
++#define ICMP_TIMESTAMP ICMP_TSTAMP
++#define ICMP_TIMESTAMPREPLY ICMP_TSTAMPREPLY
++#define ICMP_INFO_REQUEST ICMP_IREQ
++#define ICMP_INFO_REPLY ICMP_IREQREPLY
++#define ICMP_ADDRESS ICMP_MASKREQ
++#define ICMP_ADDRESSREPLY ICMP_MASKREPLY
++
++#define ICMP_NET_UNREACH ICMP_UNREACH_NET
++#define ICMP_HOST_UNREACH ICMP_UNREACH_HOST
++#define ICMP_PROT_UNREACH ICMP_UNREACH_PROTOCOL
++#define ICMP_PORT_UNREACH ICMP_UNREACH_PORT
++#define ICMP_FRAG_NEEDED ICMP_UNREACH_NEEDFRAG
++#define ICMP_SR_FAILED ICMP_UNREACH_SRCFAIL
++#define ICMP_NET_UNKNOWN ICMP_UNREACH_NET_UNKNOWN
++#define ICMP_HOST_UNKNOWN ICMP_UNREACH_HOST_UNKNOWN
++#define ICMP_HOST_ISOLATED ICMP_UNREACH_ISOLATED
++#define ICMP_NET_ANO ICMP_UNREACH_NET_PROHIB
++#define ICMP_HOST_ANO ICMP_UNREACH_HOST_PROHIB
++#define ICMP_NET_UNR_TOS ICMP_UNREACH_TOSNET
++#define ICMP_HOST_UNR_TOS ICMP_UNREACH_TOSHOST
++#define ICMP_PKT_FILTERED ICMP_UNREACH_FILTER_PROHIB
++#define ICMP_PREC_VIOLATION ICMP_UNREACH_HOST_PRECEDENCE
++#define ICMP_PREC_CUTOFF ICMP_UNREACH_PRECEDENCE_CUTOFF
++
++#define ICMP_REDIR_NET ICMP_REDIRECT_NET
++#define ICMP_REDIR_HOST ICMP_REDIRECT_HOST
++#define ICMP_REDIR_NETTOS ICMP_REDIRECT_TOSNET
++#define ICMP_REDIR_HOSTTOS ICMP_REDIRECT_TOSHOST
++
++#define ICMP_EXC_TTL ICMP_TIMXCEED_INTRANS
++#define ICMP_EXC_FRAGTIME ICMP_TIMXCEED_REASS
++#endif
+
+ /* ICMP packet structure -- using our own for the funky stuff ... */
+