On Sun, Jan 16, 2000 at 05:40:18PM -0500, Barry Lustig wrote:
> --- ipme.c.~1~  Mon Jun 15 06:53:16 1998
> +++ ipme.c      Sat Nov 20 18:21:26 1999
> @@ -48,7 +48,7 @@
> 
>    if ((s = socket(AF_INET,SOCK_STREAM,0)) == -1) return -1;
> 
> -  len = 256;
> +  len = 1024;
>    for (;;) {
>      if (!stralloc_ready(&buf,len)) { close(s); return 0; }
>      buf.len = 0;

Sorry for getting back to you this late. This patch does indeed fix the
problem over here. (I still wonder why I am not seeing this problem on my home
system though. Oh well.)

It's sort of strange that this works at all with such a small buffer.
ifc.ifc_len is 568 bytes on my system here, at line 59 of ipme.c.

I built ipme standalone by sticking

        main()
        {
                ipme_init();
        }

at the end of ipme.c and doing

        gcc -o ipme ipme.c str.a stralloc.a alloc.a error.a ipalloc.o

-- 
Jos Backus                          _/ _/_/_/  "Reliability means never
                                   _/ _/   _/   having to say you're sorry."
                                  _/ _/_/_/             -- D. J. Bernstein
                             _/  _/ _/    _/
[EMAIL PROTECTED]  _/_/  _/_/_/      use Std::Disclaimer;


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to