pkgsrc/security/rid/patches/patch-ac

44 lines
922 B
Text
Raw Normal View History

2008-05-28 00:28:21 +02:00
$NetBSD: patch-ac,v 1.2 2008/05/27 22:28:21 agc Exp $
2005-12-08 18:36:56 +01:00
--- grammer.y.orig 2005-12-08 17:37:54.000000000 +0000
+++ grammer.y
2008-05-28 00:28:21 +02:00
@@ -1,4 +1,7 @@
2005-12-08 18:36:56 +01:00
%{
2008-05-28 00:28:21 +02:00
+#include <sys/types.h>
+
2005-12-08 18:36:56 +01:00
+#include <errno.h>
#include <stdio.h>
#include <strings.h>
#include "netconfig.h"
2008-05-28 00:28:21 +02:00
@@ -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;
2005-12-08 18:36:56 +01:00
/* Name of current ddos we're working on */
char ddos_name[BUFSIZE];
-
-extern int errno;
%}
%union {
2008-05-28 00:28:21 +02:00
char *string;
- u_short us;
- u_long ul;
+ uint16_t us;
+ uint64_t ul;
}
%token START END SEND RECV