%{ #include #include #include "config.h" #include "netconfig.h" extern struct icmp_item *ICMP_Send; extern struct icmp_item *ICMP_Recv; extern struct udp_item *UDP_Send; extern struct udp_item *UDP_Recv; extern u_short ConfigNum; /* Fields that might be set */ u_long sport=-1, dport=-1, seq=-1, id=-1, type=-1, code=-1, ack=-1, win=-1; u_long nmatch=-1; /* Data in the packet */ char *data; /* Name of current ddos we're working on */ char ddos_name[BUFSIZE]; extern int errno; %} %union { char *string; u_short us; u_long ul; } %token START END SEND RECV /* Must define the next two lines still */ %token ICMP UDP TCP %token