diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-11-16 14:23:31 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-11-16 14:23:31 +0000 |
commit | 00bad07773b9e184bb302e551c82c42d53df2bdb (patch) | |
tree | 36ef7b81a5a17daf066e34796b55fa7db8ad58ee /usr.sbin/rbootd/rmpproto.c | |
parent | 2e24987a7a55bca181bbcd5d4ea9fb2927b4720a (diff) |
repair byte order botches; from scottr@plexus.com via netbsd
Diffstat (limited to 'usr.sbin/rbootd/rmpproto.c')
-rw-r--r-- | usr.sbin/rbootd/rmpproto.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.sbin/rbootd/rmpproto.c b/usr.sbin/rbootd/rmpproto.c index d752ac0e9aa..83e2ebe74d9 100644 --- a/usr.sbin/rbootd/rmpproto.c +++ b/usr.sbin/rbootd/rmpproto.c @@ -1,4 +1,4 @@ -/* $NetBSD: rmpproto.c,v 1.5 1995/10/06 05:12:21 thorpej Exp $ */ +/* $NetBSD: rmpproto.c,v 1.5.2.1 1995/11/14 08:45:44 thorpej Exp $ */ /* * Copyright (c) 1988, 1992 The University of Utah and the Center @@ -48,7 +48,7 @@ #ifndef lint /*static char sccsid[] = "@(#)rmpproto.c 8.1 (Berkeley) 6/4/93";*/ -static char rcsid[] = "$NetBSD: rmpproto.c,v 1.5 1995/10/06 05:12:21 thorpej Exp $"; +static char rcsid[] = "$NetBSD: rmpproto.c,v 1.5.2.1 1995/11/14 08:45:44 thorpej Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -574,8 +574,7 @@ SendPacket(rconn) */ bcopy((char *)&rconn->rmp.hp_hdr.saddr[0], (char *)&rconn->rmp.hp_hdr.daddr[0], RMP_ADDRLEN); - rconn->rmp.hp_hdr.len = htons(ntohs(rconn->rmplen) - - sizeof(struct hp_hdr)); + rconn->rmp.hp_hdr.len = htons(rconn->rmplen - sizeof(struct hp_hdr)); /* * Reverse 802.2/HP Extended Source & Destination Access Pts. |