aboutsummaryrefslogtreecommitdiff
path: root/net/honeyd/files
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2006-04-29 12:33:12 +0000
committerPav Lucistnik <pav@FreeBSD.org>2006-04-29 12:33:12 +0000
commitb6de0020508225b134a0d5f0875499f13f4fcb37 (patch)
tree692af61ea4fed405d83cd24b51a7b0407efb5636 /net/honeyd/files
parent1ce6679262bbd99946b639601416635f253e266b (diff)
Notes
Diffstat (limited to 'net/honeyd/files')
-rw-r--r--net/honeyd/files/patch-config.c11
-rw-r--r--net/honeyd/files/patch-dhcpclient.c26
-rw-r--r--net/honeyd/files/patch-honeyd.h20
-rw-r--r--net/honeyd/files/patch-lex.c74
-rw-r--r--net/honeyd/files/patch-rrdtool.c20
5 files changed, 3 insertions, 148 deletions
diff --git a/net/honeyd/files/patch-config.c b/net/honeyd/files/patch-config.c
deleted file mode 100644
index 67e8535e8c1e..000000000000
--- a/net/honeyd/files/patch-config.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- config.c.orig Thu Apr 14 16:07:26 2005
-+++ config.c Thu Apr 14 14:55:34 2005
-@@ -838,7 +838,7 @@
- IP_PROTO_TCP, src.addr_ip, dst.addr_ip);
- ip_checksum(pkt, iplen);
-
-- honeyd_recv_cb(&inter, &pkthdr, pkt);
-+ honeyd_recv_cb((u_char *)&inter, &pkthdr, pkt);
- }
- gettimeofday(&tv_end, NULL);
- timersub(&tv_end, &tv_start, &tv_end);
diff --git a/net/honeyd/files/patch-dhcpclient.c b/net/honeyd/files/patch-dhcpclient.c
index 95d38335a0cd..5cf499cfb36d 100644
--- a/net/honeyd/files/patch-dhcpclient.c
+++ b/net/honeyd/files/patch-dhcpclient.c
@@ -1,6 +1,6 @@
---- dhcpclient.c.orig Thu Apr 14 16:07:26 2005
-+++ dhcpclient.c Thu Apr 14 15:24:19 2005
-@@ -236,8 +236,8 @@
+--- dhcpclient.c.orig Thu Apr 20 08:23:52 2006
++++ dhcpclient.c Thu Apr 20 08:24:15 2006
+@@ -211,8 +211,8 @@
{
struct dhcpclient_req *req = tmpl->dhcp_req;
struct dhcp_msg *msg = (struct dhcp_msg *)buf;
@@ -11,23 +11,3 @@
short replyreq = 0, ack = 0, done = 0;
struct netconf nc;
struct addr *which = NULL, ipmask;
-@@ -472,7 +472,8 @@
-
- memset(buf, 0, sizeof(buf));
-
-- eth = (struct eth_hdr *)p = buf;
-+ p = buf;
-+ eth = (struct eth_hdr *)p;
- eth_pack_hdr(eth, ETH_ADDR_BROADCAST, req->ea, ETH_TYPE_IP);
-
- restlen -= ETH_HDR_LEN;
-@@ -524,7 +525,8 @@
-
- memset(buf, 0, sizeof(buf));
-
-- eth = (struct eth_hdr *)p = buf;
-+ p = buf;
-+ eth = (struct eth_hdr *)p;
- eth_pack_hdr(eth, req->server_ea, req->ea, ETH_TYPE_IP);
-
- restlen -= ETH_HDR_LEN;
diff --git a/net/honeyd/files/patch-honeyd.h b/net/honeyd/files/patch-honeyd.h
deleted file mode 100644
index 57eab22b6c11..000000000000
--- a/net/honeyd/files/patch-honeyd.h
+++ /dev/null
@@ -1,20 +0,0 @@
---- honeyd.h.orig Thu Apr 14 16:07:26 2005
-+++ honeyd.h Thu Apr 14 14:30:27 2005
-@@ -32,6 +32,8 @@
- #ifndef _HONEYD_H_
- #define _HONEYD_H_
-
-+#include <pcap.h>
-+
- #define PIDFILE "/var/run/honeyd.pid"
-
- #define TCP_DEFAULT_SIZE 512
-@@ -300,6 +302,8 @@
- char *honeyd_contoa(const struct tuple *);
-
- void honeyd_input(const struct interface *, struct ip_hdr *, u_short);
-+
-+void honeyd_recv_cb(u_char *, const struct pcap_pkthdr *, const u_char *);
-
- /* Command prototypes for services */
- void cmd_droppriv(uid_t, gid_t);
diff --git a/net/honeyd/files/patch-lex.c b/net/honeyd/files/patch-lex.c
deleted file mode 100644
index 90dd070ddb54..000000000000
--- a/net/honeyd/files/patch-lex.c
+++ /dev/null
@@ -1,74 +0,0 @@
---- lex.c.orig Thu Apr 14 16:07:26 2005
-+++ lex.c Thu Apr 14 14:48:11 2005
-@@ -153,8 +153,6 @@
- } \
- while ( 0 )
-
--#define unput(c) yyunput( c, yytext_ptr )
--
- /* The following is because we cannot portably get our hands on size_t
- * (without autoconf's help, which isn't available because we want
- * flex-generated scanners to compile on their own).
-@@ -657,10 +655,6 @@
- #endif
- #endif
-
--#ifndef YY_NO_UNPUT
--static void yyunput YY_PROTO(( int c, char *buf_ptr ));
--#endif
--
- #ifndef yytext_ptr
- static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
- #endif
-@@ -1662,51 +1656,6 @@
-
- return yy_is_jam ? 0 : yy_current_state;
- }
--
--
--#ifndef YY_NO_UNPUT
--#ifdef YY_USE_PROTOS
--static void yyunput( int c, register char *yy_bp )
--#else
--static void yyunput( c, yy_bp )
--int c;
--register char *yy_bp;
--#endif
-- {
-- register char *yy_cp = yy_c_buf_p;
--
-- /* undo effects of setting up yytext */
-- *yy_cp = yy_hold_char;
--
-- if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
-- { /* need to shift things up to make room */
-- /* +2 for EOB chars. */
-- register int number_to_move = yy_n_chars + 2;
-- register char *dest = &yy_current_buffer->yy_ch_buf[
-- yy_current_buffer->yy_buf_size + 2];
-- register char *source =
-- &yy_current_buffer->yy_ch_buf[number_to_move];
--
-- while ( source > yy_current_buffer->yy_ch_buf )
-- *--dest = *--source;
--
-- yy_cp += (int) (dest - source);
-- yy_bp += (int) (dest - source);
-- yy_current_buffer->yy_n_chars =
-- yy_n_chars = yy_current_buffer->yy_buf_size;
--
-- if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
-- YY_FATAL_ERROR( "flex scanner push-back overflow" );
-- }
--
-- *--yy_cp = (char) c;
--
--
-- yytext_ptr = yy_bp;
-- yy_hold_char = *yy_cp;
-- yy_c_buf_p = yy_cp;
-- }
--#endif /* ifndef YY_NO_UNPUT */
-
-
- #ifdef __cplusplus
diff --git a/net/honeyd/files/patch-rrdtool.c b/net/honeyd/files/patch-rrdtool.c
deleted file mode 100644
index 8e0f246c2021..000000000000
--- a/net/honeyd/files/patch-rrdtool.c
+++ /dev/null
@@ -1,20 +0,0 @@
---- rrdtool.c.orig Thu Apr 14 16:07:26 2005
-+++ rrdtool.c Thu Apr 14 15:31:15 2005
-@@ -444,7 +444,7 @@
- int
- rrdtool_fork(struct rrdtool_drv *drv)
- {
-- char *argv[3];
-+ const char *argv[3];
- int pair[2];
- sigset_t sigmask;
-
-@@ -485,7 +485,7 @@
-
- close(pair[1]);
-
-- if (execvp(drv->bin_path, argv) == -1)
-+ if (execvp(drv->bin_path, (char *const *)argv) == -1)
- err(1, "%s: execv(%s)", __func__, drv->bin_path);
-
- /* NOT REACHED */