Source-Changes-HG archive

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

[src/trunk]: src/sbin/route remove false fix for routing socket align issue.



details:   https://anonhg.NetBSD.org/src/rev/48bbbb35c576
branches:  trunk
changeset: 476004:48bbbb35c576
user:      itojun <itojun%NetBSD.org@localhost>
date:      Fri Sep 03 04:17:19 1999 +0000

description:
remove false fix for routing socket align issue.

diffstat:

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

diffs (27 lines):

diff -r 5819fd0a93a8 -r 48bbbb35c576 sbin/route/show.c
--- a/sbin/route/show.c Fri Sep 03 04:04:22 1999 +0000
+++ b/sbin/route/show.c Fri Sep 03 04:17:19 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: show.c,v 1.12 1999/09/03 03:47:39 itojun Exp $ */
+/*     $NetBSD: show.c,v 1.13 1999/09/03 04:17:19 itojun Exp $ */
 
 /*
  * Copyright (c) 1983, 1988, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "from: @(#)route.c      8.3 (Berkeley) 3/9/94";
 #else
-__RCSID("$NetBSD: show.c,v 1.12 1999/09/03 03:47:39 itojun Exp $");
+__RCSID("$NetBSD: show.c,v 1.13 1999/09/03 04:17:19 itojun Exp $");
 #endif
 #endif /* not lint */
 
@@ -326,7 +326,7 @@
            {
                u_char *s = (u_char *)sa->sa_data, *slim;
 
-               slim = ROUNDUP(sa->sa_len) + (u_char *) sa;
+               slim = sa->sa_len + (u_char *) sa;
                cplim = cp + sizeof(workbuf) - 6;
                cp += snprintf(cp, cplim - cp, "(%d)", sa->sa_family);
                while (s < slim && cp < cplim) {



Home | Main Index | Thread Index | Old Index