Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/traceroute Fix byte ordering problem on little endi...



details:   https://anonhg.NetBSD.org/src/rev/27f45781980e
branches:  trunk
changeset: 473472:27f45781980e
user:      tron <tron%NetBSD.org@localhost>
date:      Sat Jun 05 09:50:39 1999 +0000

description:
Fix byte ordering problem on little endian systems. Patch supplied by
Jarle Greipsland in PR bin/7700.

diffstat:

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

diffs (27 lines):

diff -r 12315fe282de -r 27f45781980e usr.sbin/traceroute/traceroute.c
--- a/usr.sbin/traceroute/traceroute.c  Sat Jun 05 09:44:03 1999 +0000
+++ b/usr.sbin/traceroute/traceroute.c  Sat Jun 05 09:50:39 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: traceroute.c,v 1.30 1999/02/17 07:17:28 christos Exp $ */
+/*     $NetBSD: traceroute.c,v 1.31 1999/06/05 09:50:39 tron 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.30 1999/02/17 07:17:28 christos Exp $");
+__RCSID("$NetBSD: traceroute.c,v 1.31 1999/06/05 09:50:39 tron Exp $");
 #endif
 #endif
 
@@ -1181,7 +1181,7 @@
                hip = &icp->icmp_ip;
                hlen = hip->ip_hl << 2;
 
-               nextmtu = icp->icmp_nextmtu;    /* for frag_err() */
+               nextmtu = htons(icp->icmp_nextmtu);     /* for frag_err() */
                        
                if (useicmp) {
                        /* XXX */



Home | Main Index | Thread Index | Old Index