broadcast simplex checksum

2021-01-19 Thread Alexander Bluhm
Hi, Simplex interfaces reinject broadcast packets back into the IP stack. As this is a software features, no hardware checksumming occurs. So local broadcast packets are dropped with wrong checksum if the underlying hardware supports checksumming. Do software checksumming in ip_output() if the

Re: Big endian and strict alignment

2021-01-19 Thread Masato Asou
From: Masato Asou Date: Tue, 19 Jan 2021 17:02:42 +0900 (JST) > お客さんから「何か情報知ってますか?」という問い合わせがあったので、ど > なたか情報をお持ちの方がいたら、情報提供をお願いします。 Sorry. I made a mistake in the address of the email. -- ASOU Masato

Re: bpf(4) doesn't have to keep track of nonblocking state itself

2021-01-19 Thread Vitaliy Makkoveev
ok mvs@ > On 19 Jan 2021, at 03:11, David Gwynne wrote: > > vfs does it for us. > > ok? > > Index: bpf.c > === > RCS file: /cvs/src/sys/net/bpf.c,v > retrieving revision 1.202 > diff -u -p -r1.202 bpf.c > --- bpf.c 17 Jan

dig(1): replace inet_net_pton(3)

2021-01-19 Thread Florian Obser
When we converted isc_sockaddr_t to sockaddr_storage we also moved to inet_net_pton(3). It turns out that was a mistake, at least it's not portable for AF_INET6. Effectively revert that part and hand-roll it using inet_pton(3). OK? p.s. it is kinda telling that isc, who introduced the API is (no

Re: rad(8): get rid of inet_net_{ntop,pton}(3)

2021-01-19 Thread Theo Buehler
On Mon, Jan 18, 2021 at 06:41:26PM +0100, Florian Obser wrote: > > > This is not an api that seems to have caught on (especially the > AF_INET6 variant), maybe we can get rid of it entirely. > > (I also suspect that the AF_INET6 version is broken on FreeBSD and > NetBSD as well as mac osx.)

malloc.conf and pledge

2021-01-19 Thread Benjamin Baier
Hi, /etc/malloc.conf is long gone(6.5). Time to remove the special case? Xenocara is clean. Base only mentions malloc.conf in a comment in regress/usr.bin/ssh/connect-privsep.sh. Ports mention /etc/malloc.conf in an old and unused systrace policy. Ports with jemalloc should never use

Re: tcpdump pflog af and rewritten addresses

2021-01-19 Thread Alexandr Nedvedicky
Hello, On Mon, Jan 18, 2021 at 07:47:56PM +0100, Alexander Bluhm wrote: > Hi, > > tcpdump pflog with addresses rewritten by rdr-to, nat-to, or af-to > is broken. > > 1. Fix address family of the packet in af-to rules: > > before: > 19:26:37.620926 169.254.0.14 > 169.254.0.14: icmp: echo

Re: pflog remove translation

2021-01-19 Thread Alexandr Nedvedicky
Hello, On Mon, Jan 18, 2021 at 04:47:08PM +0100, Alexander Bluhm wrote: > Hi, > > pflog(4) tries to log the translated packet with rdr-to, nat-to, > and af-to applied. Therefore it creates a mbuf chain on the stack > with a partial copy. This might have been a good idea for plain > IPv4 10

iscsid initiator cleanup

2021-01-19 Thread Claudio Jeker
In iscsid the initiator is kind of a singleton. So lets make use of this and remove the initiator argument from all function calls. This compiles for me but I can't currently test this out. -- :wq Claudio Index: initiator.c === RCS

Re: bpf(4) doesn't have to keep track of nonblocking state itself

2021-01-19 Thread Claudio Jeker
On Tue, Jan 19, 2021 at 10:11:14AM +1000, David Gwynne wrote: > vfs does it for us. > > ok? OK claudio@ > Index: bpf.c > === > RCS file: /cvs/src/sys/net/bpf.c,v > retrieving revision 1.202 > diff -u -p -r1.202 bpf.c > --- bpf.c

Big endian and strict alignment

2021-01-19 Thread Masato Asou
お客さんから「何か情報知ってますか?」という問い合わせがあったので、ど なたか情報をお持ちの方がいたら、情報提供をお願いします。 要望としては、以下の二点 (いずれか一方でも可) を満たす Raspberry Pi の ように手軽に入手できるマシンありませんか?というものです。 - Big endian - Strict alignment: MIPS のように WORD (4byte) の読み書きは 4byte 境 界でなければならない。 -- ASOU Masato