From 20b2ae28d5b980853d95cfb8f7376c5b4c0d89f6 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 6 Nov 2002 15:47:10 +0000 Subject: [PATCH] Added missing htons(), released as 1.12. --- ChangeLog | 8 ++++++++ Makefile | 2 +- debian/changelog | 6 ++++++ nwho.lsm | 6 +++--- nwhod.c | 2 +- 5 files changed, 19 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 97dd283..6ca01fd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2002-11-06 Martin Mares + + * nwhod.c (net_init): Added missing htons() on port number. + + * Released as version 1.12 (note that this version is incompatible + with 1.11 and 1.10 peers as they use the wrong port number unless + they run on big-endian machines). + 2002-10-04 Martin Mares * When a server stops responding, keep its record for a longer diff --git a/Makefile b/Makefile index 60e4b31..8415f4d 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ CFLAGS=-O2 -Wall -Wno-parentheses LDFLAGS=-s ROOT=/ -REL=nwho-1.10 +REL=nwho-1.12 all: nwhod nwho diff --git a/debian/changelog b/debian/changelog index cfef44f..0838376 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +nwho (1.12) unstable; urgency=low + + * New upstream version. + + -- Martin Mares Wed, 6 Nov 2002 16:46:45 +0100 + nwho (1.11) unstable; urgency=low * New upstream version. diff --git a/nwho.lsm b/nwho.lsm index a4b07c3..feefe65 100644 --- a/nwho.lsm +++ b/nwho.lsm @@ -1,13 +1,13 @@ Begin3 Title: ywho -Version: 1.11 -Entered-date: 021004 +Version: 1.12 +Entered-date: 021106 Description: A rwhod replacement with central server, allowing user information to be gathered across routers. Keywords: rwho Author: Martin Mares Maintained-by: Martin Mares -Primary-site: atrey.karlin.mff.cuni.cz/pub/local/mj/linux/nwho-1.11.tar.gz +Primary-site: atrey.karlin.mff.cuni.cz/pub/local/mj/linux/nwho-1.12.tar.gz Alternate-site: metalab.unc.edu/pub/Linux/system/status Copying-policy: GPL End diff --git a/nwhod.c b/nwhod.c index e2747c2..6f28832 100644 --- a/nwhod.c +++ b/nwhod.c @@ -72,7 +72,7 @@ net_init(char *name) die("socket: %m"); sa.sin_family = AF_INET; - sa.sin_port = port = NWHO_PORT; + sa.sin_port = port = htons(NWHO_PORT); sa.sin_addr.s_addr = INADDR_ANY; if (bind(sock, (struct sockaddr *) &sa, sizeof(sa)) < 0) die("bind: %m"); -- 2.39.2