Commit Graph

228039 Commits

Author SHA1 Message Date
christos 1aafa42e67 don't warn for 80211 messages 2014-06-14 22:39:36 +00:00
roy 3e4bc01859 Note import of dhcpcd-6.4.0 2014-06-14 21:01:39 +00:00
roy 11fd74d7c7 Fix for dhcpcd-6.4.0 2014-06-14 21:00:22 +00:00
roy 1578cb1fcc Sync 2014-06-14 20:55:37 +00:00
roy a468f856ed Import dhcpcd-6.4.0 with the following changes:
*  Only fork when the RA has a RDNSS option AND a valid prefix OR no DHCPv6 instruction.
  *  Handle BSD per interface rtadv kernel flag.
  *  Add a reject route for the delegated prefix so that unassigned prefixes don't go back upstream.
  *  If not specified, Delegated Prefixes will get an automatic SLA of the interface index. If the biggest SLA and the assigned prefix fits into a /64 then dhcpcd creates a /64 prefix so that SLAAC works. If bigger than /64 is needed then dhcpcd creates one rounded upto the nearest multiple of 8. Unless a configured SLA of 0 is assigned, a reject route for the Delegated Prefix is installed to stop unassigned addresses trying to be resolved upstream. Addresses added from Delegated Prefixes now have a default address suffix of 1 instead of using a SLAAC style address.
  *  Don't spam timezone updates unless its actually changed.
  *  Support ND6_IFF_OVERRIDE_RTADV on BSD.
  *  Document why we don't send both FQDN and hostname options.
  *  Respect RFC4861 MAX_RTR_SOLICITATION_DELAY as specified in section 6.3.7.
  *  RFC2131 section 4.4.1 states the client SHOULD wait a random time between one and ten seconds to desynchronize the use of DHCP at startup. Instead we wait a random time between zero and one second to mirror the more modern IPv6RS and DHCPv6 standards unless overridden by defining RFC2131_STRICT.
  *  Always send a carrier as it's no longer encapsulated in the IPv4 stack. When stopping and not departed, run with the STOPPED reason but do not process it in hooks.
  *  Poll kernel neighbour reachability (SIOCGNBRINFO_IN6) for each router instead of sending and listening for Neighbour Soliciation/Advertisement packets. The kernel is privy to a lot more reachability information than userland is.
  *  Ensure that ND6_IFF_PERFORMNUD is set.
  *  controlgroup option changes group ownership of the control socket.
  *  Should use arc4random_uniform when wanting a randon number between 1 and N. Improve the compat arc4random function a little and re-stir on fork.
  *  -4 and -6 are now mutually exclusive and when running on a single interface per protocol pidfiles are created. This means that other control options suchs as -x and -n will require the -4 or -6 option as well.
  *  Implement Stable Private Addresses for SLAAC as per RFC7217. Enable this as default in dhcpcd.conf.
  *  Log error condition if a new or changed Router Advertisment to avoid spamming the log.
  *  Add an IPv6 link-local address before upping the interface if needed. Bring an interface up when we start it and not during discovery. As such, stop waiting on carrier for a second if we did.
  *  Add gateway option to enable the gateway or an interface/profile. Ensure the option and require options disable the nooption option - last wins.
  *  Restarting ntp/yp are not critical and their initialisation continues in the background as well so we may as well background the restart commands for faster dhcpcd performance.
2014-06-14 20:51:03 +00:00
phx 77c503c771 Add missing siop_clearfifo() and some debugging output (-DDEBUG). 2014-06-14 20:50:12 +00:00
mrg ac641cb906 remove remaining makefile support for GCC < 45 that i found. 2014-06-14 20:49:36 +00:00
joerg 10aed88aaf GC X_NCHSTATS 2014-06-14 20:10:42 +00:00
wiz c85844adb6 Sort errors. 2014-06-14 19:02:29 +00:00
christos 44b088fcf5 new tzcode 2014-06-14 17:50:34 +00:00
christos 0970d31e3c welcome to 2014e 2014-06-14 17:49:27 +00:00
joerg 7913639b38 Make the stat mutex a leaf. XXX Use atomic counters. 2014-06-14 16:12:34 +00:00
apb 637cec4115 Document the relationship between uname(3) and sysctl(7) variables. 2014-06-14 14:32:43 +00:00
apb f37ea538b1 If sysctl kern.version returns a string that's too long
to fit in {struct utsname}.version then just use the
truncated value.
2014-06-14 13:09:37 +00:00
apb 8acaaf26b8 Document command line options and other inputs and outputs. 2014-06-14 12:42:41 +00:00
apb 8d7dc1eea4 Append ".${BUILDID}" to the default value of <id>,
provided the "-i <id>" command line option was not used.
2014-06-14 12:35:18 +00:00
apb d768eb27cb Print BUILDID near the top of /etc/release. 2014-06-14 12:26:26 +00:00
apb 1ee6f9f471 Print BUILDID near the beginning of build.sh. 2014-06-14 12:25:00 +00:00
apb 62417ee794 Regen from doc/BUILDING.mdoc;1.100:
Improve documentation for BUILDID.
2014-06-14 12:21:41 +00:00
apb 38373b3db6 Improve documentation for BUILDID. 2014-06-14 12:20:17 +00:00
pooka ce1cd03e24 Remove one more symbol reference to librump (missed in previous commit
to this file)
2014-06-14 11:52:42 +00:00
njoly 6b27a22c99 Follow OpenGroup online documents for truncate[1] and ftruncate[2].
Fail with EINVAL for length argument negative values.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/functions/truncate.html
[2] http://pubs.opengroup.org/onlinepubs/9699919799/functions/ftruncate.html
2014-06-14 11:37:35 +00:00
ozaki-r be3a67f1b4 Fix typo 2014-06-14 09:13:30 +00:00
apb c38e7a8bc8 Update fmtcheck(3) test now that pointers and longs are differentiated. 2014-06-14 08:19:02 +00:00
apb e72cca9651 Teach fmtcheck(3) that a pointer and a long are not the same. 2014-06-14 08:18:24 +00:00
hannken 605674c009 Remove the hints "isodir" and "relocated" from cd9660_vget_internal()
and always reread the directory entry by inumber.  For directories
the directory entry is always its "." entry.

Always read directories via the device vnode to prevent buffer cache
inconsistency.  Keep i_devvp as a hint for fstat(1) and friends and
always use im_devvp for reads.  No need to vref()/vrele() i_devvp.

The additional bread is either cached because cd9660_lookup() just
released the buffer or will be used in the near future when the
directory gets traversed during lookup.

No objections on tech-kern@
2014-06-14 07:39:28 +00:00
hannken 292a0c7f1d Change dk_lookup() to return an anonymous vnode not associated with
any file system.  Change all consumers of dk_lookup() to get the
device from "v_rdev" instead of VOP_GETATTR() as specfs does not
support VOP_GETATTR().  Devices obtained with dk_lookup() will no
longer disappear on forced unmounts.

Fix for PR kern/48849 (root mirror raid fails on shutdown)

Welcome to 6.99.44
2014-06-14 07:39:00 +00:00
joerg 99d9473857 Init summary counters. 2014-06-14 04:06:54 +00:00
pgoyette a86c6cba08 Check hypervisor version before trying to call xen_copypage() or
xen_pagezero().  Fixes recent issue encountered running a -current
kernel on a pre-3.4 hypervisor.

OK cherry@
2014-06-14 02:54:47 +00:00
pgoyette 3b2f43a7dd Define a macro to check hypervisor version. OK cherry@ 2014-06-14 02:53:02 +00:00
jnemeth e811b981a3 PR/48902 - Nikolai Nifanov -- add XSI 2014-06-14 02:05:38 +00:00
joerg 11e7f587a5 Fix format string for ILP32. 2014-06-14 01:26:59 +00:00
wiz 46f7e221ac Remove trailing whitespace. 2014-06-13 22:06:00 +00:00
wiz 8333f359ba Remove trailing whitespace. Use more markup. Merge sections describing
the same error code.
2014-06-13 22:05:15 +00:00
matt a50cc6d607 Split COPTS.libunwind.cxx into multiple lines. 2014-06-13 21:31:20 +00:00
apb ed8c474a22 zoneinfo: Import tzdata2014e. [apb 20140613] 2014-06-13 19:58:22 +00:00
apb 4e1c86e6e5 tzcode2014e/tzdata2014e have been released. We have tzdata2014e. 2014-06-13 19:57:45 +00:00
apb e3678fbea3 Update tzdata2netbsd for 2014e release.
* Rename work directory so there's a subdir per release.
* Slightly better detection of work that's already been done.
2014-06-13 19:56:19 +00:00
apb 613a81fe71 Merge tzdata2014e 2014-06-13 19:54:04 +00:00
apb 162e8fcbbf Import tzdata2014e from ftp://ftp.iana.org/tz/releases/tzdata2014e.tar.gz
Summary of changes in tzdata2014e (2014-06-12 21:53:52 -0700):
  * Egypt's 2014 Ramadan-based transitions are June 26 and July 31 at 24:00.
    (Thanks to Imed Chihi.)  Guess that from 2015 on Egypt will temporarily
    switch to standard time at 24:00 the last Thursday before Ramadan, and
    back to DST at 00:00 the first Friday after Ramadan.
  * Similarly, Morocco's are June 28 at 03:00 and August 2 at 02:00.  (Thanks
    to Milamber Space Network.)  Guess that from 2015 on Morocco will
    temporarily switch to standard time at 03:00 the last Saturday before
    Ramadan, and back to DST at 02:00 the first Saturday after Ramadan.
  * The abbreviation "MSM" (Moscow Midsummer Time) is now used instead of
    "MSD" for Moscow's double daylight time in summer 1921.  Also, a typo
    "VLASST" has been repaired to be "VLAST" for Vladivostok summer time
    in 1991.  (Thanks to Hank W. for reporting the problems.)
  * Changes affecting commentary.

Summary of changes in tzdata2014d (2014-05-27 21:34:40 -0700):
  * Changes affecting documentation.
2014-06-13 19:48:55 +00:00
joerg 67c88a0d78 Use kern.pool for the live system. 2014-06-13 19:10:01 +00:00
joerg d0f3f6896c Add kern.pool for memory pool stats. 2014-06-13 19:09:07 +00:00
mlelstv f51b23f2cb Align buffer pointer to longwords. Otherwise arbitrary data will be
interpreted as length field of the receive header which can
cause mbuf overruns and memory corruption. Also add sanity checks.
2014-06-13 18:49:41 +00:00
joerg 0142924a4e Use asysctl. 2014-06-13 16:00:55 +00:00
pooka e7f2e099a2 call config_create_mountrootthreads(), if applicable 2014-06-13 15:51:13 +00:00
joerg 3adc1c7681 Add asysctl(3) and asysctlbyname(3) wrappers for the common idiom of
fetching dynamically sized data via sysctl.
2014-06-13 15:45:05 +00:00
pooka a25813f127 Add rump_boot_etfs_register(), which can be used to specify etfs
nodes that will be available immediately when mountroot is done
and file systems are available.

The intended use is for example for firmware images to be available when
config_mountroot() hooks run.
2014-06-13 15:45:01 +00:00
rmind db8632f550 if_detach: drain ip6_pktq as well. 2014-06-13 13:54:08 +00:00
joerg a1fef3e08e Initialise all fields. 2014-06-13 13:38:52 +00:00
pooka a98adcf8d6 use psize_t for physical memory calculation 2014-06-13 11:57:48 +00:00