diff options
Diffstat (limited to 'net/v6eval/files')
-rw-r--r-- | net/v6eval/files/patch-Bpfilter.h | 11 | ||||
-rw-r--r-- | net/v6eval/files/patch-McIKE.h | 11 | ||||
-rw-r--r-- | net/v6eval/files/patch-MvFunction.cc | 10 | ||||
-rw-r--r-- | net/v6eval/files/patch-RAFControl.h | 11 | ||||
-rw-r--r-- | net/v6eval/files/patch-hmac.c | 11 | ||||
-rw-r--r-- | net/v6eval/files/patch-lib_Cm_BtObject.cc | 10 | ||||
-rw-r--r-- | net/v6eval/files/patch-lib_Cm_CmMain.cc | 46 | ||||
-rw-r--r-- | net/v6eval/files/patch-lib_pkt_Makefile | 12 | ||||
-rw-r--r-- | net/v6eval/files/patch-sigcomp.c | 11 | ||||
-rw-r--r-- | net/v6eval/files/patch-x509dec.c | 18 |
10 files changed, 54 insertions, 97 deletions
diff --git a/net/v6eval/files/patch-Bpfilter.h b/net/v6eval/files/patch-Bpfilter.h deleted file mode 100644 index 4f56ee46dbf5..000000000000 --- a/net/v6eval/files/patch-Bpfilter.h +++ /dev/null @@ -1,11 +0,0 @@ ---- lib/pkt/Bpfilter.h 2001-10-05 20:41:19.000000000 +0900 -+++ lib/pkt/Bpfilter.h 2008-01-01 04:50:29.000000000 +0900 -@@ -62,7 +62,7 @@ public: - int statistics(uint32_t&,uint32_t&) const; - int receive(caddr_t) const; - int send(caddr_t,uint32_t) const; -- uint32_t Bpfilter::getDLT() const; -+ uint32_t getDLT() const; - }; - inline int Bpfilter::fileDesc() const {return fd_;} - inline uint32_t Bpfilter::bufferSize() const {return bufsize_;} diff --git a/net/v6eval/files/patch-McIKE.h b/net/v6eval/files/patch-McIKE.h deleted file mode 100644 index 7cbe4a97943f..000000000000 --- a/net/v6eval/files/patch-McIKE.h +++ /dev/null @@ -1,11 +0,0 @@ ---- lib/Pz/McIKE.h 2005-05-09 18:35:23.000000000 +0900 -+++ lib/Pz/McIKE.h 2008-01-01 04:36:34.000000000 +0900 -@@ -397,7 +397,7 @@ class WmISAKMP_Padding: public WmObject - - class PaISAKMP: public PaESP { - public: -- PaISAKMP::PaISAKMP(const MObject *m, CSTR st, int l): -+ PaISAKMP(const MObject *m, CSTR st, int l): - PaESP(m, st, l) {}; - virtual ~PaISAKMP() {} - diff --git a/net/v6eval/files/patch-MvFunction.cc b/net/v6eval/files/patch-MvFunction.cc deleted file mode 100644 index f9924132c1b0..000000000000 --- a/net/v6eval/files/patch-MvFunction.cc +++ /dev/null @@ -1,10 +0,0 @@ ---- lib/Pz/MvFunction.cc 2005-05-09 18:35:24.000000000 +0900 -+++ lib/Pz/MvFunction.cc 2008-01-01 04:41:51.000000000 +0900 -@@ -71,6 +71,7 @@ extern "C" { - #include <netinet/in.h> - #include <arpa/inet.h> - #include <openssl/hmac.h> -+#include <openssl/md5.h> - #include <openssl/sha.h> - } - diff --git a/net/v6eval/files/patch-RAFControl.h b/net/v6eval/files/patch-RAFControl.h deleted file mode 100644 index 30cf23b14f4b..000000000000 --- a/net/v6eval/files/patch-RAFControl.h +++ /dev/null @@ -1,11 +0,0 @@ ---- lib/pkt/RAFControl.h 2001-10-05 20:41:20.000000000 +0900 -+++ lib/pkt/RAFControl.h 2008-01-01 04:49:37.000000000 +0900 -@@ -69,7 +69,7 @@ virtual const PaObject* pop_SA(eAlgorith - CSTR reverseEvaluate(const McObject&,PvOctets&,bool&); - bool evaluateWith(RObject*,WObject*) const; - WObject* evaluateAlgorithm(RObject*) const; -- WObject* RAFControl::evaluate(RObject*); -+ WObject* evaluate(RObject*); - virtual void reset(); - void applyFrame(const WObject* w) const; - const WAlgorithm* appliedAlgorithm() const; diff --git a/net/v6eval/files/patch-hmac.c b/net/v6eval/files/patch-hmac.c deleted file mode 100644 index 54438e569464..000000000000 --- a/net/v6eval/files/patch-hmac.c +++ /dev/null @@ -1,11 +0,0 @@ ---- lib/Pz/crypto/hmac/hmac.c 2002-05-27 18:56:19.000000000 +0900 -+++ lib/Pz/crypto/hmac/hmac.c 2008-01-01 04:48:38.000000000 +0900 -@@ -60,7 +60,7 @@ - #include <stdio.h> - #include <stdlib.h> - #include <string.h> --#include <openssl/hmac.h> -+#include "hmac.h" - - void HMAC_Init(HMAC_CTX *ctx, const void *key, int len, - const EVP_MD *md) diff --git a/net/v6eval/files/patch-lib_Cm_BtObject.cc b/net/v6eval/files/patch-lib_Cm_BtObject.cc deleted file mode 100644 index cc9c162c7b3d..000000000000 --- a/net/v6eval/files/patch-lib_Cm_BtObject.cc +++ /dev/null @@ -1,10 +0,0 @@ ---- lib/Cm/BtObject.cc.orig 2001-10-11 20:56:13.000000000 -0800 -+++ lib/Cm/BtObject.cc 2008-02-03 13:27:51.000000000 -0900 -@@ -47,6 +47,6 @@ - BtObject::BtObject(const BtObject&) {} - BtObject::~BtObject() {} - uint32_t BtObject::hash() const {return 0;} --int BtObject::compare(const BtObject*p) const {return (int)this-(int)p;} -+int BtObject::compare(const BtObject*p) const {return (long)this-(long)p;} - bool BtObject::isEqual(const BtObject* v) const { - return compare(v)==0;} diff --git a/net/v6eval/files/patch-lib_Cm_CmMain.cc b/net/v6eval/files/patch-lib_Cm_CmMain.cc index 4519d9e59cf2..d9f46e37fe09 100644 --- a/net/v6eval/files/patch-lib_Cm_CmMain.cc +++ b/net/v6eval/files/patch-lib_Cm_CmMain.cc @@ -1,9 +1,10 @@ ---- lib/Cm/CmMain.cc.orig 2003-10-23 13:37:30.000000000 +0900 -+++ lib/Cm/CmMain.cc 2013-03-06 04:38:49.000000000 +0900 -@@ -47,7 +47,11 @@ +--- lib/Cm/CmMain.cc.orig 2009-08-27 09:10:04.000000000 +0900 ++++ lib/Cm/CmMain.cc 2013-05-04 04:59:43.000000000 +0900 +@@ -48,13 +48,17 @@ #include <string.h> #include <stdlib.h> #include <unistd.h> ++#include <sys/param.h> +#if __FreeBSD_version <= 900006 #include <utmp.h> +#else @@ -12,12 +13,49 @@ #include <time.h> #include <pwd.h> #include <sys/time.h> -@@ -129,7 +133,7 @@ + #include <sys/types.h> + #include <sys/resource.h> +-#include <sys/param.h> + extern int causeStopSignals[]; + static int stopSingals[]={SIGINT,SIGQUIT,SIGTERM,0}; + extern void applicationMain(CmMain*); +@@ -129,21 +133,37 @@ + //---------------------------------------------------------------------- // 障害解析情報作成 ++#if __FreeBSD_version <= 900006 static struct utmp *myUtmpEnt(FILE *in,struct utmp *u) { - int s=ttyslot(); + int s = 0; if(s<0||fseek(in,sizeof(struct utmp)*s,0)<0|| fread(u,sizeof(struct utmp),1,in)==0) {return 0;} return u;} + void CmMain::makeCatch2Eye(STR p) { + static char catch2[]=" on %*.*s:%-*.*s from %*.*s"; + struct utmp ux[1], *u; FILE *in; +- if((in=fopen("/etc/utmp","r"))==NULL) {return;} ++ if((in=fopen(_PATH_UTMP,"r"))==NULL) {return;} + u=myUtmpEnt(in,ux); fclose(in); + if(!u) {return;} + #define A(a)sizeof(a),sizeof(a),a + sprintf(p,catch2,A(u->ut_line),A(u->ut_name),A(u->ut_host)); + #undef A + return;} ++#else ++void CmMain::makeCatch2Eye(STR p) { ++static char catch2[]=" on %*.*s:%-*.*s from %*.*s"; ++ struct utmpx ux, *u; ++ memset(&ux, 0, sizeof(ux)); ++ ux.ut_type = USER_PROCESS; ++ snprintf(ux.ut_user, sizeof(ux.ut_user), "%d", getuid()); ++ u = getutxuser(ux.ut_user); ++ if (u == NULL) ++ return; ++#define A(a)sizeof(a),sizeof(a),a ++ sprintf(p, catch2, A(u->ut_line), A(u->ut_user), A(u->ut_host)); ++#undef A ++ return;} ++#endif + void CmMain::makeCatchEye(const STR pgmName) { + static char catch1[]="@(#) %02d/%02d/%02d %02d:%02d:%02d %s STARTED by %s@%s"; + time_t now=time(0); struct tm *m=localtime(&now); diff --git a/net/v6eval/files/patch-lib_pkt_Makefile b/net/v6eval/files/patch-lib_pkt_Makefile new file mode 100644 index 000000000000..624937bf99be --- /dev/null +++ b/net/v6eval/files/patch-lib_pkt_Makefile @@ -0,0 +1,12 @@ +--- lib/pkt/Makefile.orig 2013-05-04 05:06:29.000000000 +0900 ++++ lib/pkt/Makefile 2013-05-04 05:06:32.000000000 +0900 +@@ -5,6 +5,9 @@ + BpfAgent.cc Bpfilter.cc Ringbuf.cc RunEnv.cc PktCtlClient.cc \ + PktSndClient.cc PktRcvClient.cc PktBuf.cc PktQueue.cc bufStat.cc + ++LxLexer.o: PzParse.h ++PzParse.h: PzParse.cc ++ + CXXFLAGS+= -I. -I$(Cm) -I$(Pz) -DHAVE_BPF_HDRCMPLT -I/usr/include + # CXXFLAGS+= -DVCLEAR_DBG + diff --git a/net/v6eval/files/patch-sigcomp.c b/net/v6eval/files/patch-sigcomp.c deleted file mode 100644 index b14a8ea4a0be..000000000000 --- a/net/v6eval/files/patch-sigcomp.c +++ /dev/null @@ -1,11 +0,0 @@ ---- bin/sigcomp/sigcomp.c 2005-05-27 20:40:19.000000000 +0900 -+++ bin/sigcomp/sigcomp.c 2008-01-01 06:03:23.000000000 +0900 -@@ -53,7 +53,7 @@ - - #include <openssl/err.h> - #include <openssl/evp.h> -- -+#include <openssl/rsa.h> - - - #ifdef DEBUG diff --git a/net/v6eval/files/patch-x509dec.c b/net/v6eval/files/patch-x509dec.c deleted file mode 100644 index fd6a9afa91cf..000000000000 --- a/net/v6eval/files/patch-x509dec.c +++ /dev/null @@ -1,18 +0,0 @@ ---- bin/x509dec/x509dec.c 2005-05-30 19:17:31.000000000 +0900 -+++ bin/x509dec/x509dec.c 2008-01-01 06:02:24.000000000 +0900 -@@ -244,13 +244,13 @@ x509dec_on_evp(const X509 *const x509) - - TAILQ_INIT(&head); - -- if(!((unsigned char *)pubkey = -+ if(!(pubkey = - X509dec_get_pubkey(x509, &pubkeylen))) { - - return(x509dec_on_evp_return(false, pubkey, subject_name)); - } - -- if(!((unsigned char *)subject_name = -+ if(!(subject_name = - X509dec_get_subject_name(x509, (int *)&subject_namelen))) { - - return(x509dec_on_evp_return(false, pubkey, subject_name)); |