There's no type file on this one which is pretty simple.
/*
- * 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);
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:
#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>
#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>
#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);
#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>
#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)
#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>
#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
#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);
#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>
#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)
#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>
#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",
#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>
#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;
#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>
#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);
#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>
#include <proto/stick_table.h>
#include <proto/stream.h>
#include <proto/stream_interface.h>
-#include <proto/tcp_rules.h>
#define TRACE_SOURCE &trace_strm
#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 */