256921 Commits

Author SHA1 Message Date
maxv
e9030bedd8 Oops, forgot this file; I just merged two IPsec functions, so adapt
the rump stubs accordingly.
2018-02-27 14:45:43 +00:00
maxv
580ac4be42 Dedup: merge
ipsec4_get_policy and ipsec6_get_policy
	ipsec4_delete_pcbpolicy and ipsec6_delete_pcbpolicy

The already-existing ipsec_get_policy() function is inlined in the new
one.
2018-02-27 14:44:10 +00:00
maxv
cd974a5908 Remove the Econet code. It was part of acorn26, which was removed a
month ago.
2018-02-27 14:28:01 +00:00
maxv
c7aeccf20a style and fix typo 2018-02-27 14:14:19 +00:00
maxv
be32dea43c Use inpcb_hdr to reduce the diff between
ipsec4_set_policy and ipsec6_set_policy
	ipsec4_get_policy and ipsec6_get_policy
	ipsec4_delete_pcbpolicy and ipsec6_delete_pcbpolicy

No real functional change.
2018-02-27 13:36:21 +00:00
christos
9ac12f166f - don't leak ccb on alloc failure.
- KASSERT to prevent memory leak.
2018-02-27 12:59:53 +00:00
kamil
5198f250f5 Include <inttypes.h> in t_ucontext.c
The <inttypes.h> user-land header is required for PRI types.
We were including indirectly <sys/inttypes.h> through <sys/*.h> sources,
and this worked for most of the ports.

This fixes indirectly a build for MIPS (tested ports: arc and hpcmips),
where PRI types (PRIxREGISTER) were undefined.

Noted by <uwe>.
2018-02-27 12:20:35 +00:00
pgoyette
8d441d9cea Detach our children before allowing ourselves to detach. 2018-02-27 11:50:57 +00:00
kamil
b81b72d988 Implement _UC_MACHINE_INTRV() for hppa
INTRV = integer return value
For hppa this is R28 alias _REG_RET0.
2018-02-27 11:26:39 +00:00
kamil
c3018cf20c Make the t_ucontext.c test more portable
Cast _UC_MACHINE_*(&u) to (register_t).
This allows to print the returned values with PRIxREGISTER.

This corrects build failures on MIPS and HPPA.
sizeof(int) == sizeof(long) on these 32-bit systems.
2018-02-27 11:15:53 +00:00
uwe
ab5491b594 INTRV is INT-RV - integer return value (not INTR-V, interrupt vector) :) 2018-02-27 10:09:42 +00:00
kamil
65d22cea25 Add a dummy implementation of _UC_MACHINE_INTRV() for ia64
This fixes a build problem in src/tests/lib/libc/sys/t_ucontext.c.

This needs to be revisited once the port will get more mature.
2018-02-27 09:51:28 +00:00
maxv
215e1b4181 Optimize: use ipsec_sp_hdrsiz instead of ipsec_hdrsiz, not to re-query
the SP.

ok ozaki-r@
2018-02-27 08:05:19 +00:00
skrll
13822393ce Remove c&p comment that doesn't apply 2018-02-27 07:24:13 +00:00
pgoyette
21a7a775c9 Fix total timeout amount - since we decrement by 10 every 10 usec, we
need 35000 usec to equal 35ms.
2018-02-27 05:56:12 +00:00
pgoyette
84b0deb6b0 Fix another case of 7-bit right-justified addressing, without write-bit 2018-02-27 05:55:08 +00:00
pgoyette
d691638539 Use I2C_READ_OP_P() rather than negating I2C_WRITE_OP_P() 2018-02-27 05:52:10 +00:00
pgoyette
88c5eab4ef Change a couple of aprint messages to aprint_debug-only 2018-02-27 05:50:52 +00:00
pgoyette
6c0e84d128 KNF - remove space between cast and variable 2018-02-27 05:49:08 +00:00
pgoyette
1fa1550c57 For byte-writes we only load an 8-bit quantity 2018-02-27 05:47:10 +00:00
pgoyette
d460bf3c90 Our i2c addresses are right-justified 7-bit; we don't shift left
for the "write" bit
2018-02-27 05:45:14 +00:00
pgoyette
0a20d723d3 The controller only supports 1-byte "commands" 2018-02-27 05:43:20 +00:00
msaitoh
589ba8986e Add hw.ixvM.q[01].{interrupt_rate,[tr]xd_head,[tr]xd_tail} sysctls as ixg(4). 2018-02-27 04:58:27 +00:00
pgoyette
1baec80807 Add dependency on iic module to get access to iicbus_print() 2018-02-27 00:18:02 +00:00
pgoyette
389b2dabdf The iic module needs to include 2c_subr so that i2cbus modules can
reference iicbus_print()
2018-02-27 00:15:34 +00:00
sevan
fe5e2a196c macofcons(4) 2018-02-26 23:12:59 +00:00
sevan
d3c020679a Remove support for macofcons(4), it's not actually possible to build a kernel
with it enabled - See PR port-macppc/53004 and it may have further problems even
so.
From <macallan>:
"There is some early console code that uses OF output but it causes problems
when we get close to MMU setup - I think it can go, it hasn't been enabled in
any config in at least a decade as far as I know."
2018-02-26 23:09:32 +00:00
sevan
f72b096520 Note awacs(4) getting enabled. 2018-02-26 22:37:27 +00:00
christos
7767204c93 PR/53058: Nikhil Benesch: use correctly typed variables (wchar_t vs wint_t)
as parameters.
2018-02-26 17:36:14 +00:00
tsutsui
70a638886f Add dumb memory probe routines for Milan to use all available memory.
Tested on Milan with 32Mx1, 32Mx4, 128MBx1, and 128MBx3.
(bootloader ROM fails to load TOS with 128MBx4)

No particular comment on port-atari@:
 http://mail-index.netbsd.org/port-atari/2018/02/09/msg000580.html
2018-02-26 15:11:12 +00:00
kamil
00e03d5b87 Document ragasub(3) & regnsub(3) implementation detail
Added note:
  Only 10 elements of the rm array can be used.

Sponsored by <The NetBSD Foundation>
2018-02-26 14:04:43 +00:00
martin
a253d8fa7f Switch sparc over to openssl 1.1 again - thanks to christos for fixing it! 2018-02-26 12:26:24 +00:00
maxv
0695fe90b1 Dedup: call ipsec_in_reject directly. IPSEC_STAT_IN_POLVIO also gets
increased now.
2018-02-26 10:36:24 +00:00
maxv
768c43840b Reduce the diff between ipsec6_input and ipsec4_input. 2018-02-26 10:19:13 +00:00
maxv
660f4099b0 Remove redundant condition (harmless). PR/53030. 2018-02-26 09:13:00 +00:00
maxv
b39a0dd1f8 Dedup: merge ipsec4_in_reject and ipsec6_in_reject into ipsec_in_reject.
While here fix misleading comment.

ok ozaki-r@
2018-02-26 09:04:29 +00:00
maxv
c3c5f13028 Dedup: merge ipsec4_hdrsiz and ipsec6_hdrsiz into ipsec_hdrsiz.
ok ozaki-r@
2018-02-26 08:50:25 +00:00
maxv
2953bb2565 Dedup: merge ipsec4_checkpolicy and ipsec6_checkpolicy into
ipsec_checkpolicy.

ok ozaki-r@
2018-02-26 08:42:16 +00:00
pgoyette
a9b2760df8 Better device identification during configuration/attach 2018-02-26 08:34:47 +00:00
wiz
0903e7d1fb Fix comment. 2018-02-26 08:23:44 +00:00
knakahara
e6743f33cb Apply ixgbe.c:r1.127 to ixv.c. Pointed out by msaitoh@n.o. 2018-02-26 08:14:01 +00:00
pgoyette
b7994efa6a Update sets lists for new modular ichsmb(4) 2018-02-26 07:30:17 +00:00
pgoyette
eee1cd778b Descend into subdirectory to create the module for ichsmb(4) driver. 2018-02-26 07:29:24 +00:00
pgoyette
611870bdec Modularize the ichsmb(4) driver. No functional changes. 2018-02-26 07:28:02 +00:00
maxv
0f3ae0526d If 'skip' is lower than sizeof(struct ip), we are in trouble. So remove a
nonsensical branch, and add a panic at the beginning of the function.
2018-02-26 06:58:56 +00:00
maxv
1d337420b7 m is never allowed to be NULL, so turn the KASSERT (and the null check)
to a panic.
2018-02-26 06:53:22 +00:00
maxv
8a440faae1 Fix nonsensical checks, neither in6p nor request is allowed to be NULL,
and the former is already dereferenced in a kassert. This code should be
the same as ipsec4_set_policy.
2018-02-26 06:48:01 +00:00
maxv
3e1c4ac085 Add XXX, it seems to me we need to free the mbuf here. 2018-02-26 06:41:27 +00:00
maxv
20ee129912 Reinforce this area, make sure the length field fits the option. Normally
it always does because the options were already sanitized earlier.
2018-02-26 06:40:08 +00:00
maxv
589f503d3d Fix mbuf mistake: we are using ip6 before it is pulled up properly. 2018-02-26 06:34:39 +00:00