From: Thomas Jarosch <thomas.jarosch@intra2net.com>
To: Patrick McHardy <kaber@trash.net>
Cc: Netfilter Development Mailinglist <netfilter-devel@vger.kernel.org>
Subject: [patch] iptables 1.4.2: Fix compile warnings
Date: Thu, 23 Oct 2008 14:58:00 +0200 [thread overview]
Message-ID: <200810231458.00929.thomas.jarosch@intra2net.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 122 bytes --]
Hello Patrick,
attached is a small patch to fix compilation warnings
of iptables 1.4.2 using gcc 4.3.2.
Cheers,
Thomas
[-- Attachment #2: iptables-1.4.2-fix-compile-warnings.patch --]
[-- Type: text/x-patch, Size: 2128 bytes --]
Fix compile warnings using gcc 4.3.2
libxt_dccp.c: In function 'port_to_service':
libxt_dccp.c:196: warning: implicit declaration of function 'htons'
libxt_sctp.c: In function 'port_to_service':
libxt_sctp.c:321: warning: implicit declaration of function 'htons'
libxt_tcp.c: In function 'port_to_service':
libxt_tcp.c:220: warning: implicit declaration of function 'htons'
libxt_udp.c: In function 'port_to_service':
libxt_udp.c:104: warning: implicit declaration of function 'htons'
Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
diff -u -r -p iptables-1.4.2.orig/extensions/libxt_dccp.c iptables-1.4.2/extensions/libxt_dccp.c
--- iptables-1.4.2.orig/extensions/libxt_dccp.c Thu Oct 23 12:33:44 2008
+++ iptables-1.4.2/extensions/libxt_dccp.c Thu Oct 23 14:19:09 2008
@@ -12,6 +12,7 @@
#include <netdb.h>
#include <ctype.h>
+#include <netinet/in.h>
#include <xtables.h>
#include <linux/dccp.h>
#include <linux/netfilter/x_tables.h>
diff -u -r -p iptables-1.4.2.orig/extensions/libxt_sctp.c iptables-1.4.2/extensions/libxt_sctp.c
--- iptables-1.4.2.orig/extensions/libxt_sctp.c Thu Oct 23 12:33:45 2008
+++ iptables-1.4.2/extensions/libxt_sctp.c Thu Oct 23 14:18:28 2008
@@ -14,6 +14,7 @@
#include <netdb.h>
#include <ctype.h>
+#include <netinet/in.h>
#include <xtables.h>
#ifndef ARRAY_SIZE
diff -u -r -p iptables-1.4.2.orig/extensions/libxt_tcp.c iptables-1.4.2/extensions/libxt_tcp.c
--- iptables-1.4.2.orig/extensions/libxt_tcp.c Thu Oct 23 12:33:44 2008
+++ iptables-1.4.2/extensions/libxt_tcp.c Thu Oct 23 14:18:39 2008
@@ -4,6 +4,7 @@
#include <string.h>
#include <stdlib.h>
#include <getopt.h>
+#include <netinet/in.h>
#include <xtables.h>
#include <linux/netfilter/xt_tcpudp.h>
diff -u -r -p iptables-1.4.2.orig/extensions/libxt_udp.c iptables-1.4.2/extensions/libxt_udp.c
--- iptables-1.4.2.orig/extensions/libxt_udp.c Thu Oct 23 12:33:44 2008
+++ iptables-1.4.2/extensions/libxt_udp.c Thu Oct 23 14:18:47 2008
@@ -4,6 +4,7 @@
#include <string.h>
#include <stdlib.h>
#include <getopt.h>
+#include <netinet/in.h>
#include <xtables.h>
#include <linux/netfilter/xt_tcpudp.h>
next reply other threads:[~2008-10-23 12:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-23 12:58 Thomas Jarosch [this message]
2008-10-23 13:41 ` [patch] iptables 1.4.2: Fix compile warnings Patrick McHardy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200810231458.00929.thomas.jarosch@intra2net.com \
--to=thomas.jarosch@intra2net.com \
--cc=kaber@trash.net \
--cc=netfilter-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.