Subject: Re: COMPAT_SUNOS & socreate().
To: matthew green <mrg@eterna.com.au>
From: Darren Reed <darrenr@reed.wattle.id.au>
List: port-sparc
Date: 08/25/2001 14:16:29
In some email I received from matthew green, sie wrote:
> 
> 
> hi folks.
> 
> 
> i'm trying to remove the final MI COMPAT_SUNOS #ifdef from
> uipc_socket.c:socreate(), and while i believe i have a solution i'm
> unsure as to it's correctness and confused about how exactly to test
> it.  what this change does is enable SO_BROADCAST for all SOCK_DGRAM
> sockets by default.  i traced all the callers of socreate() and i
> believe that the only ones that seem to matter are socket() and
> socketpair().  so i created sunos_sys_socket{,pair}() and things
> seem to work ok.  how best to test this?  what sunos programs rely
> on this behaviour?

At some point I remember having trouble with this but it was years
ago now and I'm not sure if it was because I was running a SunOS4
userland under NetBSD or a SunOS4 hacked kernel.

The simplest example of the dependency is "ping" - you won't be able
to send a broadcast ICMP packet, locally.

Darren