summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rtadvd/rrenum.c
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2011-06-04 01:20:47 +0000
committerhrs <hrs@FreeBSD.org>2011-06-04 01:20:47 +0000
commitd3d16bccfc16f4d3a5f9935ded1ca476ec8fd9df (patch)
tree80db9f9860b112beefaaf70c7f8b92b46ed37a98 /usr.sbin/rtadvd/rrenum.c
parent414167aef9f91f9b70350d9b86f0381d619b091b (diff)
downloadFreeBSD-src-d3d16bccfc16f4d3a5f9935ded1ca476ec8fd9df.zip
FreeBSD-src-d3d16bccfc16f4d3a5f9935ded1ca476ec8fd9df.tar.gz
- Use IANA reserved example.com domain for rtadvd.conf(5).
- Fix 8-octet boundary calculation. Extra 8 octets were added when it was already on an 8-octet boundary. - Typos and style(9) fixes. Submitted by: bz
Diffstat (limited to 'usr.sbin/rtadvd/rrenum.c')
-rw-r--r--usr.sbin/rtadvd/rrenum.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/rtadvd/rrenum.c b/usr.sbin/rtadvd/rrenum.c
index e2a6311..3f29bc2 100644
--- a/usr.sbin/rtadvd/rrenum.c
+++ b/usr.sbin/rtadvd/rrenum.c
@@ -450,9 +450,8 @@ rr_input(int len, struct icmp6_router_renum *rr, struct in6_pktinfo *pi,
* We rely on the kernel input routine for unicast addresses, and thus
* check multicast destinations only.
*/
- if (IN6_IS_ADDR_MULTICAST(&pi->ipi6_addr) &&
- !IN6_ARE_ADDR_EQUAL(&sin6_sitelocal_allrouters.sin6_addr,
- &pi->ipi6_addr)) {
+ if (IN6_IS_ADDR_MULTICAST(&pi->ipi6_addr) && !IN6_ARE_ADDR_EQUAL(
+ &sin6_sitelocal_allrouters.sin6_addr, &pi->ipi6_addr)) {
syslog(LOG_NOTICE,
"<%s>: RR message with invalid destination (%s) "
"from %s on %s",
OpenPOWER on IntegriCloud