• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修訂23813d2c8272de9ce7c0c38854a04bf07256ce24 (tree)
時間2013-11-29 16:29:20
作者Hiroaki Nakano <nakano.hiroaki@nttc...>
CommiterHiroaki Nakano

Log Message

Merge branch 'master' of file:///var/www/html/ultramonkey-l7-v3.git

Conflicts:
README
doc/man/l7directord.8
doc/man/l7vsadm.8
l7directord/Makefile.am
l7directord/l7directord
l7vsd/init.d/Makefile.am
l7vsd/module/protocol/protocol_module_ip.cpp
l7vsd/module/protocol/protocol_module_sessionless.cpp
l7vsd/src/l7vsd.cpp
l7vsd/src/session_thread_control.cpp
l7vsd/src/virtualservice_tcp.cpp
ultramonkeyl7.spec

Signed-off-by: Hiroaki Nakano <nakano.hiroaki@nttcom.co.jp>

Change Summary

差異

--- a/README
+++ b/README
@@ -14,7 +14,7 @@ System requirements
1414
1515 CPU : Intel x86 and x86_64 or compatible architecture processors
1616
17- Memory : 2 GB(recommended)
17+ Memory : 4 GB(recommended)
1818
1919 Libraries : log4cxx(C++ Logging Libraries) boost(C++ Template Libraries)
2020
--- a/doc/man/l7directord.8
+++ b/doc/man/l7directord.8
@@ -327,13 +327,11 @@ check if a server is alive. They override the request-receive pair in the
327327 virtual server section. These two strings must be quoted. If the request
328328 string starts with \fIhttp://...\fR the IP-address and port of the real server
329329 is overridden, otherwise the IP-address and port of the real server is used.
330-.IP "\fBmodule =\fR \fIproto-module module-args [opt\-module\-args]\fR" 4
331-.IX Item "module = proto-module module-args [opt-module-args]"
330+.IP "\fBmodule =\fR \fIproto-module [opt\-module\-args]\fR" 4
331+.IX Item "module = proto-module [opt-module-args]"
332332 Indicates the module parameter of \fBl7directord\fR. Here \fBproto-module\fR
333-denotes the protocol module name (For example, pfilter). \fBmodule-args\fR denotes the
334-arguments for the protocol module (For example, \-\-pattern\-match '*.html*').
335-\&\fBmodule-args\fR is optional only when set \fBsessionless\fR, \fBip\fR and \fBsslid\fR module to \fBproto-module\fR.
336-The last argument is optional (For example, \-\-reschedule).
333+denotes the protocol module name (For example, sessionless).
334+The last argument \&\fBopt-module-args\fR is optional (For example, \-\-reschedule).
337335 .Sh "More than one of these entries may be inside a virtual section:"
338336 .IX Subsection "More than one of these entries may be inside a virtual section:"
339337 .IP "\fBmaxconn =\fR \fIn\fR" 4
--- a/doc/man/l7vsadm.8
+++ b/doc/man/l7vsadm.8
@@ -145,7 +145,7 @@ Create the TCP service.
145145 Specify the protocol module.
146146
147147 .br
148-\fIproto\-module\fR := { url | sslid | sessionless | pfilter | ip }
148+\fIproto\-module\fR := { sslid | sessionless | ip }
149149
150150 .br
151151 \fImodule\-args\fR := see the operation manual.
--- a/l7directord/Makefile.am
+++ b/l7directord/Makefile.am
@@ -4,5 +4,5 @@ SBINDIR = @sbindir@
44
55 install:
66 $(INSTALL) -m 755 -D ./l7directord $(SBINDIR)/l7directord
7- $(INSTALL) -m 755 -D ./init.d/l7directord ${sysconfdir}/init.d/l7directord
7+ $(INSTALL) -m 755 -D ./init.d/l7directord ${sysconfdir}/rc.d/init.d/l7directord
88
--- a/l7directord/l7directord
+++ b/l7directord/l7directord
@@ -4745,13 +4745,11 @@ virtual server section. These two strings must be quoted. If the request
47454745 string starts with I<http://...> the IP-address and port of the real server
47464746 is overridden, otherwise the IP-address and port of the real server is used.
47474747
4748-=item B<module => I<proto-module module-args [opt-module-args]>
4748+=item B<module => I<proto-module [opt-module-args]>
47494749
47504750 Indicates the module parameter of B<l7directord>. Here B<proto-module>
4751-denotes the protocol module name (For example, pfilter). B<module-args> denotes the
4752-arguments for the protocol module (For example, --pattern-match '*.html*').
4753-B<module-args> is optional only when set B<sessionless>, B<ip> and B<sslid> module to B<proto-module>.
4754-The last argument is optional (For example, --reschedule).
4751+denotes the protocol module name (For example, sessionless).
4752+The last argument B<opt-module-args> is optional (For example, --reschedule).
47554753
47564754 =back
47574755
--- a/l7vsd/init.d/Makefile.am
+++ b/l7vsd/init.d/Makefile.am
@@ -1,4 +1,4 @@
11 AUTOMAKE_OPTIONS = foreign
22
33 install:
4- $(INSTALL) -m 755 -D ./l7vsd ${sysconfdir}/init.d/l7vsd
4+ $(INSTALL) -m 755 -D ./l7vsd ${sysconfdir}/rc.d/init.d/l7vsd
--- a/l7vsd/module/protocol/protocol_module_ip.cpp
+++ b/l7vsd/module/protocol/protocol_module_ip.cpp
@@ -446,6 +446,12 @@ protocol_module_base::check_message_result protocol_module_ip::check_parameter(c
446446 break;
447447 }
448448 }
449+ //option string = "-F"
450+ else if (*it == "-F" || *it == "--forwarded-for") {
451+ //set forward flag ON
452+ ++it;
453+ continue;
454+ }
449455 //option string = "-S"
450456 else if (*it == "-S" || *it == "--sorry-uri") {
451457 //set sorryURI flag OFF
--- a/l7vsd/module/protocol/protocol_module_sessionless.cpp
+++ b/l7vsd/module/protocol/protocol_module_sessionless.cpp
@@ -404,8 +404,13 @@ protocol_module_base::check_message_result protocol_module_sessionless::check_pa
404404 vec_str_it it_end = args.end();
405405 //loop option strings
406406 for (; it != it_end; ++it) {
407+ //option string = "-F"
408+ if (*it == "-F" || *it == "--forwarded-for") {
409+ //set forward flag ON
410+ continue;
411+ }
407412 //option string = "-S"
408- if (*it == "-S" || *it == "--sorry-uri") {
413+ else if (*it == "-S" || *it == "--sorry-uri") {
409414 //set sorryURI flag OFF
410415 if (!sorryuri_checked) {
411416 //next item exist
--- a/ultramonkeyl7.spec
+++ b/ultramonkeyl7.spec
@@ -1,4 +1,4 @@
1-%define l7vs_moddir %{_libdir}/l7vs
1+Name: %define l7vs_moddir %{_libdir}/l7vs
22 %define l7vs_logdir %{_localstatedir}/log/l7vs
33 %define l7vs_includedir %{_includedir}/l7vs
44 %define l7vsadm_sockdir %{_localstatedir}/run/l7vs
@@ -7,7 +7,7 @@
77 Summary: The Layer-7 Virtual Server
88 Name: ultramonkeyl7
99 Version: 3.1.0
10-Release: devel%{?dist}
10+Release: 1%{?dist}
1111 License: LGPLv2.1
1212 Group: System Environment/Daemons
1313 URL: http://sourceforge.jp/projects/ultramonkey-l7/
@@ -96,7 +96,7 @@ fi
9696 %defattr(-, root, root, 0755)
9797 %{_sbindir}/*
9898 %{l7vs_moddir}/*
99-%{_sysconfdir}/init.d/*
99+%{_sysconfdir}/rc.d/init.d/*
100100 %dir %{l7vs_moddir}
101101 %dir %{l7vs_logdir}
102102 %dir %{_sysconfdir}/l7vs
@@ -163,3 +163,45 @@ fi
163163
164164 * Thu Aug 6 2009 TATEISHI Katsuyuki <kt@wheel.jp> 2.1.2-2atfix
165165 - rpmlint free
166+
167+Version:
168+Release: 1%{?dist}
169+Summary:
170+
171+Group:
172+License:
173+URL:
174+Source0:
175+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
176+
177+BuildRequires:
178+Requires:
179+
180+%description
181+
182+
183+%prep
184+%setup -q
185+
186+
187+%build
188+%configure
189+make %{?_smp_mflags}
190+
191+
192+%install
193+rm -rf $RPM_BUILD_ROOT
194+make install DESTDIR=$RPM_BUILD_ROOT
195+
196+
197+%clean
198+rm -rf $RPM_BUILD_ROOT
199+
200+
201+%files
202+%defattr(-,root,root,-)
203+%doc
204+
205+
206+
207+%changelog