]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REORG: include: move tcp_rules.h to haproxy/tcp_rules.h
authorWilly Tarreau <w@1wt.eu>
Thu, 4 Jun 2020 15:42:48 +0000 (17:42 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 Jun 2020 08:18:58 +0000 (10:18 +0200)
There's no type file on this one which is pretty simple.

12 files changed:
include/haproxy/tcp_rules.h [moved from include/proto/tcp_rules.h with 89% similarity]
src/cfgparse.c
src/dns.c
src/flt_spoe.c
src/hlua.c
src/proto_tcp.c
src/queue.c
src/session.c
src/stick_table.c
src/stream.c
src/tcp_rules.c
src/vars.c

similarity index 89%
rename from include/proto/tcp_rules.h
rename to include/haproxy/tcp_rules.h
index 5f12c264d035a2cc28626fdfc682a49ccefc6cb2..33eb69bd5814f7dc82fe0e97491e7e9a2447af51 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * include/proto/tcp_rules.h
+ * include/haproxy/tcp_rules.h
  * This file contains "tcp" rules definitions
  *
  * Copyright (C) 2000-2016 Willy Tarreau - w@1wt.eu
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#ifndef _PROTO_TCP_RULES_H
-#define _PROTO_TCP_RULES_H
+#ifndef _HAPROXY_TCP_RULES_H
+#define _HAPROXY_TCP_RULES_H
 
 #include <haproxy/action-t.h>
 #include <haproxy/api.h>
-#include <proto/stick_table.h>
+#include <types/stream.h>
+#include <types/session.h>
 
 int tcp_inspect_request(struct stream *s, struct channel *req, int an_bit);
 int tcp_inspect_response(struct stream *s, struct channel *rep, int an_bit);
@@ -36,7 +37,7 @@ void tcp_req_sess_keywords_register(struct action_kw_list *kw_list);
 void tcp_req_cont_keywords_register(struct action_kw_list *kw_list);
 void tcp_res_cont_keywords_register(struct action_kw_list *kw_list);
 
-#endif /* _PROTO_TCP_RULES_H */
+#endif /* _HAPROXY_TCP_RULES_H */
 
 /*
  * Local variables:
index 7fc6fd5cd7d92e49394fff02fd1def6fb480c433..970b60f11226ee15cc5537a875eb45546c263cc1 100644 (file)
@@ -80,7 +80,7 @@
 #include <proto/server.h>
 #include <proto/stream.h>
 #include <proto/stick_table.h>
-#include <proto/tcp_rules.h>
+#include <haproxy/tcp_rules.h>
 #include <proto/connection.h>
 
 
index dca25756150660bb36551a4c5c5e604c41b386e8..35f12d3204d4f5557c01f8724e3ab0a4a0a7b5b2 100644 (file)
--- a/src/dns.c
+++ b/src/dns.c
@@ -27,6 +27,7 @@
 #include <haproxy/http_rules.h>
 #include <haproxy/sample.h>
 #include <haproxy/task.h>
+#include <haproxy/tcp_rules.h>
 #include <haproxy/time.h>
 #include <haproxy/ticks.h>
 #include <haproxy/net_helper.h>
@@ -47,7 +48,6 @@
 #include <haproxy/proto_udp.h>
 #include <proto/proxy.h>
 #include <proto/stream_interface.h>
-#include <proto/tcp_rules.h>
 
 struct list dns_resolvers  = LIST_HEAD_INIT(dns_resolvers);
 struct list dns_srvrq_list = LIST_HEAD_INIT(dns_srvrq_list);
index b0865878928323f7127ced1d0ba1e6025a2d3e6b..c0371abba0330873a2652d431b4bb8a7a058b193 100644 (file)
@@ -22,6 +22,7 @@
 #include <haproxy/thread.h>
 #include <haproxy/pool.h>
 #include <haproxy/task.h>
+#include <haproxy/tcp_rules.h>
 #include <haproxy/time.h>
 #include <haproxy/vars.h>
 
@@ -41,7 +42,6 @@
 #include <proto/spoe.h>
 #include <proto/stream.h>
 #include <proto/stream_interface.h>
-#include <proto/tcp_rules.h>
 
 #if defined(DEBUG_SPOE) || defined(DEBUG_FULL)
 #define SPOE_PRINTF(x...) fprintf(x)
index 4ef94d1796106370b40176729cddcc017b5622d5..adb53163242befa15b05f245c50b00a1451147c9 100644 (file)
@@ -39,6 +39,7 @@
 #include <haproxy/payload.h>
 #include <haproxy/sample.h>
 #include <haproxy/task.h>
+#include <haproxy/tcp_rules.h>
 #include <haproxy/tools.h>
 #include <haproxy/vars.h>
 
@@ -59,7 +60,6 @@
 #include <proto/session.h>
 #include <proto/stream.h>
 #include <proto/stream_interface.h>
-#include <proto/tcp_rules.h>
 
 /* Lua uses longjmp to perform yield or throwing errors. This
  * macro is used only for identifying the function that can
index 2568d101482f6a6d6df59de5b45a6fef3e2e8c78..e43eaf763051efdb798ca056c13f49485b058cc6 100644 (file)
@@ -55,7 +55,7 @@
 #include <haproxy/proto_tcp.h>
 #include <proto/proxy.h>
 #include <proto/server.h>
-#include <proto/tcp_rules.h>
+#include <haproxy/tcp_rules.h>
 
 static int tcp_bind_listeners(struct protocol *proto, char *errmsg, int errlen);
 static int tcp_bind_listener(struct listener *listener, char *errmsg, int errlen);
index 5c8f790af6be3a96c2f4aae3e4abfd0568395eb1..b863d645af96287d48131db885bb1ed57ff1abed 100644 (file)
@@ -74,6 +74,7 @@
 #include <haproxy/pool.h>
 #include <haproxy/sample.h>
 #include <haproxy/task.h>
+#include <haproxy/tcp_rules.h>
 #include <haproxy/time.h>
 #include <haproxy/thread.h>
 #include <import/eb32tree.h>
@@ -83,7 +84,6 @@
 #include <proto/server.h>
 #include <proto/stream.h>
 #include <proto/stream_interface.h>
-#include <proto/tcp_rules.h>
 
 
 #define NOW_OFFSET_BOUNDARY()          ((now_ms - (TIMER_LOOK_BACK >> 12)) & 0xfffff)
index 92041f5f5c51088345cac362b47bb9b1abb70d71..efc1335702e8ca961a448842b92ce45580841515 100644 (file)
@@ -15,6 +15,7 @@
 #include <haproxy/http.h>
 #include <haproxy/listener.h>
 #include <haproxy/pool.h>
+#include <haproxy/tcp_rules.h>
 #include <haproxy/vars.h>
 
 #include <types/session.h>
@@ -24,7 +25,6 @@
 #include <proto/proxy.h>
 #include <proto/session.h>
 #include <proto/stream.h>
-#include <proto/tcp_rules.h>
 
 DECLARE_POOL(pool_head_session, "session", sizeof(struct session));
 DECLARE_POOL(pool_head_sess_srv_list, "session server list",
index c57269b7465bab815348ed2f230637b109687b03..aad4071a6049734dadd7fe687f81d8cbe0f0ef03 100644 (file)
@@ -22,6 +22,7 @@
 #include <haproxy/list.h>
 #include <haproxy/net_helper.h>
 #include <haproxy/task.h>
+#include <haproxy/tcp_rules.h>
 #include <haproxy/tools.h>
 #include <haproxy/time.h>
 
@@ -42,7 +43,6 @@
 #include <proto/stream_interface.h>
 #include <proto/stick_table.h>
 #include <proto/peers.h>
-#include <proto/tcp_rules.h>
 
 /* structure used to return a table key built from a sample */
 static THREAD_LOCAL struct stktable_key static_table_key;
index 3780939f41092bd3a991ea79faa6e1dd7908372e..c3199230f989cd209d0eaf83b41dd856591c2d69 100644 (file)
@@ -30,6 +30,7 @@
 #include <haproxy/htx.h>
 #include <haproxy/pool.h>
 #include <haproxy/task.h>
+#include <haproxy/tcp_rules.h>
 #include <haproxy/vars.h>
 
 #include <types/applet.h>
@@ -59,7 +60,6 @@
 #include <proto/server.h>
 #include <proto/stick_table.h>
 #include <proto/stream_interface.h>
-#include <proto/tcp_rules.h>
 
 DECLARE_POOL(pool_head_stream, "stream", sizeof(struct stream));
 DECLARE_POOL(pool_head_uniqueid, "uniqueid", UNIQUEID_LEN);
index e2f8a29503d5a7dc52fee5142b7aedf90e746c0d..1820ce51f9a73246e4caebae9aef4aea11c4d1f2 100644 (file)
@@ -16,6 +16,7 @@
 #include <haproxy/global.h>
 #include <haproxy/list.h>
 #include <haproxy/sample.h>
+#include <haproxy/tcp_rules.h>
 #include <haproxy/tools.h>
 #include <haproxy/ticks.h>
 #include <haproxy/time.h>
@@ -31,7 +32,6 @@
 #include <proto/stick_table.h>
 #include <proto/stream.h>
 #include <proto/stream_interface.h>
-#include <proto/tcp_rules.h>
 
 #define TRACE_SOURCE &trace_strm
 
index b9aea6ad6c6ddb5347dbfb9296c4b7df76a25441..d2c87ded780be92c57cd4a206b65aababe5bcd4a 100644 (file)
@@ -6,12 +6,12 @@
 #include <haproxy/http_rules.h>
 #include <haproxy/list.h>
 #include <haproxy/sample.h>
+#include <haproxy/tcp_rules.h>
 #include <haproxy/vars.h>
 
 #include <haproxy/arg.h>
 #include <proto/http_ana.h>
 #include <proto/stream.h>
-#include <proto/tcp_rules.h>
 #include <proto/checks.h>
 
 /* This contains a pool of struct vars */