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 the log

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 (size_t)

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 route.

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 err.h #include stdio.h #include stdlib.h #include string.h #include sys/types.h #include sys/socket.h #include sys/ioctl.h #include sys/fcntl.h

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?

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:

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 kspill...@acm.org 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@