home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.bsd:5123 comp.protocols.tcp-ip:4301
- Newsgroups: comp.unix.bsd,comp.protocols.tcp-ip
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!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! :-)
-