]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/netkey/key_debug.c
xnu-792.24.17.tar.gz
[apple/xnu.git] / bsd / netkey / key_debug.c
index 2366598b3f8a6737ea914447f3f39cc915a1b0fb..5c3acffdcec7306a6f368279ace6d942dd279ef8 100644 (file)
@@ -1,3 +1,6 @@
+/*     $FreeBSD: src/sys/netkey/key_debug.c,v 1.10.2.5 2002/04/28 05:40:28 suz Exp $   */
+/*     $KAME: key_debug.c,v 1.26 2001/06/27 10:46:50 sakane Exp $      */
+
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
  * All rights reserved.
 
 #if !defined(KERNEL) || (defined(KERNEL) && defined(IPSEC_DEBUG))
 
-static void kdebug_sadb_prop __P((struct sadb_ext *));
-static void kdebug_sadb_identity __P((struct sadb_ext *));
-static void kdebug_sadb_supported __P((struct sadb_ext *));
-static void kdebug_sadb_lifetime __P((struct sadb_ext *));
-static void kdebug_sadb_sa __P((struct sadb_ext *));
-static void kdebug_sadb_address __P((struct sadb_ext *));
-static void kdebug_sadb_key __P((struct sadb_ext *));
-static void kdebug_sadb_x_sa2 __P((struct sadb_ext *));
+static void kdebug_sadb_prop(struct sadb_ext *);
+static void kdebug_sadb_identity(struct sadb_ext *);
+static void kdebug_sadb_supported(struct sadb_ext *);
+static void kdebug_sadb_lifetime(struct sadb_ext *);
+static void kdebug_sadb_sa(struct sadb_ext *);
+static void kdebug_sadb_address(struct sadb_ext *);
+static void kdebug_sadb_key(struct sadb_ext *);
+static void kdebug_sadb_x_sa2(struct sadb_ext *);
 
 #ifdef KERNEL
-static void kdebug_secreplay __P((struct secreplay *));
+static void kdebug_secreplay(struct secreplay *);
 #endif
 
 #ifndef KERNEL
@@ -379,9 +382,9 @@ kdebug_sadb_x_sa2(ext)
 
        printf("sadb_x_sa2{ mode=%u reqid=%u\n",
            sa2->sadb_x_sa2_mode, sa2->sadb_x_sa2_reqid);
-       printf("  reserved1=%u reserved2=%u reserved3=%u }\n",
-           sa2->sadb_x_sa2_reserved1, sa2->sadb_x_sa2_reserved1,
-           sa2->sadb_x_sa2_reserved1);
+       printf("  reserved1=%u reserved2=%u sequence=%u }\n",
+           sa2->sadb_x_sa2_reserved1, sa2->sadb_x_sa2_reserved2,
+           sa2->sadb_x_sa2_sequence);
 
        return;
 }
@@ -671,7 +674,7 @@ void
 kdebug_sockaddr(addr)
        struct sockaddr *addr;
 {
-       struct sockaddr_in *sin;
+       struct sockaddr_in *sin4;
 #ifdef INET6
        struct sockaddr_in6 *sin6;
 #endif
@@ -685,9 +688,9 @@ kdebug_sockaddr(addr)
 
        switch (addr->sa_family) {
        case AF_INET:
-               sin = (struct sockaddr_in *)addr;
-               printf(" port=%u\n", ntohs(sin->sin_port));
-               ipsec_hexdump((caddr_t)&sin->sin_addr, sizeof(sin->sin_addr));
+               sin4 = (struct sockaddr_in *)addr;
+               printf(" port=%u\n", ntohs(sin4->sin_port));
+               ipsec_hexdump((caddr_t)&sin4->sin_addr, sizeof(sin4->sin_addr));
                break;
 #ifdef INET6
        case AF_INET6: