Kevin Lo
482d883100
Use INADDR_NONE instead of -1 to check inet_addr() result.
...
Reviewed by: glebius
2013-10-15 07:37:30 +00:00
Ulrich Spörlein
b927953652
nos-tun(8): make WARNS=3 clean
...
The renames are in spirit of DragonflyBSD, to keep diff minimal.
PR: bin/140060
Approved by: ed (co-mentor)
2010-03-10 18:51:13 +00:00
Ruslan Ermilov
8d646af581
Sync program's usage() with manpage's SYNOPSIS.
2005-02-10 09:19:34 +00:00
Peter Wemm
7b4ef4ac04
64 bit fixes. in_addr_t is an uint32_t, not a u_long.
2003-10-26 04:37:57 +00:00
Mike Barcroft
51f42932d1
Don't depend on <sys/types.h> pollution in <fcntl.h>. Sort includes.
2002-09-16 19:46:20 +00:00
Warner Losh
d476a036e2
o remove __P
...
o remove main prototype
2002-03-21 13:20:49 +00:00
Bill Fumerola
955052cf21
from select(2):
...
Any of readfds, writefds, and exceptfds may be given as nil
pointers if no descriptors are of interest.
neither wfds nor efds were of interest so now they are nil.
also, do a little better then making an educated guess for nfds.
2002-01-20 12:13:28 +00:00
Kris Kennaway
56bded8a29
s/adress/address/
...
Inspired by: OpenBSD
MFC After: 1 week
2001-07-23 12:05:27 +00:00
Poul-Henning Kamp
6d4a212d49
Allow specification of which source address to use for encapsulation.
...
PR: 25847
Submitted by: Eugene Polovnikov <eugene@brain-fag.org>
2001-03-28 17:30:26 +00:00
Jeroen Ruigrok van der Werven
685fd2c56a
Fix occurences of nos_tun to nos-tun, this improves internal
...
consistency as well as an usage printout.
PR: 10538
Submitted by: piazza
Nudged by: nrahlstr
2000-06-09 06:45:18 +00:00
Peter Wemm
7f3dea244c
$Id$ -> $FreeBSD$
1999-08-28 00:22:10 +00:00
Poul-Henning Kamp
d59cf2acdd
Add ability to set protocol number.
...
PR: 10753
Submitted by: Isao SEKI <iseki@gongon.com>
1999-03-29 13:58:27 +00:00
Bruce Evans
ab84534772
Fixed printf format errors.
1998-08-02 16:06:35 +00:00
Philippe Charnier
1109d2e0ee
Do not uppercase first letter in syslog() string.
1998-07-15 06:38:53 +00:00
Philippe Charnier
59edad7a5c
Add usage() and rcsid. Getopt() returns -1 not EOF. Remove unused #includes.
...
Use .An/.Aq in man page.
1998-05-05 06:24:15 +00:00
Poul-Henning Kamp
e66dbdb6c0
Program which implements "nos" alias "ka9q" alias "IP-IP" tunnels.
...
PR: 1154
Reviewed by: phk
Manpage by: phk
Submitted by: Nickolay N. Dudorov nnd@itfs.nsk.su
1998-04-11 19:33:06 +00:00