]> mj.ucw.cz Git - nwho.git/commitdiff
Added missing htons(), released as 1.12.
authorMartin Mares <mj@ucw.cz>
Wed, 6 Nov 2002 15:47:10 +0000 (15:47 +0000)
committerMartin Mares <mj@ucw.cz>
Wed, 6 Nov 2002 15:47:10 +0000 (15:47 +0000)
ChangeLog
Makefile
debian/changelog
nwho.lsm
nwhod.c

index 97dd2837dab62d810c822d6e00960b536ffecdb5..6ca01fdc51d124226ac7be5b4439bd6827decb7e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2002-11-06  Martin Mares  <mj@ucw.cz>
+
+       * 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  <mj@ucw.cz>
 
        * When a server stops responding, keep its record for a longer
index 60e4b31e9519b741834a56f4fac93c8eb90fcb6d..8415f4d91aa809a20de362ef044286f792708601 100644 (file)
--- 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
 
index cfef44f51547686b022e07dbcbb7940199e05fda..083837643781c300e36b4c618f23ce43e6aba18d 100644 (file)
@@ -1,3 +1,9 @@
+nwho (1.12) unstable; urgency=low
+
+  * New upstream version.
+
+ -- Martin Mares <mj@ucw.cz>  Wed,  6 Nov 2002 16:46:45 +0100
+
 nwho (1.11) unstable; urgency=low
 
   * New upstream version.
index a4b07c34eb9b30fd631e7abd68e125a9cdbe7fa4..feefe65cf1ddf7cc2cbefe45366ecfc9698a8240 100644 (file)
--- 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 <mj@atrey.karlin.mff.cuni.cz>
 Maintained-by: Martin Mares <mj@atrey.karlin.mff.cuni.cz>
-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 e2747c2b7bc3cba14b77c4d696f99e54e2b5dcdc..6f288321a32fc8329bb05992856fababede6a16c 100644 (file)
--- 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");