Commit Graph

258115 Commits

Author SHA1 Message Date
wiz
da9f189127 Sort options. Sort option descriptions. Remove Tn.
Sync usage (more) with man page.
2018-04-23 07:25:36 +00:00
maxv
64956f36ba Remove the kernel RH0 code. RH0 is deprecated by RFC5095, for security
reasons. RH0 was already removed in the kernel's input path, but some
parts were still present in the output path: they are now removed.

Sent on tech-net@ a few days ago.
2018-04-23 07:22:54 +00:00
wiz
744b9e9d12 Remove -g from SYNOPSIS. 2018-04-23 07:13:50 +00:00
maxv
9948652569 Remove the "hops" parameter, it uses RH0, which is deprecated by RFC5095,
and doesn't work on modern networks anymore.
2018-04-23 06:51:25 +00:00
maxv
e65ec2be3d Remove the "-g" option, it uses RH0, which is deprecated by RFC5095, and
doesn't work on modern networks anymore.
2018-04-23 06:42:02 +00:00
msaitoh
6b2bbe1c2b - Backout if_wm.c rev.1.574 and print "device timeout (lost interrupt)"
when all descriptors in a queue are free. When all descriptors are free after
 wm_txeof(), it's caused by lost interrupt (though I've never seen it). One
 possibility is chip bug and another possibility is software bug. We should
 reset in any cases. If we don't reset and don't print error message, TX
 processing is done intermittently and user might not noticed the problem.

- Rename txq_watchdog to txq_sending to make the meaning clear.
2018-04-23 01:35:25 +00:00
msaitoh
d783b83a14 Count timeout correctly. This change reduce timeout value for 80003 as
expected. Reported by mouse@.
2018-04-23 01:29:23 +00:00
christos
abc532f391 merge duplicated code, back to logging error. 2018-04-22 20:32:27 +00:00
maxv
48c5ec192c Rename ipip_allow->ipip_spoofcheck, and add net.inet.ipsec.ipip_spoofcheck.
Makes it simpler, and also fixes PR/39919.
2018-04-22 10:25:40 +00:00
jdolecek
3996bedd21 trigger the softint processing on that child bus which is not detached yet
fixes PR kern/53066 by Martin Husemann
2018-04-22 07:47:14 +00:00
joerg
ad8ea1d746 Do not use movq for loading arbitrary 64bit immediates. The ISA
restricts it to 32bit immediates.
2018-04-21 23:25:01 +00:00
kre
e76b58b2db In uses like $(( var )) (un-dollared vars in arithmetic) we allow
leading whitespace in the value of var (because strtoimax() does)
but did not allow trailing whitespace.   The effect is that some
cases where $(( ${var:-0} )) would work do not work without the $
expansion.

Fix that - allow trailing whitespace.   However, continue to insist
upon at least one digit (a non-null var that contains nothing but
whitespace is still an error).

Note: posix is not helpful here, it simply requires that the variable
contain "a value that forms a valid integer constant" (with an optional
+ or - sign).
2018-04-21 23:01:29 +00:00
kre
d6d059edc2 PR bin/53201
Don't synerr on
	${var-anything
	more}

The newline in the middle of the var expansion is permitted.

Bug reported by Martijn Dekker from his modernish tests.

XXX pullup-8
2018-04-21 21:32:14 +00:00
kre
7fea2a9dfc Add a test case for PR bin/53201
Currently this test case will fail, a fix is coming soon (not worth
marking this as an expected failure.)

This test case and the initial bug report comes from
Martijn Dekker's modernish (shell/test set).
2018-04-21 21:28:35 +00:00
christos
230aa26942 we don't have mtab or rmtab 2018-04-21 18:34:08 +00:00
christos
d8a004726c downgrade error to debug. 2018-04-21 18:07:23 +00:00
jdolecek
1c4f101001 add KASSERT() that sc_child* is set to NULL after child detach; just for
readability, it's not immediatelly obvious this is done in xhci_childdet()

no functional changes
2018-04-21 15:53:24 +00:00
mlelstv
f3a7ac8991 Fix an ancient typo, instead of setting the base address, the size
value is written leaving the autoconf setting (-1) as the address.
The value is only used for printing an attach message, the actual
pcdisplay_init code uses hard coded base addresses again.
2018-04-21 15:10:28 +00:00
maxv
2b3801633e Remove #ifndef __vax__.
The check enforces a 4-byte-aligned size for the option mbuf. If the size
is not multiple of 4, the computation of ip_hl gets truncated in the
output path. There is no reason for this check not to be present on VAX.

While here add a KASSERT in ip_insertoptions to enforce the assumption.

Discussed briefly on tech-net@
2018-04-21 13:22:06 +00:00
wiz
c35bf49041 New sentence, new line. 2018-04-21 12:38:17 +00:00
wiz
7734da6b73 Minor improvements. 2018-04-21 09:31:08 +00:00
rin
2cb2455506 Remove unused variable since previous revision. 2018-04-21 08:30:19 +00:00
christos
0693e96ee0 It was not gcc's fault for correctly detecting an uninitialized variable.
Fix the uninitialized variable issues by error checking things.
2018-04-20 21:03:00 +00:00
jdolecek
d24fed3cfe add prot parameter for uvm_emap_enter(), so that it's possible to
enter also read/write mappings
2018-04-20 19:02:18 +00:00
jdolecek
b6ce67bcb3 make ubc_alloc() and ubc_release() static, they should not be used
outside of ubc_uiomove()/ubc_zeropage(); for now mark as noinline
to keep them available as breakpoints
2018-04-20 18:58:10 +00:00
macallan
b9e5bfb350 smusat attaches to iic now 2018-04-20 18:24:44 +00:00
macallan
aa357ed600 overhaul SMU i2c handling:
- get rid of the special smuiicbus, use generic i2cbus
- use shifted i2c addresses like everyone else
- use direct config
with this generic i2c drivers should work on the smu's i2c bus.
2018-04-20 18:22:50 +00:00
bouyer
7a9fde2d20 Remove sunxi_codec_drain(). It's optional, and as the DMA is not stopped
at this time I'm not sure what draining the fifo means here. Also,
we're not waiting for the drain to complete.
The upper level will play enough silence when needed to make sure interesting
data have been played.

In sunxi_codec_halt_output() and sunxi_codec_halt_input(), drain the fifo
(and wait for it to complete) before or after disabling the DMA.
2018-04-20 18:07:40 +00:00
bouyer
19b0af41fe sun4idma_halt(): do not set the control register to 0 but just clear
the LOAD bit. This is how it was done in the allwinner code.
I don't know why but without this, I could play sound (via sunxi_codec)
only once. After the call to sunxi_codec_halt_output(), subsequent play
would output only silence.
2018-04-20 18:04:12 +00:00
roy
1aeb87918e Update values from RFC 8319 2018-04-20 16:37:17 +00:00
roy
e673cfdc24 Make the #defines more readable 2018-04-20 16:18:18 +00:00
roy
5f8de401f6 Lack of timeout is a programming error, so use an assert in it's place.
While here, improve the error reported if malloc fails.
2018-04-20 16:07:48 +00:00
roy
27e3ea924d Use EXIT_FAILURE instead of an arbtitary number. 2018-04-20 15:59:17 +00:00
roy
5977af5905 Unicast solicited RA's as per RFC 7772.
This is done by having a secondary timer against rainfo so we
can delay unicasting by the required randomised amount of time
without affecting the unsolicited RA timer.
2018-04-20 15:57:23 +00:00
roy
086575fefe Ensure that the soliciter list is initialised and freed correctly, even if it's not used yet. 2018-04-20 15:29:19 +00:00
roy
3bff93a23c Allow timers to exist but be inactive.
This will be used in a future commit.
2018-04-20 13:27:45 +00:00
roy
4f44b8a30e Insist on newer socket options. 2018-04-20 11:31:54 +00:00
roy
1abb8a3172 Use pidifle_lock(3) 2018-04-20 11:25:39 +00:00
christos
abb1ec4117 propagate pullup-782 for NetBSD-8 to HEAD (gcc uninitialized) 2018-04-20 11:14:40 +00:00
roy
301a345cbf Punt dead code 2018-04-20 10:43:38 +00:00
roy
e4c3b35870 White space police. 2018-04-20 10:39:37 +00:00
roy
7a0904c3ae Fix some unaligned pointer issues. 2018-04-20 10:26:34 +00:00
knakahara
fdd8807341 SIOCSIFDSTADDR uses struct ifreq instead of struct ifaddr or struct in_aliasreq.
SIOCSIFDSTADDR is not used by base package commands...

I checked sys/net*/* only.
2018-04-20 09:56:22 +00:00
maxv
6a7684ef24 Cast to int, to properly handle dstoff > MHLEN (which never happens). 2018-04-20 06:01:59 +00:00
msaitoh
503b12f135 Fix watchdog timer. Without this change, watchdog timer is unnecessary
fired and device is initialized without any error message. OK'd by knakahara.
2018-04-20 03:03:13 +00:00
kamil
6a0b9e974e Add new example loadable kernel module: readhappy_mpsafe
readhappy_mpsafe - demonstrates how to make a module MPSAFE

This module contains an additional helper program test_readhappy.c,
that is designed to exercise the kernel module with multiple threads.

Submitted by <Siddharth Muralee>
2018-04-20 00:06:45 +00:00
mrg
b5722a7e71 add missing cgraphunit.c dependancy on pass_manager.h. should fix report
from thorpej on current-users about missing pass-instances.def.
2018-04-19 22:01:27 +00:00
christos
87fd18f8e5 s/static inline/static __inline/g for consistency. 2018-04-19 21:50:06 +00:00
christos
ec77b5055a s/static inline/static __inline/g for consistency. 2018-04-19 21:20:43 +00:00
christos
8f06c59281 s/static inline/static __inline/g for consistency with other include
headers.
2018-04-19 21:19:07 +00:00