]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/netinet6/nd6_send.c
xnu-3789.1.32.tar.gz
[apple/xnu.git] / bsd / netinet6 / nd6_send.c
index 04f5223d466abdb4e9888e9093de5ecafaef8dcc..2b99a3bf4282afa8fa07aab686d153805090aa82 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013 Apple Inc. All rights reserved.
+ * Copyright (c) 2013-2016 Apple Inc. All rights reserved.
  *
  * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
  *
@@ -52,8 +52,7 @@ SYSCTL_DECL(_net_inet6);      /* Note: Not in any common header. */
 SYSCTL_NODE(_net_inet6, OID_AUTO, send, CTLFLAG_RW | CTLFLAG_LOCKED, 0,
        "IPv6 Secure Neighbor Discovery");
 
-static int nd6_send_opmode = ND6_SEND_OPMODE_DISABLED;
-
+static int nd6_send_opmode = ND6_SEND_OPMODE_CGA_QUIET;
 SYSCTL_INT(_net_inet6_send, OID_AUTO, opstate, CTLFLAG_RD | CTLFLAG_LOCKED,
        &nd6_send_opstate, 0, "current SEND operating state");
 
@@ -74,8 +73,8 @@ SYSCTL_PROC(_net_inet6_send, OID_AUTO, cga_parameters,
  * userland and the kernel will be mismatched between ILP32 and LP64.
  */
 #define        SYSCTL_CGA_PARAMETERS_BUFFER_SIZE \
-       2 * (sizeof (u_int16_t) + IN6_CGA_KEY_MAXSIZE) + \
-       sizeof (struct in6_cga_prepare)
+       (2 * (sizeof (u_int16_t) + IN6_CGA_KEY_MAXSIZE) + \
+       sizeof (struct in6_cga_prepare))
 
 static int
 sysctl_cga_parameters SYSCTL_HANDLER_ARGS