]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: http: export function inet_set_tos()
authorThierry FOURNIER <tfournier@haproxy.com>
Mon, 16 Mar 2015 11:03:44 +0000 (12:03 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 18 Mar 2015 10:34:06 +0000 (11:34 +0100)
This is used by Lua.

include/proto/proto_http.h
src/proto_http.c

index 452ffdd0f2d7e31f49c818bb5c28c429dfbdca71..36e6eb8e74f93b920c98fcce42fd7af1b259a103 100644 (file)
@@ -105,6 +105,7 @@ int http_transform_header_str(struct session* s, struct http_msg *msg, const cha
                               unsigned int name_len, const char *str, struct my_regex *re,
                               int action);
 void http_sess_log(struct session *s);
+void inet_set_tos(int fd, struct sockaddr_storage from, int tos);
 void http_perform_server_redirect(struct session *s, struct stream_interface *si);
 void http_return_srv_error(struct session *s, struct stream_interface *si);
 void http_capture_bad_message(struct error_snapshot *es, struct session *s,
index 8ad15643aae4da87624b026e4dc488e110f029da..83dd3a4ec7d76b19579037b5cb51c02d8957ad0c 100644 (file)
@@ -3229,7 +3229,7 @@ int http_handle_stats(struct session *s, struct channel *req)
 /* Sets the TOS header in IPv4 and the traffic class header in IPv6 packets
  * (as per RFC3260 #4 and BCP37 #4.2 and #5.2).
  */
-static inline void inet_set_tos(int fd, struct sockaddr_storage from, int tos)
+void inet_set_tos(int fd, struct sockaddr_storage from, int tos)
 {
 #ifdef IP_TOS
        if (from.ss_family == AF_INET)