Re: diff -w vs files that don't end in a newline

2014-08-25 Thread Philip Guenther
On Mon, Aug 25, 2014 at 2:01 PM, Kent R. Spillner wrote: ... > Here's an updated diff. This adds a new testcase covering the situation > when b has fewer lines than a (the minus sign also appeared in the wrong > location). > > Ok? > Looks good to me. Thanks! ok guenther@

Bug in gethostbyaddr and patch to solve

2014-08-25 Thread Vladimir Támara Patiño
Using tcpdump in a firewall with 5.5 (also happens with 5.4 and I guess with current) and certain addres of the LAN I got always a segfault. It is a bug within the function gethostbyaddr. It can be reproduced with the minimal test program available at: http://openbsd.7691.n7.nabble.com/problem

divert-packet does not work inside anchor

2014-08-25 Thread System Administrator
If I understand PF documentation correctly, then I stumbled onto a bug. Through process of elimination and simplification I've determined that the following pf.conf(5) snippet works flawlessly, while the one below (same thing inside an anchor) does not. How can I [help] track down this bug? Con

Re: diff -w vs files that don't end in a newline

2014-08-25 Thread Kent R. Spillner
On Sat, Aug 16, 2014 at 11:04:37PM -0500, Kent R. Spillner wrote: > On Fri, Aug 15, 2014 at 02:13:55PM -0700, Philip Guenther wrote: > > In case someone is bored (heh) and looking for a user land bug to fix... > > > > Given this: > >printf '1\n2' >a > >printf '1\n2\n3' >b > > > > Compare

Queue add, programing C

2014-08-25 Thread Nippur
Hello, I need help with the new queue system pf, what I want is to know how to add a rule in c using pfvar.h, so far what I have is this: #include #include #include #include #include #include #include #include #include #include #include int main() { struct pfioc_queue q;

Re: syslogd ipv6 proto6

2014-08-25 Thread Alexander Bluhm
On Fri, Aug 22, 2014 at 06:43:47PM +0200, Alexander Bluhm wrote: > At the moment syslogd opens both IPv4 and IPv6 sockets unconditionally. > I can restrict it to a protocol family with -4 and -6 command line > switches. If the log server is a FQDN, DNS chosses wether to take > the IPv4 or IPv6 rou

syslogd pathlen

2014-08-25 Thread Alexander Bluhm
Hi, Call check_tty_name() and check_log_name() with the string size and don't access memory beyond. Make sure that the complete string "/dev/null" can be copied. ok? bluhm ? usr.sbin/syslogd/obj Index: usr.sbin/syslogd/privsep.c =

Re: syslogd comparison between signed and unsigned

2014-08-25 Thread Alexander Bluhm
On Fri, Aug 22, 2014 at 09:14:33PM +0200, Alexander Bluhm wrote: > Hi, > > When compiling syslogd with WARNINGS=yes gcc complains with many > "warning: comparison between signed and unsigned". > > I would like to fix them. > > ok? I still need an ok. Note that some checks got stricter. The (si

Re: syslogd ipv6 proto6

2014-08-25 Thread Alexander Bluhm
On Sat, Aug 23, 2014 at 01:10:52PM +0200, Alexander Bluhm wrote: > On Fri, Aug 22, 2014 at 06:43:47PM +0200, Alexander Bluhm wrote: > > At the moment syslogd opens both IPv4 and IPv6 sockets unconditionally. > > I can restrict it to a protocol family with -4 and -6 command line > > switches. If th