[Snort-devel] TCP_MSS redefined warnings

Bill Marquette wlmarque at ...10...
Fri Sep 15 14:46:32 EDT 2000

It looks like decode.h defines TCP_MSS, or in my case redefines it in my CVS
checkout from 9/14 (I haven't checked out in a while).

On Solaris 2.6 the following can be found in /usr/include/netinet/tcp.h
 * Default maximum segment size for TCP.
 * With an IP MSS of 576, this is 536,
 * but 512 is probably more convenient.
#ifdef  lint
#define TCP_MSS 536
#define TCP_MSS MIN(512, IP_MSS - sizeof (struct tcpiphdr))

I assume the #define in decode.h should be an #ifndef TCP_MSS ?


More information about the Snort-devel mailing list