Sync with main sources.


git-svn-id: http://sctp-refimpl.googlecode.com/svn/trunk@8446 9df1edf5-d72c-5b5f-11c0-5f5209eb73f7
diff --git a/KERN/nke/sctp_nke/Leopard/netinet/sctp_constants.h b/KERN/nke/sctp_nke/Leopard/netinet/sctp_constants.h
index 355b1fa..3231472 100755
--- a/KERN/nke/sctp_nke/Leopard/netinet/sctp_constants.h
+++ b/KERN/nke/sctp_nke/Leopard/netinet/sctp_constants.h
@@ -32,7 +32,7 @@
 
 #ifdef __FreeBSD__
 #include <sys/cdefs.h>
-__FBSDID("$FreeBSD: head/sys/netinet/sctp_constants.h 243157 2012-11-16 19:39:10Z tuexen $");
+__FBSDID("$FreeBSD: head/sys/netinet/sctp_constants.h 248953 2013-03-31 18:27:46Z tuexen $");
 #endif
 
 #ifndef _NETINET_SCTP_CONSTANTS_H_
@@ -1050,6 +1050,10 @@
      (((uint8_t *)&(a)->s_addr)[2] == 0) && \
      (((uint8_t *)&(a)->s_addr)[3] == 1))
 
+#define IN4_ISLINKLOCAL_ADDRESS(a) \
+    ((((uint8_t *)&(a)->s_addr)[0] == 169) && \
+     (((uint8_t *)&(a)->s_addr)[1] == 254))
+
 #if defined(__Userspace__)
 #if defined(__Userspace_os_Windows)
 #define SCTP_GETTIME_TIMEVAL(x)	getwintimeofday(x)
diff --git a/KERN/nke/sctp_nke/Lion/netinet/sctp_constants.h b/KERN/nke/sctp_nke/Lion/netinet/sctp_constants.h
index 355b1fa..3231472 100755
--- a/KERN/nke/sctp_nke/Lion/netinet/sctp_constants.h
+++ b/KERN/nke/sctp_nke/Lion/netinet/sctp_constants.h
@@ -32,7 +32,7 @@
 
 #ifdef __FreeBSD__
 #include <sys/cdefs.h>
-__FBSDID("$FreeBSD: head/sys/netinet/sctp_constants.h 243157 2012-11-16 19:39:10Z tuexen $");
+__FBSDID("$FreeBSD: head/sys/netinet/sctp_constants.h 248953 2013-03-31 18:27:46Z tuexen $");
 #endif
 
 #ifndef _NETINET_SCTP_CONSTANTS_H_
@@ -1050,6 +1050,10 @@
      (((uint8_t *)&(a)->s_addr)[2] == 0) && \
      (((uint8_t *)&(a)->s_addr)[3] == 1))
 
+#define IN4_ISLINKLOCAL_ADDRESS(a) \
+    ((((uint8_t *)&(a)->s_addr)[0] == 169) && \
+     (((uint8_t *)&(a)->s_addr)[1] == 254))
+
 #if defined(__Userspace__)
 #if defined(__Userspace_os_Windows)
 #define SCTP_GETTIME_TIMEVAL(x)	getwintimeofday(x)
diff --git a/KERN/nke/sctp_nke/MountainLion/netinet/sctp_constants.h b/KERN/nke/sctp_nke/MountainLion/netinet/sctp_constants.h
index 355b1fa..3231472 100755
--- a/KERN/nke/sctp_nke/MountainLion/netinet/sctp_constants.h
+++ b/KERN/nke/sctp_nke/MountainLion/netinet/sctp_constants.h
@@ -32,7 +32,7 @@
 
 #ifdef __FreeBSD__
 #include <sys/cdefs.h>
-__FBSDID("$FreeBSD: head/sys/netinet/sctp_constants.h 243157 2012-11-16 19:39:10Z tuexen $");
+__FBSDID("$FreeBSD: head/sys/netinet/sctp_constants.h 248953 2013-03-31 18:27:46Z tuexen $");
 #endif
 
 #ifndef _NETINET_SCTP_CONSTANTS_H_
@@ -1050,6 +1050,10 @@
      (((uint8_t *)&(a)->s_addr)[2] == 0) && \
      (((uint8_t *)&(a)->s_addr)[3] == 1))
 
+#define IN4_ISLINKLOCAL_ADDRESS(a) \
+    ((((uint8_t *)&(a)->s_addr)[0] == 169) && \
+     (((uint8_t *)&(a)->s_addr)[1] == 254))
+
 #if defined(__Userspace__)
 #if defined(__Userspace_os_Windows)
 #define SCTP_GETTIME_TIMEVAL(x)	getwintimeofday(x)
diff --git a/KERN/nke/sctp_nke/SnowLeopard/netinet/sctp_constants.h b/KERN/nke/sctp_nke/SnowLeopard/netinet/sctp_constants.h
index 355b1fa..3231472 100755
--- a/KERN/nke/sctp_nke/SnowLeopard/netinet/sctp_constants.h
+++ b/KERN/nke/sctp_nke/SnowLeopard/netinet/sctp_constants.h
@@ -32,7 +32,7 @@
 
 #ifdef __FreeBSD__
 #include <sys/cdefs.h>
-__FBSDID("$FreeBSD: head/sys/netinet/sctp_constants.h 243157 2012-11-16 19:39:10Z tuexen $");
+__FBSDID("$FreeBSD: head/sys/netinet/sctp_constants.h 248953 2013-03-31 18:27:46Z tuexen $");
 #endif
 
 #ifndef _NETINET_SCTP_CONSTANTS_H_
@@ -1050,6 +1050,10 @@
      (((uint8_t *)&(a)->s_addr)[2] == 0) && \
      (((uint8_t *)&(a)->s_addr)[3] == 1))
 
+#define IN4_ISLINKLOCAL_ADDRESS(a) \
+    ((((uint8_t *)&(a)->s_addr)[0] == 169) && \
+     (((uint8_t *)&(a)->s_addr)[1] == 254))
+
 #if defined(__Userspace__)
 #if defined(__Userspace_os_Windows)
 #define SCTP_GETTIME_TIMEVAL(x)	getwintimeofday(x)
diff --git a/KERN/usrsctp/usrsctplib/netinet/sctp_constants.h b/KERN/usrsctp/usrsctplib/netinet/sctp_constants.h
index 355b1fa..3231472 100755
--- a/KERN/usrsctp/usrsctplib/netinet/sctp_constants.h
+++ b/KERN/usrsctp/usrsctplib/netinet/sctp_constants.h
@@ -32,7 +32,7 @@
 
 #ifdef __FreeBSD__
 #include <sys/cdefs.h>
-__FBSDID("$FreeBSD: head/sys/netinet/sctp_constants.h 243157 2012-11-16 19:39:10Z tuexen $");
+__FBSDID("$FreeBSD: head/sys/netinet/sctp_constants.h 248953 2013-03-31 18:27:46Z tuexen $");
 #endif
 
 #ifndef _NETINET_SCTP_CONSTANTS_H_
@@ -1050,6 +1050,10 @@
      (((uint8_t *)&(a)->s_addr)[2] == 0) && \
      (((uint8_t *)&(a)->s_addr)[3] == 1))
 
+#define IN4_ISLINKLOCAL_ADDRESS(a) \
+    ((((uint8_t *)&(a)->s_addr)[0] == 169) && \
+     (((uint8_t *)&(a)->s_addr)[1] == 254))
+
 #if defined(__Userspace__)
 #if defined(__Userspace_os_Windows)
 #define SCTP_GETTIME_TIMEVAL(x)	getwintimeofday(x)