[dpdk-dev,v2] examples/ipsec-secgw: fix missed headers for FreeBSD
Commit Message
In FreeBSD, sys/types.h and netinet/in.h need to be included before
netinet/ip.h
There were misssed 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>
---
examples/ipsec-secgw/esp.c | 3 ++-
examples/ipsec-secgw/ipsec-secgw.c | 2 ++
examples/ipsec-secgw/ipsec.c | 2 +-
examples/ipsec-secgw/ipsec.h | 2 --
examples/ipsec-secgw/rt.c | 1 +
examples/ipsec-secgw/sa.c | 2 ++
examples/ipsec-secgw/sp.c | 2 ++
7 files changed, 10 insertions(+), 4 deletions(-)
Comments
On 31/03/2016 13:43, Daniel Mrzyglod wrote:
> In FreeBSD, sys/types.h and netinet/in.h need to be included before
> netinet/ip.h
>
> There were misssed 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>
> ---
>
Other than typo in commit message: "misssed"
Acked-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
2016-03-31 14:02, Sergio Gonzalez Monroy:
> On 31/03/2016 13:43, Daniel Mrzyglod wrote:
> > In FreeBSD, sys/types.h and netinet/in.h need to be included before
> > netinet/ip.h
> >
> > There were misssed 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>
>
> Other than typo in commit message: "misssed"
>
> Acked-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
Applied, thanks
@@ -33,9 +33,10 @@
#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>
@@ -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>
@@ -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>
@@ -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>
@@ -34,6 +34,7 @@
/*
* Routing Table (RT)
*/
+#include <sys/types.h>
#include <rte_lpm.h>
#include <rte_errno.h>
@@ -34,6 +34,8 @@
/*
* Security Associations
*/
+#include <sys/types.h>
+#include <netinet/in.h>
#include <netinet/ip.h>
#include <rte_memzone.h>
@@ -34,6 +34,8 @@
/*
* Security Policies
*/
+#include <sys/types.h>
+#include <netinet/in.h>
#include <netinet/ip.h>
#include <rte_acl.h>