Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Oct 1999 22:39:19 +0400
From:      Alex Povolotsky <tarkhil@over.ru>
To:        freebsd-stable@freebsd.org
Cc:        qmail@list.cr.yp.to
Subject:   Re: SIOCGIFCONF (or qmail?) problem?
Message-ID:  <19991021223919.A91646@over.ru>
In-Reply-To: <19991021214913.A90292@over.ru>
References:  <19991021193216.D86089@over.ru> <19991021214913.A90292@over.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Oct 21, 1999 at 09:49:13PM +0400, Alex Povolotsky wrote:
> and sets ifc.ifc_len to 1024. I am not kernel-hacker enough to understand
> what's happening in /sys/net/if.c between lines 820 and 877, and, people,

Well... I've made quick workaround for it. Patch for ipme.c applied:

57a58,62
>       if (ifc.ifc_len > len) {
>       /* We've got TRASHING! */
>       substdio_puts("PANIC: IOCTL trashed buffers!");
>       kill(getpid(), SIGABRT);;
>       }

So all ipme() users will die on ioctl trashing. 

However, shouldn't ioctl honour ifc.ifc_len?

Alex.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991021223919.A91646>