aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/sctp_constants.h
diff options
context:
space:
mode:
authorMichael Tuexen <tuexen@FreeBSD.org>2016-02-11 22:29:39 +0000
committerMichael Tuexen <tuexen@FreeBSD.org>2016-02-11 22:29:39 +0000
commite51963a7bb99543a4da1b579f861ad89b38bde3c (patch)
treed594d0b51014af3c89793ca0de06007a882254f8 /sys/netinet/sctp_constants.h
parentb35d45aadfb15e67ae5ea06ca13d445bd0b66a7c (diff)
downloadsrc-e51963a7bb99543a4da1b579f861ad89b38bde3c.tar.gz
src-e51963a7bb99543a4da1b579f861ad89b38bde3c.zip
Loopback addresses are 127.0.0.0/8, not 127.0.0.1/32.
MFC after: 1 week
Notes
Notes: svn path=/head/; revision=295549
Diffstat (limited to 'sys/netinet/sctp_constants.h')
-rw-r--r--sys/netinet/sctp_constants.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/netinet/sctp_constants.h b/sys/netinet/sctp_constants.h
index a26bc5b5c333..5837f6f5666a 100644
--- a/sys/netinet/sctp_constants.h
+++ b/sys/netinet/sctp_constants.h
@@ -978,10 +978,7 @@ __FBSDID("$FreeBSD$");
(((uint8_t *)&(a)->s_addr)[1] == 168)))
#define IN4_ISLOOPBACK_ADDRESS(a) \
- ((((uint8_t *)&(a)->s_addr)[0] == 127) && \
- (((uint8_t *)&(a)->s_addr)[1] == 0) && \
- (((uint8_t *)&(a)->s_addr)[2] == 0) && \
- (((uint8_t *)&(a)->s_addr)[3] == 1))
+ (((uint8_t *)&(a)->s_addr)[0] == 127)
#define IN4_ISLINKLOCAL_ADDRESS(a) \
((((uint8_t *)&(a)->s_addr)[0] == 169) && \