Re: Oct 15 OpenBSD errata and LibreSSL releases

2015-10-26 Thread Constantine Aleksandrovich Murenin
As reported elsewhere (http://seclists.org/oss-sec/2015/q4/87 via http://www.opennet.ru/43146), both of these errors were introduced as part of the refactoring. Quick glance through http://bxr.su/o/lib/libssl/src/crypto/objects/obj_dat.c#OBJ_obj2txt indicates that the memory leak issue was introdu

thinkpad yoga12 experiences

2015-10-26 Thread Philip Guenther
Pretty spiffy box, overall. I think some would object to the keyboard but it seems fine to me...when I'm not using my Kinesis. ;-) Glitches and odd points: With it plugged into the dock and closed, I'm getting occasional mouse jumps, mostly to the bottom right corner and usually with a button p

Re: ARP reply towards MP-safeness

2015-10-26 Thread Alexander Bluhm
On Mon, Oct 26, 2015 at 07:08:19PM +0100, Martin Pieuchot wrote: > This rewrites the code to send an ARP reply to no use ``myaddr''. The > goal is to get rid of the per-ifp address list iterations. > > Instead do two route lookups. > > ok? Should the "reply:" label stay before the "if (op != AR

Re: utf8 hack for ls

2015-10-26 Thread Anthony J. Bentley
Stefan Sperling writes: > On Mon, Oct 26, 2015 at 03:58:58PM -0600, Anthony J. Bentley wrote: > > "Ted Unangst" writes: > > > it only gets deeper and thicker... > > > > Indeed. > > > > Here's a shorter implementation. Like colorls(1), it uses wide > > characters (only within the putname() functio

Re: More easy rt_ifidx changes

2015-10-26 Thread Alexander Bluhm
OK bluhm@ On Mon, Oct 26, 2015 at 05:24:19PM +0100, Martin Pieuchot wrote: > Index: net/if.c > === > RCS file: /cvs/src/sys/net/if.c,v > retrieving revision 1.398 > diff -u -p -r1.398 if.c > --- net/if.c 25 Oct 2015 21:58:04 -

Re: ChachaPoly-07: test vectors

2015-10-26 Thread Reyk Floeter
On Mon, Oct 26, 2015 at 06:34:07PM +0100, Mike Belopuhov wrote: > Rather scarce, but that's all we've been given so far. > I can add more chacha-only test cases, but I don't believe > that this is strictly necessary. > > OK? > I ran these test vectors and applied them to the openssl version as w

Re: ChachaPoly-03: Chacha20-Poly1305 AEAD construction as per RFC7634

2015-10-26 Thread Mike Belopuhov
On 26 October 2015 at 23:52, Damien Miller wrote: > On Mon, 26 Oct 2015, Mike Belopuhov wrote: > >> OK? > > Will this get the nonce right on BE systems? > nonce is a uint8_t array, so of course yes, it's endian agnostic because you address memory byte by byte. >> + /* initial counter is 1 */

Re: ChachaPoly-03: Chacha20-Poly1305 AEAD construction as per RFC7634

2015-10-26 Thread Damien Miller
On Mon, 26 Oct 2015, Mike Belopuhov wrote: > OK? Will this get the nonce right on BE systems? > + /* initial counter is 1 */ > + ctx->nonce[0] = 1; > + memcpy(ctx->nonce + CHACHA20_CTR, key + CHACHA20_KEYSIZE, > + CHACHA20_SALT);

Re: ChachaPoly-05: Chacha20-Poly1305 for software crypto

2015-10-26 Thread Reyk Floeter
On Mon, Oct 26, 2015 at 06:31:08PM +0100, Mike Belopuhov wrote: > OK? > see two comments below. Otherwise OK. > --- > sys/crypto/cryptosoft.c | 24 > 1 file changed, 24 insertions(+) > > diff --git sys/crypto/cryptosoft.c sys/crypto/cryptosoft.c > index f735c7c..2a4ab

Re: ChachaPoly-02: import Poly1305 implementation by Andrew-Moon

2015-10-26 Thread Reyk Floeter
On Mon, Oct 26, 2015 at 06:28:19PM +0100, Mike Belopuhov wrote: > OK? > Are these modifications worth doing or wouldn't it be better to keep the differences to the reference implementation as minimal as possible? Even if we don't use the leftover bytes. I think I'd be nice to have the same code

Re: ChachaPoly-08: ipsecctl

2015-10-26 Thread Reyk Floeter
sure OK On Mon, Oct 26, 2015 at 06:34:46PM +0100, Mike Belopuhov wrote: > Only useful for dumping SAs. > > OK? > > --- > sbin/ipsecctl/ipsecctl.h | 2 +- > sbin/ipsecctl/parse.y| 1 + > sbin/ipsecctl/pfkdump.c | 5 + > 3 files changed, 7 insertions(+), 1 deletion(-) > > diff --git sbi

Re: utf8 hack for ls

2015-10-26 Thread Stefan Sperling
On Mon, Oct 26, 2015 at 03:58:58PM -0600, Anthony J. Bentley wrote: > "Ted Unangst" writes: > > it only gets deeper and thicker... > > Indeed. > > Here's a shorter implementation. Like colorls(1), it uses wide > characters (only within the putname() function) but is slightly cleaned > up and simp

Re: utf8 hack for ls

2015-10-26 Thread Anthony J. Bentley
"Ted Unangst" writes: > it only gets deeper and thicker... Indeed. Here's a shorter implementation. Like colorls(1), it uses wide characters (only within the putname() function) but is slightly cleaned up and simplified. Index: ls.c ==

Re: Added RTL8188CE to www/faq/faq6.html

2015-10-26 Thread Stuart Henderson
On 2015/10/26 17:41, Mariano Baragiola wrote: > Hello, support for RTL8188CE was added with rtwn(4) on 5.8. > > Here's the small diff. First time patching myself, so forgive me if > something wrong. > > > Index: www/faq/faq6.html >

Re: csh: kill profiling & debugging ifdefs

2015-10-26 Thread Vadim Zhukov
2015-10-26 21:55 GMT+01:00 Christian Weisgerber : > Remove the profiling and debugging ifdefs. Most of this is for > instrumenting the expression evaluator and has been in place for > 35 years. I think we're done debugging. > > ok? okay zhuk@ -- WBR, Vadim Zhukov

csh: kill profiling & debugging ifdefs

2015-10-26 Thread Christian Weisgerber
Remove the profiling and debugging ifdefs. Most of this is for instrumenting the expression evaluator and has been in place for 35 years. I think we're done debugging. ok? diff -uNrp -xCVS csh,3/Makefile csh/Makefile --- csh,3/Makefile Mon Oct 26 17:40:17 2015 +++ csh/MakefileMon O

Re: sed: better error handling

2015-10-26 Thread Tobias Stoeckmann
> Comments / oks? Looks much cleaner, okay for me.

Added RTL8188CE to www/faq/faq6.html

2015-10-26 Thread Mariano Baragiola
Hello, support for RTL8188CE was added with rtwn(4) on 5.8. Here's the small diff. First time patching myself, so forgive me if something wrong. Index: www/faq/faq6.html === RCS file: /cvs/www/faq/faq6.html,v retrieving revision

enhanced use-after-free detection for malloc v2

2015-10-26 Thread Daniel Micay
This is an improved revision of my earlier patch. It now validates the junk data in the delayed_chunks array in an atexit handler too, rather than just when allocations are swapped out. It will now catch this simple UAF 100% of the time: #include #include int main(void) { size_t i; char *

Re: sed: better error handling

2015-10-26 Thread Jérémie Courrèges-Anglas
Thanks to Michael sed has moved from an error-prone custom err() function to error(). Here's a cleanup for the arguments you can pass to error(). - some calls to err(1, ...) - as in err(3) - had crept in. But misc.c:err() did exit right away if you passed it 1 - despite the misleading comme

Re: ChachaPoly-09: iked

2015-10-26 Thread Reyk Floeter
On Mon, Oct 26, 2015 at 06:35:23PM +0100, Mike Belopuhov wrote: > OK? > You missed the manpage bits in CRYPTO TRANSFORMS. Otherwise OK. > --- > sbin/iked/parse.y | 2 ++ > sbin/iked/pfkey.c | 1 + > 2 files changed, 3 insertions(+) > > diff --git sbin/iked/parse.y sbin/iked/parse.y > index 14

Re: ChachaPoly-01: sync chacha_private.h to the code from ssh

2015-10-26 Thread Reyk Floeter
On Mon, Oct 26, 2015 at 06:27:19PM +0100, Mike Belopuhov wrote: > Kernel version lost the counter argument to chacha_ivsetup that I'll > need for Chacha20 use in the IPsec stack. > > This change is a NO-OP. > > OK? > Looks OK and matches the version in ssh. btw., why are we using this header f

Spaces are allowed in pdisk partitions, aren't they?

2015-10-26 Thread Vadim Zhukov
According to miod@, partition name is allowed to have spaces. Thus, and after reading the code, I suspect the following correction in the manual page is needed. The "create partition" and "rename partition" commands share the same name extracting code, so those should have the same behaviour. So I

ip_ours() towards mpsafeness

2015-10-26 Thread Martin Pieuchot
This diff does two things. First it changes ip_ours() to no longer rely on ``rt_ifa''. The problem here is that the route entry reference acts as a proxy for ``ia''. So you cannot dereference ``ia'' *after* calling rtfree(9). I find this very error prone, so I rewrote the function to not use ``

route6d: untangle two globals

2015-10-26 Thread Jérémie Courrèges-Anglas
If you build route6d with -Wshadow, you'll notice lots of warnings like this one: /usr/src/usr.sbin/route6d/route6d.c: In function 'riprecv': /usr/src/usr.sbin/route6d/route6d.c:970: warning: declaration of 'np' shadows a global declaration /usr/src/usr.sbin/route6d/route6d.c:629: warning: shado

ARP reply towards MP-safeness

2015-10-26 Thread Martin Pieuchot
This rewrites the code to send an ARP reply to no use ``myaddr''. The goal is to get rid of the per-ifp address list iterations. Instead do two route lookups. ok? Index: netinet/if_ether.c === RCS file: /cvs/src/sys/netinet/if_ethe

ChachaPoly-07: test vectors

2015-10-26 Thread Mike Belopuhov
Rather scarce, but that's all we've been given so far. I can add more chacha-only test cases, but I don't believe that this is strictly necessary. OK? --- regress/sys/crypto/Makefile | 1 + regress/sys/crypto/chachapoly/Makefile | 26 ++ regress/sys/crypto/chachap

ChachaPoly-03: Chacha20-Poly1305 AEAD construction as per RFC7634

2015-10-26 Thread Mike Belopuhov
OK? --- sys/crypto/chachapoly.c | 94 + sys/crypto/chachapoly.h | 57 ++ 2 files changed, 151 insertions(+) create mode 100644 sys/crypto/chachapoly.c create mode 100644 sys/crypto/chachapoly.h diff --git sys/crypto/ch

ChachaPoly-06: permit Chacha20-Poly1305 configuration for IPsec ESP

2015-10-26 Thread Mike Belopuhov
OK? --- sys/net/pfkeyv2.h | 6 -- sys/net/pfkeyv2_convert.c | 8 sys/netinet/ip_esp.c | 20 ++-- 3 files changed, 30 insertions(+), 4 deletions(-) diff --git sys/net/pfkeyv2.h sys/net/pfkeyv2.h index 3d08bd3..97d95e2 100644 --- sys/net/pfkeyv2.h +++ sy

ChachaPoly-04: Hook up Chacha20-Poly1305 to the OCF

2015-10-26 Thread Mike Belopuhov
OK? --- sys/conf/files | 2 ++ sys/crypto/cryptodev.h | 9 ++--- sys/crypto/xform.c | 21 + sys/crypto/xform.h | 2 ++ 4 files changed, 31 insertions(+), 3 deletions(-) diff --git sys/conf/files sys/conf/files index 04c3ff7..40cceab 100644 --- sys/conf/

ChachaPoly-09: iked

2015-10-26 Thread Mike Belopuhov
OK? --- sbin/iked/parse.y | 2 ++ sbin/iked/pfkey.c | 1 + 2 files changed, 3 insertions(+) diff --git sbin/iked/parse.y sbin/iked/parse.y index 14ff9ef..94489f9 100644 --- sbin/iked/parse.y +++ sbin/iked/parse.y @@ -192,10 +192,12 @@ const struct ipsec_xf ipsecencxfs[] = { { "aes-128-gm

ChachaPoly-05: Chacha20-Poly1305 for software crypto

2015-10-26 Thread Mike Belopuhov
OK? --- sys/crypto/cryptosoft.c | 24 1 file changed, 24 insertions(+) diff --git sys/crypto/cryptosoft.c sys/crypto/cryptosoft.c index f735c7c..2a4abce 100644 --- sys/crypto/cryptosoft.c +++ sys/crypto/cryptosoft.c @@ -511,18 +511,20 @@ swcr_authenc(struct cryptop *crp)

ChachaPoly-08: ipsecctl

2015-10-26 Thread Mike Belopuhov
Only useful for dumping SAs. OK? --- sbin/ipsecctl/ipsecctl.h | 2 +- sbin/ipsecctl/parse.y| 1 + sbin/ipsecctl/pfkdump.c | 5 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git sbin/ipsecctl/ipsecctl.h sbin/ipsecctl/ipsecctl.h index f95440e..51d0665 100644 --- sbin/ipsecctl/

ChachaPoly-02: import Poly1305 implementation by Andrew-Moon

2015-10-26 Thread Mike Belopuhov
OK? --- sys/crypto/poly1305.c | 209 ++ sys/crypto/poly1305.h | 23 ++ 2 files changed, 232 insertions(+) create mode 100644 sys/crypto/poly1305.c create mode 100644 sys/crypto/poly1305.h diff --git sys/crypto/poly1305.c sys/crypto/poly1305.

Re: Unexpected behaviour of repquota -a /

2015-10-26 Thread Todd C. Miller
On Mon, 26 Oct 2015 18:07:43 +0100, Vadim Zhukov wrote: > Running "repquota -a /" is silly, so lets behave the same way other > utilities do. Okay? OK millert@ - todd

ChachaPoly-01: sync chacha_private.h to the code from ssh

2015-10-26 Thread Mike Belopuhov
Kernel version lost the counter argument to chacha_ivsetup that I'll need for Chacha20 use in the IPsec stack. This change is a NO-OP. OK? --- sys/crypto/chacha_private.h | 8 sys/crypto/xform.c | 1 + sys/dev/rnd.c | 8 3 files changed, 9 insertions(+),

Unexpected behaviour of repquota -a /

2015-10-26 Thread Vadim Zhukov
Running "repquota -a /" is silly, so lets behave the same way other utilities do. Okay? -- WBR, Vadim Zhukov Index: repquota.8 === RCS file: /cvs/src/usr.sbin/repquota/repquota.8,v retrieving revision 1.10 diff -u -p -r1.10 repquo

csh: unifdef miscellaneous

2015-10-26 Thread Christian Weisgerber
Clean up miscellaneous small stuff: * unifdef lint * unifdef S_IFLNK, S_ISFIFO, S_ISLNK, S_ISSOCK, O_APPEND * unif(def) 0, NOTUSED, notdef -- untouched since original import * unifdef IIASA No binary changes. ok? Index: csh.c === RCS

Re: __predict_false for pledge

2015-10-26 Thread Michael McConville
Theo de Raadt wrote: > > Not sure how people feel about these annotations. This is a pretty > > classic use case, though. > > No, the classic case is when the condition is a single variable, > rather than a condition "always true && rarely true". It wraps the whole condition, right? There are man

Re: __predict_false for pledge

2015-10-26 Thread Michael McConville
Philip Guenther wrote: > On Mon, Oct 26, 2015 at 8:46 AM, Michael McConville wrote: > > We have a pretty strong guarantee that it can only happen once per > > process... > ... > > --- sys/sys/syscall_mi.h9 Oct 2015 01:17:18 - 1.11 > > +++ sys/sys/syscall_mi.h26 Oct 2015 1

Re: __predict_false for pledge

2015-10-26 Thread Theo de Raadt
> Not sure how people feel about these annotations. This is a pretty > classic use case, though. No, the classic case is when the condition is a single variable, rather than a condition "always true && rarely true".

Re: __predict_false for pledge

2015-10-26 Thread Ted Unangst
Michael McConville wrote: > Ted Unangst wrote: > > Michael McConville wrote: > > > We have a pretty strong guarantee that it can only happen once per > > > process... > > > > I don't think this really matters. What does it do to the assmembly, > > and how does that make things faster? > > It lets

Re: __predict_false for pledge

2015-10-26 Thread Michael McConville
Ted Unangst wrote: > Michael McConville wrote: > > We have a pretty strong guarantee that it can only happen once per > > process... > > I don't think this really matters. What does it do to the assmembly, > and how does that make things faster? It lets the compiler know that the body is very unl

Re: pwcache

2015-10-26 Thread Ted Unangst
Philip Guenther wrote: > On Mon, Oct 26, 2015 at 9:05 AM, Ted Unangst wrote: > > Philip Guenther wrote: > >> On Mon, Oct 26, 2015 at 6:47 AM, Ted Unangst wrote: > >> > Old bug in pwcache functions. Calling setpassent(1) to keep the passwd > >> > database open is a surprising abstraction violation

Re: pwcache

2015-10-26 Thread Todd C. Miller
On Mon, 26 Oct 2015 09:19:20 -0700, Philip Guenther wrote: > Ah, I missed fixing that before. How's this? Looks fine to me, though I wonder whether other systems leak the fd. - todd

Re: __predict_false for pledge

2015-10-26 Thread Theo de Raadt
> On Mon, Oct 26, 2015 at 8:46 AM, Michael McConville wrote: > > We have a pretty strong guarantee that it can only happen once per > > process... > ... > > --- sys/sys/syscall_mi.h9 Oct 2015 01:17:18 - 1.11 > > +++ sys/sys/syscall_mi.h26 Oct 2015 15:13:44 - > > @@ -7

Re: pwcache

2015-10-26 Thread Philip Guenther
On Mon, Oct 26, 2015 at 9:05 AM, Ted Unangst wrote: > Philip Guenther wrote: >> On Mon, Oct 26, 2015 at 6:47 AM, Ted Unangst wrote: >> > Old bug in pwcache functions. Calling setpassent(1) to keep the passwd >> > database open is a surprising abstraction violation for the caller of >> > user_from

More easy rt_ifidx changes

2015-10-26 Thread Martin Pieuchot
Index: net/if.c === RCS file: /cvs/src/sys/net/if.c,v retrieving revision 1.398 diff -u -p -r1.398 if.c --- net/if.c25 Oct 2015 21:58:04 - 1.398 +++ net/if.c26 Oct 2015 16:02:06 - @@ -2341,6 +2341,7 @@ if_group_rou

Re: pwcache

2015-10-26 Thread Todd C. Miller
On Mon, 26 Oct 2015 12:07:33 -0400, "Ted Unangst" wrote: > Todd C. Miller wrote: > > On Mon, 26 Oct 2015 11:39:48 -0400, "Ted Unangst" wrote: > > > > > This improves the cache. Basically, it's kind of like four way > > > associative now, with LRU replacement. Also we can cache nameless > > > entr

Re: __predict_false for pledge

2015-10-26 Thread Philip Guenther
On Mon, Oct 26, 2015 at 8:46 AM, Michael McConville wrote: > We have a pretty strong guarantee that it can only happen once per > process... ... > --- sys/sys/syscall_mi.h9 Oct 2015 01:17:18 - 1.11 > +++ sys/sys/syscall_mi.h26 Oct 2015 15:13:44 - > @@ -72,7 +72,8 @@ m

Re: pwcache

2015-10-26 Thread Ted Unangst
Philip Guenther wrote: > On Mon, Oct 26, 2015 at 6:47 AM, Ted Unangst wrote: > > Old bug in pwcache functions. Calling setpassent(1) to keep the passwd > > database open is a surprising abstraction violation for the caller of > > user_from_uid. Now it has a file descriptor it must close before exe

Re: pwcache

2015-10-26 Thread Todd C. Miller
On Mon, 26 Oct 2015 11:39:48 -0400, "Ted Unangst" wrote: > This improves the cache. Basically, it's kind of like four way > associative now, with LRU replacement. Also we can cache nameless > entries instead of going back to getpwuid every time. Shouldn't those memcpy() be memmove()? - todd

Re: pwcache

2015-10-26 Thread Ted Unangst
Todd C. Miller wrote: > On Mon, 26 Oct 2015 11:39:48 -0400, "Ted Unangst" wrote: > > > This improves the cache. Basically, it's kind of like four way > > associative now, with LRU replacement. Also we can cache nameless > > entries instead of going back to getpwuid every time. > > Shouldn't those

csh: remove string function redirection

2015-10-26 Thread Christian Weisgerber
This removes the #define Strfoo() s_strfoo() redirection and moves everything directly to Strfoo(). Purely mechanical. ok? diff -uNrp csh-/csh.h csh/csh.h --- csh-/csh.h Mon Oct 26 16:06:19 2015 +++ csh/csh.h Mon Oct 26 16:49:21 2015 @@ -458,22 +458,6 @@ CharHIST;

Re: csh: clean up left over NLS cruft

2015-10-26 Thread Todd C. Miller
On Mon, 26 Oct 2015 16:35:51 +0100, Christian Weisgerber wrote: > Clean up cruft made visible by the unifdefing: > * remove setlocale() calls > * remove write-only variable AsciiOnly > * remove now unused string constants STRLANG, STRLC_CTYPE > * remove hardcoded support for ISO8859-1 OK. - to

Re: pwcache

2015-10-26 Thread Philip Guenther
On Mon, Oct 26, 2015 at 6:47 AM, Ted Unangst wrote: > Old bug in pwcache functions. Calling setpassent(1) to keep the passwd > database open is a surprising abstraction violation for the caller of > user_from_uid. Now it has a file descriptor it must close before exec by > calling endpwent(), but

Re: pwcache

2015-10-26 Thread Todd C. Miller
On Mon, 26 Oct 2015 09:47:59 -0400, "Ted Unangst" wrote: > Simplest fix is to just leave the database closed. The point of the cache is > to avoid calling getpwuid() at all, so we shouldn't worry about the > performance of that call so much. Now, the cache is rather stupid, and we can > fix that t

Re: __predict_false for pledge

2015-10-26 Thread Ted Unangst
Michael McConville wrote: > We have a pretty strong guarantee that it can only happen once per > process... I don't think this really matters. What does it do to the assmembly, and how does that make things faster?

Re: pwcache

2015-10-26 Thread Ted Unangst
This improves the cache. Basically, it's kind of like four way associative now, with LRU replacement. Also we can cache nameless entries instead of going back to getpwuid every time. Index: gen/pwcache.c === RCS file: /cvs/src/lib/lib

csh: clean up left over NLS cruft

2015-10-26 Thread Christian Weisgerber
Clean up cruft made visible by the unifdefing: * remove setlocale() calls * remove write-only variable AsciiOnly * remove now unused string constants STRLANG, STRLC_CTYPE * remove hardcoded support for ISO8859-1 OK? Index: char.c ==

Better ASR support in ospfd

2015-10-26 Thread Claudio Jeker
ospfd has some issues with self-originated networks and building summary entries for those in case the router is an ABR (area border router). This diff should hopefully fix all of the troubles. It changes a bit the way we do nexthop calculation in the SPF/rib calculation to make sure we handle self

__predict_false for pledge

2015-10-26 Thread Michael McConville
We have a pretty strong guarantee that it can only happen once per process... Index: sys/sys/syscall_mi.h === RCS file: /cvs/src/sys/sys/syscall_mi.h,v retrieving revision 1.11 diff -u -p -r1.11 syscall_mi.h --- sys/sys/syscall_mi.h

[trivial] (type *)0 -> NULL

2015-10-26 Thread Michael McConville
While I'm in here: Index: sys/lib/libsa/net.c === RCS file: /cvs/src/sys/lib/libsa/net.c,v retrieving revision 1.19 diff -u -p -r1.19 net.c --- sys/lib/libsa/net.c 26 Oct 2015 02:33:07 - 1.19 +++ sys/lib/libsa/net.c 26 Oct 2

pwcache

2015-10-26 Thread Ted Unangst
Old bug in pwcache functions. Calling setpassent(1) to keep the passwd database open is a surprising abstraction violation for the caller of user_from_uid. Now it has a file descriptor it must close before exec by calling endpwent(), but this fact is not mentioned. (find is affected by this, for ex

Re: kill NLS (native language support) libc errno message

2015-10-26 Thread sven falempin
On Sat, Oct 24, 2015 at 10:44 AM, Stefan Sperling wrote: > On Sat, Oct 24, 2015 at 04:07:59PM +0200, Alexander Bluhm wrote: > > Hi, > > > > The only thing that is translated into multiple languages in OpenBSD > > are the errno messages and signal names. Everything else is in > > English. We are

Re: pair(4) (was: connect routing domains on layer 2)

2015-10-26 Thread gwes
On 10/24/15 06:46, Reyk Floeter wrote: vether doesn't help as it is not transmitting any traffic. in other words, "vether is a bridge endpoint" "pair is a bridge link" This may be a dead topic, but doesn't bridge_output() transmit for vether(4)? Or am I missing the point entirely? pair(4) do

Re: pair(4) (was: connect routing domains on layer 2)

2015-10-26 Thread Theo de Raadt
> On 10/24/15 06:46, Reyk Floeter wrote: > > vether doesn't help as it is not transmitting any traffic. > > in other words, "vether is a bridge endpoint" "pair is a bridge link" > This may be a dead topic, but doesn't bridge_output() transmit for > vether(4)? > Or am I missing the point entirely?

Re: inteldrm(4) diff that needs testing

2015-10-26 Thread Jan Stary
On Oct 24 23:48:01, mark.kette...@xs4all.nl wrote: > The diff below makes inteldrm(4) attach directly to pci(4) instead of > vga(1). Because inteldrm(4) depends on intagp(4), this also make > intagp(4) a child of inteldrm(4). Ultimately I'd like to integrate > intagp(4) into inteldrm(4), but that

Re: rewrite if_ifwithaddr() to use rtalloc(9)

2015-10-26 Thread Martin Pieuchot
On 26/10/15(Mon) 10:45, Vincent Gross wrote: > regress/sys/net/rdomains still passes with this diff. MP is hard! Let me comment on your diff, you're taking the right direction. > Index: net/if.c > === > RCS file: /cvs/src/sys/net/if

uptime in top

2015-10-26 Thread Ted Unangst
when i run top, i think uptime would be interesting info to include. there's some space on the second line under the hostname and time. i tried to squeeze it on the first line, but there isn't much room with 80 columns. Index: display.c

rewrite if_ifwithaddr() to use rtalloc(9)

2015-10-26 Thread Vincent Gross
regress/sys/net/rdomains still passes with this diff. Ok ? Index: net/if.c === RCS file: /cvs/src/sys/net/if.c,v retrieving revision 1.398 diff -u -p -r1.398 if.c --- net/if.c25 Oct 2015 21:58:04 - 1.398 +++ net/if.c

rip6query(8)

2015-10-26 Thread Theo de Raadt
does anyone use rip6query? we don't have a ripquery I cannot imagine the use for this too. Either you are using rip6 protocol, or you aren't. Does this perhaps still exist because route6d isn't like our other daemons with a "fib-update" mode?

Re: sed: better error message

2015-10-26 Thread Theo de Raadt
> Jérémie Courrèges-Anglas wrote: > > Michael McConville writes: > > > It looks like it can be pretty easily replaced with calls to err(3), > > > errx(3), warn(3), warnx(3), etc. > > > > Not sure about this, you'd have to repeat the same code over and over to > > print the line number and file

Re: utf8 hack for ls

2015-10-26 Thread Theo de Raadt
> Damien Miller wrote: > > rather than scattering hacks in each program that needs to > > output utf8 to the console, how about making something > > for libutil that they all can use? > > Yes, that is certainly the plan, but I think it's easier to see what's needed > if we convert a few programs f

Re: utf8 hack for ls

2015-10-26 Thread Ted Unangst
Damien Miller wrote: > rather than scattering hacks in each program that needs to > output utf8 to the console, how about making something > for libutil that they all can use? Yes, that is certainly the plan, but I think it's easier to see what's needed if we convert a few programs first to identi

Re: utf8 hack for ls

2015-10-26 Thread Damien Miller
rather than scattering hacks in each program that needs to output utf8 to the console, how about making something for libutil that they all can use? On Sun, 25 Oct 2015, Ted Unangst wrote: > it only gets deeper and thicker... > > this decodes chars and prints ? for bytes it doesn't like, as well