]> git.droids-corp.org - dpdk.git/commitdiff
examples/ipsec-secgw: fix build on FreeBSD
authorDaniel Mrzyglod <danielx.t.mrzyglod@intel.com>
Thu, 31 Mar 2016 12:43:10 +0000 (14:43 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 31 Mar 2016 20:27:41 +0000 (22:27 +0200)
In FreeBSD, sys/types.h and netinet/in.h need to be included before
netinet/ip.h

There were missed typedef for u_char - <sys/types.h>
There were missed network definitions - <netinet/in.h>

Failure #13: http://dpdk.org/ml/archives/test-report/2016-March/001896.html

Fixes: d299106e8e31 ("examples/ipsec-secgw: add IPsec sample application")
Signed-off-by: Daniel Mrzyglod <danielx.t.mrzyglod@intel.com>
Acked-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
examples/ipsec-secgw/esp.c
examples/ipsec-secgw/ipsec-secgw.c
examples/ipsec-secgw/ipsec.c
examples/ipsec-secgw/ipsec.h
examples/ipsec-secgw/rt.c
examples/ipsec-secgw/sa.c
examples/ipsec-secgw/sp.c

index ca0fc5606dfe2ae7e7ddb7fa5b8e56ebfefd17b4..192738078c4a90090c882a7c669ce9b3cda55a9a 100644 (file)
 
 #include <stdint.h>
 #include <stdlib.h>
-#include <netinet/ip.h>
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <netinet/in.h>
+#include <netinet/ip.h>
 #include <fcntl.h>
 #include <unistd.h>
 
index d6c9a5d7d7f876838621a3b2f29802af5fcb2c1c..1d6c81b9c2713ba0b83e0ea2f7920047b372aff5 100644 (file)
@@ -36,6 +36,8 @@
 #include <stdint.h>
 #include <inttypes.h>
 #include <sys/types.h>
+#include <netinet/in.h>
+#include <netinet/ip.h>
 #include <string.h>
 #include <sys/queue.h>
 #include <stdarg.h>
index d38510035e9f55fa30913b4b94ef0089950f59e7..baf30d4bf004549f3d28bd5f7e19a45f6415a390 100644 (file)
@@ -30,7 +30,7 @@
  *   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
-
+#include <sys/types.h>
 #include <netinet/in.h>
 #include <netinet/ip.h>
 
index 8eb4e76e70f518b6f61699433dffb1834df1efc8..a13fdef9ea1eabd2c9e1331ec7771f2ce379fdc4 100644 (file)
@@ -35,8 +35,6 @@
 #define __IPSEC_H__
 
 #include <stdint.h>
-#include <netinet/in.h>
-#include <netinet/ip.h>
 
 #include <rte_byteorder.h>
 #include <rte_ip.h>
index c3bb4de7f519ee7a84f985fb8bdec4babf3640d0..a6d0866af21d107efdb14fdcccc72fb54219e586 100644 (file)
@@ -34,6 +34,7 @@
 /*
  * Routing Table (RT)
  */
+#include <sys/types.h>
 #include <rte_lpm.h>
 #include <rte_errno.h>
 
index 91a5f6ef603d36961604fe55b66af74d128cdc5a..a5b8a632fd7f9a0cf927daac28bed5c09bc3a063 100644 (file)
@@ -34,6 +34,8 @@
 /*
  * Security Associations
  */
+#include <sys/types.h>
+#include <netinet/in.h>
 #include <netinet/ip.h>
 
 #include <rte_memzone.h>
index 7972f40db154c9d738c3113b0cb387447e9c9d07..4f167301c42d0a6bfcd0189e01fbd926bd0b8c72 100644 (file)
@@ -34,6 +34,8 @@
 /*
  * Security Policies
  */
+#include <sys/types.h>
+#include <netinet/in.h>
 #include <netinet/ip.h>
 
 #include <rte_acl.h>