broadcast UDP vs. AIX

Terry R. Friedrichsen terry at venus.sunquest.com
Wed Jun 5 06:13:16 AEST 1991


I have written a miscellaneous random server that runs on a number of Unix
systems.  It runs on various nodes in the network and intercommunicates
via UDP broadcasts.

The code works peachy-keen jim-dandy fine EXCEPT under AIX.  My vote was
just to blow off AIX as a bad job, but higher-ups in the company think
otherwise ;-).

It turns out that they don't like to see the address INADDR_BROADCAST
in the sockaddr structure; they want to see the network's broadcast mask
instead.  Now this is, of course, broken, and we told them so, but at
least it is a workaround I can use.

The problem is that I need to come up with this network broadcast mask
programmatically.  This software is going to dozens of sites all over
the country with their own local-area nets, and I'd rather avoid a
configuration/installation procedure.

Does anybody know if AIX has a way of returning this information to a
user program?

AdTHANKSvance.

Terry R. Friedrichsen

terry at venus.sunquest.com  (Internet)
uunet!sunquest!terry	  (Usenet)
terry at sds.sdsc.edu        (alternate address; I live in Tucson)

Quote:  "Do, or do not.  There is no 'try'." - Yoda, The Empire Strikes Back





More information about the Comp.unix.aix mailing list