Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/dist/ipsec-tools/src/libipsec Print protocol number a...



details:   https://anonhg.NetBSD.org/src/rev/bb8a34880382
branches:  trunk
changeset: 353250:bb8a34880382
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Wed Apr 26 03:19:49 2017 +0000

description:
Print protocol number as well as its name

ex.) before: "reserved" -> after: "255(reserved)"

The original author is hsuenaga@IIJ

diffstat:

 crypto/dist/ipsec-tools/src/libipsec/pfkey_dump.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r e3e2b58df807 -r bb8a34880382 crypto/dist/ipsec-tools/src/libipsec/pfkey_dump.c
--- a/crypto/dist/ipsec-tools/src/libipsec/pfkey_dump.c Wed Apr 26 03:16:06 2017 +0000
+++ b/crypto/dist/ipsec-tools/src/libipsec/pfkey_dump.c Wed Apr 26 03:19:49 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pfkey_dump.c,v 1.20 2012/01/09 15:25:13 drochner Exp $ */
+/*     $NetBSD: pfkey_dump.c,v 1.21 2017/04/26 03:19:49 ozaki-r Exp $  */
 
 /*     $KAME: pfkey_dump.c,v 1.45 2003/09/08 10:14:56 itojun Exp $     */
 
@@ -761,7 +761,7 @@
 
        ent = getprotobynumber((int)ulp);
        if (ent)
-               printf("%s", ent->p_name);
+               printf("%u(%s)", ulp, ent->p_name);
        else
                printf("%u", ulp);
 



Home | Main Index | Thread Index | Old Index