add patches
This commit is contained in:
parent
6f17cab2b2
commit
96d4e3fe3d
2 changed files with 55 additions and 0 deletions
24
doorman/patches/patch-aa
Normal file
24
doorman/patches/patch-aa
Normal file
|
@ -0,0 +1,24 @@
|
|||
$NetBSD: patch-aa,v 1.1 2009/10/03 08:50:26 shindenmorr Exp $
|
||||
|
||||
allow to look for lsof
|
||||
|
||||
--- configure.orig 2005-09-05 17:07:45.000000000 +0200
|
||||
+++ configure
|
||||
@@ -4865,7 +4865,7 @@ else
|
||||
;;
|
||||
*)
|
||||
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
||||
-as_dummy="/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin"
|
||||
+as_dummy="/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin:@PREFIX@/bin:@PREFIX@/sbin"
|
||||
for as_dir in $as_dummy
|
||||
do
|
||||
IFS=$as_save_IFS
|
||||
@@ -4893,7 +4893,7 @@ else
|
||||
echo "${ECHO_T}no" >&6
|
||||
fi
|
||||
|
||||
-if test "$LSOF" == "no"; then
|
||||
+if test "$LSOF" = "no"; then
|
||||
echo -e "\a"
|
||||
echo "*** Utility 'lsof' is missing; doormand cannot function properly without it."
|
||||
echo "*** (Get lsof at: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof.tar.gz)"
|
31
doorman/patches/patch-ab
Normal file
31
doorman/patches/patch-ab
Normal file
|
@ -0,0 +1,31 @@
|
|||
$NetBSD: patch-ab,v 1.1 2009/10/03 08:50:26 shindenmorr Exp $
|
||||
|
||||
--- doormand.c.orig 2005-09-04 17:42:18.000000000 +0200
|
||||
+++ doormand.c
|
||||
@@ -827,7 +827,7 @@ int aindex (struct archive_record *p, in
|
||||
int main (int argc, char *argv[])
|
||||
{
|
||||
struct pcap_pkthdr packet_hdr ;
|
||||
- unsigned char *p ;
|
||||
+ char *p ;
|
||||
struct ip *ip ;
|
||||
struct udphdr *udp ;
|
||||
struct config_block cfg ;
|
||||
@@ -1332,7 +1332,7 @@ reconfigure:
|
||||
errno = 0 ;
|
||||
netdown_count = 0 ;
|
||||
|
||||
- p = (unsigned char *)pcap_next (G_cap, &packet_hdr) ;
|
||||
+ p = (char *)pcap_next (G_cap, &packet_hdr) ;
|
||||
if (G_reconfigure) {
|
||||
if (daemonize) err_closelog() ;
|
||||
goto reconfigure ;
|
||||
@@ -1378,7 +1378,7 @@ reconfigure:
|
||||
if (ip->ip_off & IP_MF) continue ; // " "
|
||||
|
||||
udp = (struct udphdr*) (p + ip_hl) ;
|
||||
- payload = (unsigned char*)udp + sizeof(struct udphdr) ;
|
||||
+ payload = (char*)udp + sizeof(struct udphdr) ;
|
||||
memcpy (t, payload, 16) ;
|
||||
//printf ("strlen(payload) = %d; payload = '%s'\n", strlen(payload), payload) ;
|
||||
|
Loading…
Reference in a new issue