summaryrefslogtreecommitdiff
path: root/security/rid/patches/patch-ac
blob: 8fdd10cb68381f5b58a61809acd8f36e632e8b11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
$NetBSD: patch-ac,v 1.2 2008/05/27 22:28:21 agc Exp $

--- grammer.y.orig	2005-12-08 17:37:54.000000000 +0000
+++ grammer.y
@@ -1,4 +1,7 @@
 %{
+#include <sys/types.h>
+
+#include <errno.h>
 #include <stdio.h>
 #include <strings.h>
 #include "netconfig.h"
@@ -9,25 +12,23 @@
 extern struct udp_item *UDP_Recv;
 extern struct tcp_item *TCP_Send;
 extern struct tcp_item *TCP_Recv;
-extern u_short ConfigNum;
+extern uint16_t 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;
+uint64_t sport=-1, dport=-1, seq=-1, id=-1, type=-1, code=-1, ack=-1, win=-1;
+uint64_t 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;
+	uint16_t us;
+	uint64_t ul;
 }
 
 %token START END SEND RECV