Commit Graph

26 Commits

Author SHA1 Message Date
brian
3193d19dd6 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
cwt
2db9bc08ef Mention that portmap(8) utilizes hosts_access(5).
Reviewed by: asmodai
2000-03-02 18:15:46 +00:00
brian
c1cdace3da K&Rify 2000-01-15 23:08:30 +00:00
brian
1e3f91cfff 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
efabb9ccb1 $Id$ -> $FreeBSD$ 1999-08-28 01:35:59 +00:00
nik
559bbb333e Add $Id$, to make it simpler for members of the translation teams to
track.

The Id line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;

     .\"    $Id$
     .\"

If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.

Approved by:            bde
1999-07-12 20:12:29 +00:00
bde
ec5e8c885f Fixed world breakage in previous commit. -lwrap was in LDFLAGS where
it has no effect.

Fixed the usual style bugs for DPADD and LDADD.
1999-03-29 03:17:43 +00:00
markm
76ab29871c Enable tcp_wrapper support by default. 1999-03-28 10:55:03 +00:00
jb
e68854cf15 Ad #include stdlib.h to get the prototype for malloc(). 1998-08-17 06:05:55 +00:00
tegge
281bfe1bda Don't clobber errno when reaping child processes. 1998-04-26 01:00:00 +00:00
brian
a70d82c35d 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
charnier
6d64125af7 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
imp
691010efad compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.
1997-03-31 05:11:47 +00:00
wosch
3c5e4a3bbe Sort cross references. 1997-01-20 00:03:00 +00:00
peter
d77c685509 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
wollman
d3ecee07b3 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
joerg
3a86983b1a Typo.
Submitted by:	somebody in Usenet whose name i forgot
1996-02-05 15:35:41 +00:00
adam
4623e1a8c5 Correct ip protocol in error message, when binding the tcp port. 1995-10-27 11:44:07 +00:00
jkh
0c337ce40f Close:
>Number:         656
>Category:       docs
>Synopsis:       -v is not fully documented in portmap.8
Submitted by:	Mike Grupenhoff <kashmir@umiacs.umd.edu>
1995-08-05 23:25:52 +00:00
rgrimes
4f960dd75f Remove trailing whitespace. 1995-05-30 03:57:47 +00:00
pst
b29ffff25c Fix conflicts from import 1994-09-29 09:36:16 +00:00
pst
8d859e9f59 This commit was generated by cvs2svn to compensate for changes in r3192,
which included commits to RCS files with non-trunk default branches.
1994-09-29 09:32:22 +00:00
pst
42d798d589 Portmap 3.0 from win.tue.nl 1994-09-29 09:32:22 +00:00
wollman
a006c507c4 Delete obsolete references to librpc.a. 1994-08-08 00:09:22 +00:00
wollman
d7fca5c189 Get rid of update. Make man page installation work with our scheme
(and rename a few in the process).
1994-08-05 16:31:05 +00:00
rgrimes
2233bc697f BSD 4.4 Lite usr.sbin Sources 1994-05-26 05:23:31 +00:00