SCCS-vsn: usr.bin/netstat/Makefile 5.2
SCCS-vsn: usr.bin/netstat/main.c 5.2
SCCS-vsn: usr.bin/netstat/route.c 5.3
# All rights reserved. The Berkeley software License Agreement
# specifies the terms and conditions for redistribution.
#
# All rights reserved. The Berkeley software License Agreement
# specifies the terms and conditions for redistribution.
#
-# @(#)Makefile 5.1 (Berkeley) %G%
+# @(#)Makefile 5.2 (Berkeley) %G%
-OBJS= host.o inet.o if.o main.o mbuf.o route.o unix.o
+OBJS= host.o inet.o if.o main.o mbuf.o route.o unix.o ns.o
#endif not lint
#ifndef lint
#endif not lint
#ifndef lint
-static char sccsid[] = "@(#)main.c 5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)main.c 5.2 (Berkeley) %G%";
#endif not lint
#include <sys/param.h>
#endif not lint
#include <sys/param.h>
-static char sccsid[] = "@(#)route.c 5.2 85/06/15";
+static char sccsid[] = "@(#)route.c 5.3 85/08/16";
#endif
#include <sys/types.h>
#endif
#include <sys/types.h>
register char *p = mybuf;
short port = dna->x_port;
register char *p = mybuf;
short port = dna->x_port;
- sprintf(p,"%ld:", net);
+ sprintf(p,"%lx:", net);
while(*p)p++; /* find end of string */
while(*p)p++; /* find end of string */
dna->x_host.c_host[4], dna->x_host.c_host[5]);
if (port) {
while(*p)p++; /* find end of string */
dna->x_host.c_host[4], dna->x_host.c_host[5]);
if (port) {
while(*p)p++; /* find end of string */
+ sprintf(p,":%x",ntohs(port));