Path: utzoo!attcan!utgpu!dennis From: dennis@gpu.utcs.utoronto.ca (Dennis Ferguson) Newsgroups: can.sun-stroke Subject: Re: SIOCGIFNETMASK equiv. under 3.5? Message-ID: <1989Jun28.150421.18401@gpu.utcs.utoronto.ca> Date: 28 Jun 89 19:04:21 GMT References: <649@aurora.AthabascaU.CA> Reply-To: dennis@gpu.utcs.utoronto.ca (Dennis Ferguson) Distribution: can Organization: Mechanical Engineering, University of Toronto Lines: 12 Checksum: 64969 In article <649@aurora.AthabascaU.CA> lyndon@cs.AthabascaU.CA (Lyndon Nerenberg) writes: > Does anyone know of a way to pick up the netmask and broadcast mask > of an IP interface under SunOS3.5? I need to emulate the facility > provided by SIOCGIFNETMASK and SIOCGIFBRDADDR under 4.3. Both requests can be done under SunOS3.5. The only differences from 4.3 that I'm aware of are that ifreq.ifr_broadaddr doesn't exist (you get the broadcast address from ifreq.ifr_addr instead) and that the netmask returned by the other request can sometimes be 0.0.0.0 when subnetting isn't being done. Dennis