Commit Graph

11 Commits

Author SHA1 Message Date
Brian Somers
7bdb026118 Treat all interface aliases as local addresses.
The new rtiparse() function should really be in libc IMHO.... I'm
sick of writing this code :-(

PR:	20381
2000-08-09 09:24:31 +00:00
Brian Somers
99e6f41350 K&Rify 2000-01-15 23:08:30 +00:00
Brian Somers
ae2a77e2bf As we parse the interface list, ignore sockaddr_dl's that
don't have an interface index that's the same as the if_msghdr
interface index.

This prevents the occasional perror("SIOCGIFFLAGS") from appearing
at boot time.

While I'm there:
  Make a couple of error messages more useful.
  Add a missing include.
  Add some braces to silence gccs dumb complaints.
  Add some consts
  Ansify decls
  Add copyright to pmap_check.h (well, you could say it's been rewritten)
2000-01-12 21:53:46 +00:00
Peter Wemm
97d92980a9 $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
John Birrell
9d1135a9e1 Ad #include stdlib.h to get the prototype for malloc(). 1998-08-17 06:05:55 +00:00
Brian Somers
217e186518 Don't assume that a computer can have no more than
256 interfaces (mine doesn't).  Instead, find local
interface addresses using sysctl().
1998-01-21 10:55:39 +00:00
Philippe Charnier
4a9670dd76 Use err(3). Add usage().
Correct the .Nd string: in real life, portmap is translating rpc prog numbers
to darpa ports, not the opposite.
1997-10-09 07:17:36 +00:00
Peter Wemm
d5c3a37026 This is purely a bandaid to lower the risk of running out of slots
for the local interfaces.  It's not uncommon to have >32 interfaces
these days.  This is a temporary patch until it's fixed to use sysctl
or whatever.
1997-01-11 09:21:29 +00:00
Garrett Wollman
628d2ac1b0 Fix up programs which expect <net/if.h> to include <sys/time.h> to instead
do it themselves.  (Some of these programs actually depended on this
beyond compiling the definition of struct ifinfo!)  Also fix up some
other #include messes while we're at it.
1996-12-10 17:11:53 +00:00
Rodney W. Grimes
709e8f9ae1 Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
Paul Traina
33e6aad96b Portmap 3.0 from win.tue.nl 1994-09-29 09:32:22 +00:00