lost change 272451 - CAP_EVENT for tcpdump (Re: svn commit: r276788 - in head: contrib/tcpdump contrib/tcpdump/lbl contrib/tcpdump/missing usr.sbin/tcpdump/tcpdump

Dag-Erling Smørgrav des at des.no
Sun Feb 8 16:51:38 UTC 2015


Bryan Drewery <bdrewery at FreeBSD.org> writes:
> The problem is that pf is implemented differently on FreeBSD and OpenBSD
> for pid/uid tracking. The code would be overly complex to support both
> and I gave up on that. Even getting it to work on FreeBSD required the
> _KERNEL define hack for UID_MAX, which our pf uses to note 'no uid value'.

First-class stupidity on POSIX's part which defines FOO_MAX for almost
every single integer type but not for uid_t or gid_t.  FreeBSD has them,
but Linux doesn't, so I usually end up doing

#ifndef UID_MAX
#define UID_MAX ((uid_t)-1)
#endif

in cross-platform code.

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the svn-src-all mailing list