Commit graph

4702 commits

Author SHA1 Message Date
Brooks Davis d5fedb6e96 Add support for /etc/dhclient-enter-hooks to match /etc/dhclient-exit-hooks. 2005-06-10 03:41:18 +00:00
Brooks Davis d6790d5a5c Add support for /etc/dhclient-exit-hooks file.
Tested by:	Max Boyarov <max_b at tut dot by>
2005-06-08 18:21:56 +00:00
Brooks Davis 9c13d9cd98 Fix build on 64-bit platforms where time_t is 64 bit. Since where
talking about time related to leases, it should be OK to cast these to
(int)s rather than using intmax_t.

Submitted by:	ru
Pointy hat:	brooks
2005-06-07 14:47:54 +00:00
Max Laier b730879ffa add_proto() now fills proto for us so stop to 'guess' the protocol from the
command and rather trust the value add_proto filled in.  While here, fix an
oversight in the pretty printing of ip6/4 options.
2005-06-07 14:11:17 +00:00
Ruslan Ermilov c55cd9092d - Remove OpenBSD'ism (bsd.own.mk).
- Remove redundant and harmful -Wall from CFLAGS.
2005-06-07 09:32:23 +00:00
Brooks Davis 1afa6b2c0a Now that dhclient builds and /etc/support has been committed, reconnect
dhclient to the build.
2005-06-07 04:49:37 +00:00
Brooks Davis 43c56a9bd9 Use SCRIPTS to install dhclient-script instead of rolling our own. 2005-06-07 04:35:48 +00:00
Brooks Davis 8750adaf5a FreeBSDize the dhclient-script.
Submitted by:	sam
2005-06-07 04:32:29 +00:00
Brooks Davis 2b19b6fca1 Define _PATH_VAREMPTY.
Add a -b option to background immediatly.

Add support for 802.11 routing messages to "instantly" renegotiate
at lease when we associate with a new network.

Submitted by:	sam
2005-06-07 04:26:14 +00:00
Brooks Davis b5be635a44 NULL is not a valid time_t.
Submitted by:	sam
2005-06-07 04:14:54 +00:00
Brooks Davis 1b3bb962f9 We don't support BPF write filters at this time.
Submitted by:	sam
2005-06-07 04:13:52 +00:00
Brooks Davis 955cf67bf4 Take the OpenBSD version of the Makefile to resolve conflicts as the old
one is irrelevent.  Add $FreeBSD.
2005-06-07 04:08:50 +00:00
Brooks Davis 24bd614bbd This commit was generated by cvs2svn to compensate for changes in r147072,
which included commits to RCS files with non-trunk default branches.
2005-06-07 04:05:09 +00:00
Brooks Davis 47c0859616 Import the OpenBSD dhclient as shipped with OpenBSD-3.7 (the tag
OPENBSD_3_7).
2005-06-07 04:05:09 +00:00
Brooks Davis 981e23b873 Remove the bits to build the isc-dhclient. 2005-06-07 04:02:10 +00:00
Brooks Davis 12bc1dc061 Temporarily disconnect dhclient from the build while I import the
OpenBSD version.
2005-06-07 03:59:26 +00:00
Søren Schmidt 265fa8db1d Open devices RDONLY for ioctls. That makes it work on open devices to which
GEOM doesn't allow WR access.
2005-06-06 20:46:51 +00:00
Philip Paeps ff869641ae Fix a silly little typo I just spotted. 2005-06-06 06:47:33 +00:00
Andrew Thompson 7afc53b8df Connect if_bridge to the build.
Approved by:	mlaier (mentor)
2005-06-05 03:32:53 +00:00
Andrew Thompson 31997bf223 Add if_bridge, which provides more advanced Ethernet bridging and 802.1d
spanning tree support.

Based on Jason Wright's bridge driver from OpenBSD, and modified by Jason R.
Thorpe in NetBSD.

Reviewed by:	mlaier, bms, green
Silence from:	-net
Approved by:	mlaier (mentor)
Obtained from:	NetBSD
2005-06-05 02:59:26 +00:00
Brian Feldman 5278d40bcc Better explain, then actually implement the IPFW ALTQ-rule first-match
policy.  It may be used to provide more detailed classification of
traffic without actually having to decide its fate at the time of
classification.

MFC after:	1 week
2005-06-04 19:04:31 +00:00
Warner Losh 5493b334cc Revert last. It was the result of mismerges from cvs not an actual
need.  _sconfig already was there in the correct place.

Noticed by: ru@
2005-06-03 15:53:37 +00:00
Warner Losh b93c319255 Build sconfig on i386 to match where drivers are made it configures 2005-06-03 15:38:39 +00:00
Max Laier 57cd6d263b Add support for IPv4 only rules to IPFW2 now that it supports IPv6 as well.
This is the last requirement before we can retire ip6fw.

Reviewed by:	dwhite, brooks(earlier version)
Submitted by:	dwhite (manpage)
Silence from:	-ipfw
2005-06-03 01:10:28 +00:00
John Baldwin d14c0c076e Fix some warnings on 64-bit archs.
Reviewed by:	sam
2005-06-01 14:55:45 +00:00
Xin LI 73ac45052f Add a handy macro to represent null mount option, MOPT_NULL, and make
use of the macro in sbin/mount*'s, by replacing:

	mopts[] = {
	    MOPT_STDOPTS,
	    { NULL }
	}

With:
	mopts[] = {
	    MOPT_STDOPTS,
	    MOPT_NULL
	}

This change will help to reduce the situation that we don't explicitly
initialize "struct mntopt"'s.  It should not contribute to any
functional/logical changes as far as I can tell.
2005-06-01 09:39:36 +00:00
Stefan Farfeleder 92e7a424c5 Remove #ident directives, they don't exist on the vendor branch anymore. 2005-05-31 20:28:49 +00:00
Xin LI 466e103c7d Constify savedir pointer, and remove an accompaning strdup() call. 2005-05-29 16:28:07 +00:00
Philippe Charnier 8a1dff0c73 Give variable an initial value. Use errx() instead of fprintf(). 2005-05-29 16:07:10 +00:00
Philippe Charnier 35a974fdb8 rscid -> __FBSDID. Mark parameter as __unused when necessary. 2005-05-29 15:57:00 +00:00
Ruslan Ermilov 522c85f5ba Fix order (I introduced some time ago) broken in previous revision. 2005-05-25 07:31:05 +00:00
Maxime Henrion ab19e37ab0 Only build mount_reiserfs(8) on i386, it exists only there for now.
Spotted by:	ru
2005-05-24 23:06:10 +00:00
Jean-Sébastien Pédron 8fe7998342 Connect mount_reiserfs(8) to the build.
Approved by:	mux (mentor)
2005-05-24 12:37:18 +00:00
Jean-Sébastien Pédron 61a34594b1 Import of mount_reiserfs(8), used to mount a ReiserFS filesystem.
Approved by:	mux (mentor)
2005-05-24 12:34:45 +00:00
Hajimu UMEMOTO c60a8b32a2 - do DNS lookup for symbolic names specified for a destination
or gateway.
- improves error reporting using gai_strerror(3) instead of
  printing "bad value".
- remove "0" for servname argument for getaddrinfo(3).

Submitted by:	Andreas Kohn <andreas __at__ syndrom23.de>
MFC after:	1 week
2005-05-23 14:12:32 +00:00
Ruslan Ermilov 9b3eb50354 Synchronize program's usage() with manpage's SYNOPSIS. 2005-05-21 07:08:32 +00:00
Max Laier ffa4a5867a Unbreak handling of "ip[v]6" protocol and option flag. No more segfaults
and not every protocol is IPv6.
2005-05-21 03:27:33 +00:00
Søren Schmidt 06b97dbc13 Print the rigth argv string on error (too much c&p).. 2005-05-20 06:23:40 +00:00
Sam Leffler eb2a391f14 guard against bogus address data
Submitted by:	Bakul Shah
2005-05-20 03:58:53 +00:00
Ruslan Ermilov 95f55a632e Fix the contents of the underneath .depend files and "make checkdpadd". 2005-05-17 14:29:06 +00:00
Warner Losh f32a7686ec Ignore sigpipe so we can properly detach clients to the pipe.
Submitted by: Fredrik Lindberg
2005-05-16 20:51:46 +00:00
Darren Reed 051adc35a2 Enable building /sbin/ipf (but not the rescue version) with the ability to
parse bpf strings for filter rules in ipf.conf
2005-05-16 16:22:55 +00:00
Ruslan Ermilov 4a73995979 Fixed markup from the previous revision. 2005-05-16 15:09:13 +00:00
Søren Schmidt cc6bea0ed8 Reflect the new usage. 2005-05-16 13:32:23 +00:00
Søren Schmidt 6667b30d15 Change the way ioctls are issue to ATA.
The most prominent part is that its now possible to issue ata_requests
directly to say acd0, instead of going through the cumbersome /dev/ata
device.
2005-05-16 13:07:27 +00:00
Hajimu UMEMOTO 4f10131848 NI_WITHSCOPEID cleanup. Neither RFC 2553 nor RFC 3493 defines
NI_WITHSCOPEID, and our getaddrinfo(3) does nothing special
for it, now.
2005-05-13 16:31:11 +00:00
Gleb Smirnoff 0c0e9713a6 'ngtee' also depends on net.inet.ip.fw.one_pass. 2005-05-11 12:58:15 +00:00
Juli Mallett b894acfb2a shutdown(2)'s how argument as 0 is nowhere near as cool as SHUT_RD 2005-05-11 02:50:41 +00:00
Gleb Smirnoff 0af8180f8c IPFW version 2 is the only option now in HEAD. Do not confuse
users of future releases with instructions about building IPFW2
on RELENG_4.
2005-05-04 13:14:57 +00:00
Max Khon 5d6d6d382f Add -m option (find module using modfind() and stat it). 2005-05-04 12:46:43 +00:00