openbsd-ports/security/parse/patches/patch-summarize_c
2007-10-26 21:38:24 +00:00

33 lines
760 B
Plaintext

$OpenBSD: patch-summarize_c,v 1.1 2007/10/26 21:38:24 jasper Exp $
--- summarize.c.orig Wed Nov 6 23:59:38 1996
+++ summarize.c Fri Oct 26 23:33:35 2007
@@ -31,7 +31,8 @@
*/
#include <stdio.h>
-#include <alloca.h>
+#include <stdlib.h>
+#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/time.h>
@@ -44,7 +45,8 @@
#include <netinet/ip_icmp.h>
#include <netinet/tcp.h>
#include <netinet/udp.h>
-#include "pcap.h"
+#include <arpa/inet.h>
+#include <pcap.h>
#include "parse.h"
void summarize_handler();
@@ -90,7 +92,7 @@ u_char *p;
u_char *abuf, *abuf2;
u_long src, dst;
u_short src_port, dst_port;
- int flags, length;
+ int length;
ep = (struct ether_header *)p;
p += sizeof(struct ether_header);