*BSD News Article 4515


Return to BSD News archive

Xref: sserve comp.unix.bsd:4563 comp.protocols.tcp-ip:19890
Newsgroups: comp.unix.bsd,comp.protocols.tcp-ip
Path: sserve!manuel!munnari.oz.au!spool.mu.edu!uwm.edu!zaphod.mps.ohio-state.edu!mstar!mstar!bob
From: bob@MorningStar.Com (Bob Sutterfield)
Subject: getnetmaskent()?
Message-ID: <BOB.92Sep4120430@volitans.MorningStar.Com>
Sender: news@MorningStar.Com
Nntp-Posting-Host: volitans.morningstar.com
Organization: Morning Star Technologies
Date: Fri, 4 Sep 1992 16:04:38 GMT
Lines: 7

BSD's getnetent() family of routines works with the contents of
/etc/networks.  Is there a similar getnetmaskent() family for the
information contained in /etc/netmasks?  I note that the Tahoe (or is
it Reno?) <netdb.h> has no mention of a subnet mask, nor of a file
where it might be found.

Must I actually open() the file and parse it myself?  How barbaric! :-)