4 * Copyright (C) 2000-2004 by Darren Reed.
6 * See the IPFILTER.LICENCE file for details on licencing.
8 * $Id: tcp_flags.c,v 1.8.2.1 2006/06/16 17:21:17 darrenr Exp $
13 extern char flagset[];
14 extern u_char flags[];
17 u_char tcp_flags(flgs, mask, linenum)
22 u_char tcpf = 0, tcpfm = 0;
25 s = strchr(flgs, '/');
30 tcpf = strtol(flgs, NULL, 0);
32 tcpf = tcpflags(flgs);
37 tcpfm = strtol(s, NULL, 0);
44 tcpfm = 0xff & ~(TH_ECN|TH_CWR);
46 tcpfm = 0xff & ~(TH_ECN);