Subject: Re: COMPAT_SUNOS & socreate().
To: matthew green <mrg@eterna.com.au>
From: Jason R Thorpe <thorpej@wasabisystems.com>
List: port-sparc
Date: 08/17/2001 20:07:59
On Sat, Aug 18, 2001 at 12:54:34PM +1000, matthew green wrote:

 > 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?

You could certainly write a simple test program that sends a test
UDP packet to broadcast...

-- 
        -- Jason R. Thorpe <thorpej@wasabisystems.com>