Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/traceroute Cosmetics: a) add missing \n-s, b) this ...



details:   https://anonhg.NetBSD.org/src/rev/ed638d1c3b83
branches:  trunk
changeset: 473706:ed638d1c3b83
user:      is <is%NetBSD.org@localhost>
date:      Wed Jun 16 13:26:16 1999 +0000

description:
Cosmetics: a) add missing \n-s, b) this is ntohs, not htons, here.

diffstat:

 usr.sbin/traceroute/traceroute.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (47 lines):

diff -r 3fd9bf9f843e -r ed638d1c3b83 usr.sbin/traceroute/traceroute.c
--- a/usr.sbin/traceroute/traceroute.c  Wed Jun 16 08:48:37 1999 +0000
+++ b/usr.sbin/traceroute/traceroute.c  Wed Jun 16 13:26:16 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: traceroute.c,v 1.31 1999/06/05 09:50:39 tron Exp $     */
+/*     $NetBSD: traceroute.c,v 1.32 1999/06/16 13:26:16 is Exp $       */
 
 /*
  * Copyright (c) 1988, 1989, 1991, 1994, 1995, 1996, 1997
@@ -29,7 +29,7 @@
 #else
 __COPYRIGHT("@(#) Copyright (c) 1988, 1989, 1991, 1994, 1995, 1996, 1997\n\
 The Regents of the University of California.  All rights reserved.\n");
-__RCSID("$NetBSD: traceroute.c,v 1.31 1999/06/05 09:50:39 tron Exp $");
+__RCSID("$NetBSD: traceroute.c,v 1.32 1999/06/16 13:26:16 is Exp $");
 #endif
 #endif
 
@@ -1102,8 +1102,8 @@
                        if (errno == EMSGSIZE) {
                                packlen = *mtuptr++;
 #ifdef _NoLongerLooksUgly_
-                               Printf("\nmessage too big, "
-                                   "trying new MTU = %d ", packlen);
+                               Printf("message too big, "
+                                   "trying new MTU = %d\n", packlen);
 #endif
                                goto again;
                        } else
@@ -1181,7 +1181,7 @@
                hip = &icp->icmp_ip;
                hlen = hip->ip_hl << 2;
 
-               nextmtu = htons(icp->icmp_nextmtu);     /* for frag_err() */
+               nextmtu = ntohs(icp->icmp_nextmtu);     /* for frag_err() */
                        
                if (useicmp) {
                        /* XXX */
@@ -1490,7 +1490,7 @@
         } else {
                 packlen = *mtuptr++;
                 Printf("fragmentation required and DF set, "
-                   "trying new MTU = %d ", packlen);
+                   "trying new MTU = %d\n", packlen);
         }
 }
 



Home | Main Index | Thread Index | Old Index