Re: [tcpdump-workers] Using libnetdissect in other code, outside tcpdump source tree

2020-08-24 Thread Denis Ovsienko via tcpdump-workers
--- Begin Message --- On Wed, 12 Aug 2020 13:31:36 -0700 Guy Harris via tcpdump-workers wrote: [...] > > Also, netdissect.h likes to #define min() and max() macros, which > > makes life interesting when you have, say, a struct with min and > > max elements. > > It should probably define

Re: [tcpdump-workers] Using libnetdissect in other code, outside tcpdump source tree

2020-08-14 Thread Bill Fenner via tcpdump-workers
--- Begin Message --- On Wed, Aug 12, 2020 at 6:22 PM Guy Harris wrote: > On Aug 12, 2020, at 1:31 PM, Guy Harris via tcpdump-workers < > tcpdump-workers@lists.tcpdump.org> wrote: > > > We should probably have an include/libnetdissect directory in which we > install netdissect.h and the headers

Re: [tcpdump-workers] Using libnetdissect in other code, outside tcpdump source tree

2020-08-12 Thread Guy Harris via tcpdump-workers
--- Begin Message --- On Aug 12, 2020, at 1:31 PM, Guy Harris via tcpdump-workers wrote: > We should probably have an include/libnetdissect directory in which we > install netdissect.h and the headers it requires. Or include/netdissect. > However, API-declaring headers should *NEVER* require

Re: [tcpdump-workers] Using libnetdissect in other code, outside tcpdump source tree

2020-08-12 Thread Guy Harris via tcpdump-workers
--- Begin Message --- On Aug 11, 2020, at 4:55 AM, Bill Fenner via tcpdump-workers wrote: > Is there a plan for a public face for libnetdissect? At some point we should probably do that. (Back in the late '90's, I discovered a program called tcpview, which was a Motif(!)-based GUI network

[tcpdump-workers] Using libnetdissect in other code, outside tcpdump source tree

2020-08-12 Thread Bill Fenner via tcpdump-workers
--- Begin Message --- Hi, Is there a plan for a public face for libnetdissect? I've tried teasing it out, and I ended up having to install: funcattrs.h print.h config.h netdissect.h ip.h ip6.h compiler-tests.h status-exit-codes.h in /usr/include/tcpdump/ in order to compile a libnetdissect-using