"usage: %s options\n", name );
fprintf( stderr,
"\t-4\t\tIPv4 only\n"
+#ifdef LDAP_PF_INET6
"\t-6\t\tIPv6 only\n"
+#endif
"\t-T {acl|add|auth|cat|dn|index|modify|passwd|test}\n"
"\t\t\tRun in Tool mode\n"
"\t-c cookie\tSync cookie of consumer\n"
#endif
)) != EOF ) {
switch ( i ) {
-#ifdef LDAP_PF_INET6
case '4':
slap_inet4or6 = AF_INET;
break;
+#ifdef LDAP_PF_INET6
case '6':
slap_inet4or6 = AF_INET6;
break;
from->sa_in6_addr.sin6_port = ppa.ip6.src_port;
#else
Debug( LDAP_DEBUG_ANY, "proxyp(%ld): "
- "IPv6 proxied addresses disabled, \n",
+ "IPv6 proxied addresses disabled\n",
(long)sfd );
return 0;
#endif
typedef struct SlapReply SlapReply;
/* end of forward declarations */
-#ifdef LDAP_PF_INET6
extern int slap_inet4or6;
-#endif
struct OidMacro {
struct berval som_oid;