pfkey.c (7b95a1ebbd9aafe9f196a75d95c7b06eaee999a1) | pfkey.c (04f7f23bf80d5f3675e1efd0893730d7b16ba725) |
---|---|
1/* $FreeBSD$ */ 2/* $NetBSD: inet.c,v 1.35.2.1 1999/04/29 14:57:08 perry Exp $ */ 3/* $KAME: ipsec.c,v 1.25 2001/03/12 09:04:39 itojun Exp $ */ 4 5/* 6 * Copyright (C) 1995, 1996, 1997, 1998, and 1999 WIDE Project. 7 * All rights reserved. 8 * --- 106 unchanged lines hidden (view full) --- 115 116 if (x < max && pfkey_msgtypenames[x]) 117 return pfkey_msgtypenames[x]; 118 snprintf(buf, sizeof(buf), "#%d", x); 119 return buf; 120} 121 122void | 1/* $FreeBSD$ */ 2/* $NetBSD: inet.c,v 1.35.2.1 1999/04/29 14:57:08 perry Exp $ */ 3/* $KAME: ipsec.c,v 1.25 2001/03/12 09:04:39 itojun Exp $ */ 4 5/* 6 * Copyright (C) 1995, 1996, 1997, 1998, and 1999 WIDE Project. 7 * All rights reserved. 8 * --- 106 unchanged lines hidden (view full) --- 115 116 if (x < max && pfkey_msgtypenames[x]) 117 return pfkey_msgtypenames[x]; 118 snprintf(buf, sizeof(buf), "#%d", x); 119 return buf; 120} 121 122void |
123pfkey_stats(u_long off, const char *name, int af __unused) | 123pfkey_stats(u_long off, const char *name, int family __unused) |
124{ 125 struct pfkeystat pfkeystat; 126 unsigned first, type; 127 128 if (off == 0) 129 return; 130 printf ("%s:\n", name); 131 kread(off, (char *)&pfkeystat, sizeof(pfkeystat)); --- 54 unchanged lines hidden --- | 124{ 125 struct pfkeystat pfkeystat; 126 unsigned first, type; 127 128 if (off == 0) 129 return; 130 printf ("%s:\n", name); 131 kread(off, (char *)&pfkeystat, sizeof(pfkeystat)); --- 54 unchanged lines hidden --- |