Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 38769 | Differences between
and this patch

Collapse All | Expand All

(-)snort_inline-2.1.0.dist/configure (-21 / +21 lines)
Lines 7426-7447 Link Here
7426
        fi
7426
        fi
7427
7427
7428
        LIBNET_INC_DIR=""
7428
        LIBNET_INC_DIR=""
7429
        echo "$as_me:$LINENO: checking \"for libnet.h version 1.0.x\"" >&5
7429
        echo "$as_me:$LINENO: checking \"for libnet-1.0.h version 1.0.x\"" >&5
7430
echo $ECHO_N "checking \"for libnet.h version 1.0.x\"... $ECHO_C" >&6
7430
echo $ECHO_N "checking \"for libnet-1.0.h version 1.0.x\"... $ECHO_C" >&6
7431
        libnet_dir="/usr/include /usr/local/include"
7431
        libnet_dir="/usr/include /usr/local/include"
7432
        for i in $libnet_dir; do
7432
        for i in $libnet_dir; do
7433
            if test -r $i/libnet.h; then
7433
            if test -r $i/libnet-1.0.h; then
7434
                LIBNET_INC_DIR=$i
7434
                LIBNET_INC_DIR=$i
7435
            fi
7435
            fi
7436
        done
7436
        done
7437
7437
7438
        if test "$LIBNET_INC_DIR" != ""; then
7438
        if test "$LIBNET_INC_DIR" != ""; then
7439
            if eval "grep LIBNET_VERSION $LIBNET_INC_DIR/libnet.h | grep -v 1.0 >/dev/null"; then
7439
            if eval "grep LIBNET_VERSION $LIBNET_INC_DIR/libnet-1.0.h | grep -v 1.0 >/dev/null"; then
7440
7440
7441
   echo
7441
   echo
7442
   echo
7442
   echo
7443
   echo "**********************************************"
7443
   echo "**********************************************"
7444
   echo "  ERROR: unable to find" "libnet 1.0.x (libnet.h)"
7444
   echo "  ERROR: unable to find" "libnet 1.0.x (libnet-1.0.h)"
7445
   echo "  checked in the following places"
7445
   echo "  checked in the following places"
7446
   for i in `echo $tmp`; do
7446
   for i in `echo $tmp`; do
7447
     echo "        $i"
7447
     echo "        $i"
Lines 7451-7458 Link Here
7451
   exit
7451
   exit
7452
7452
7453
            fi
7453
            fi
7454
            CFLAGS="${CFLAGS} `libnet-config --defines` `libnet-config --cflags`"
7454
            CFLAGS="${CFLAGS} `libnet-1.0-config --defines` `libnet-1.0-config --cflags`"
7455
            LIBS="${LIBS} `libnet-config --libs`"
7455
            LIBS="${LIBS} `libnet-1.0-config --libs`"
7456
            CPPFLAGS="${CPPFLAGS} -I${LIBNET_INC_DIR}"
7456
            CPPFLAGS="${CPPFLAGS} -I${LIBNET_INC_DIR}"
7457
            echo "$as_me:$LINENO: result: $i" >&5
7457
            echo "$as_me:$LINENO: result: $i" >&5
7458
echo "${ECHO_T}$i" >&6
7458
echo "${ECHO_T}$i" >&6
Lines 7469-7499 Link Here
7469
# Check whether --enable-flexresp or --disable-flexresp was given.
7469
# Check whether --enable-flexresp or --disable-flexresp was given.
7470
if test "${enable_flexresp+set}" = set; then
7470
if test "${enable_flexresp+set}" = set; then
7471
  enableval="$enable_flexresp"
7471
  enableval="$enable_flexresp"
7472
   CPPFLAGS="${CPPFLAGS} -DENABLE_RESPONSE `libnet-config --defines --cflags`" LDFLAGS="${LDFLAGS} `libnet-config --libs`"
7472
   CPPFLAGS="${CPPFLAGS} -DENABLE_RESPONSE `libnet-1.0-config --defines --cflags`" LDFLAGS="${LDFLAGS} `libnet-1.0-config --libs`"
7473
fi;
7473
fi;
7474
7474
7475
7475
7476
if test "$enable_flexresp" != "no" -a "$enable_flexresp" = "yes"; then
7476
if test "$enable_flexresp" != "no" -a "$enable_flexresp" = "yes"; then
7477
7477
7478
  if test `libnet-config --cflags | wc -c` = "1"; then
7478
  if test `libnet-1.0-config --cflags | wc -c` = "1"; then
7479
    CPPFLAGS="${CPPFLAGS} -I/usr/local/include -I/sw/include"
7479
    CPPFLAGS="${CPPFLAGS} -I/usr/local/include -I/sw/include"
7480
    LIBNET_CONFIG_BROKEN_CFLAGS=yes
7480
    LIBNET_CONFIG_BROKEN_CFLAGS=yes
7481
  fi
7481
  fi
7482
7482
7483
  if test `libnet-config --libs | wc -c` = "1"; then
7483
  if test `libnet-1.0-config --libs | wc -c` = "1"; then
7484
    { echo "$as_me:$LINENO: WARNING: libnet-config --libs is broken on your system.  If you" >&5
7484
    { echo "$as_me:$LINENO: WARNING: libnet-1.0-config --libs is broken on your system.  If you" >&5
7485
echo "$as_me: WARNING: libnet-config --libs is broken on your system.  If you" >&2;}
7485
echo "$as_me: WARNING: libnet-1.0-config --libs is broken on your system.  If you" >&2;}
7486
    { echo "$as_me:$LINENO: WARNING: are using a precompiled package please notify the" >&5
7486
    { echo "$as_me:$LINENO: WARNING: are using a precompiled package please notify the" >&5
7487
echo "$as_me: WARNING: are using a precompiled package please notify the" >&2;}
7487
echo "$as_me: WARNING: are using a precompiled package please notify the" >&2;}
7488
    { echo "$as_me:$LINENO: WARNING: maintainer." >&5
7488
    { echo "$as_me:$LINENO: WARNING: maintainer." >&5
7489
echo "$as_me: WARNING: maintainer." >&2;}
7489
echo "$as_me: WARNING: maintainer." >&2;}
7490
    LDFLAGS="${LDFLAGS} -L/usr/local/lib -L/sw/lib"
7490
    LDFLAGS="${LDFLAGS} -L/usr/local/lib -L/sw/lib"
7491
    LIBS="${LIBS} -lnet"
7491
    LIBS="${LIBS} -lnet-1.0"
7492
  fi
7492
  fi
7493
7493
7494
  LNET=""
7494
  LNET=""
7495
7495
7496
for ac_header in libnet.h
7496
for ac_header in libnet-1.0.h
7497
do
7497
do
7498
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7498
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7499
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7499
if eval "test \"\${$as_ac_Header+set}\" = set"; then
Lines 7654-7671 Link Here
7654
      libnet_dir="/usr/include /usr/local/include /sw/include"
7654
      libnet_dir="/usr/include /usr/local/include /sw/include"
7655
    fi
7655
    fi
7656
  else
7656
  else
7657
    libnet_dir=`libnet-config --cflags | cut -dI -f2`
7657
    libnet_dir=`libnet-1.0-config --cflags | cut -dI -f2`
7658
  fi
7658
  fi
7659
7659
7660
  LIBNET_INC_DIR=""
7660
  LIBNET_INC_DIR=""
7661
  for i in $libnet_dir; do
7661
  for i in $libnet_dir; do
7662
    if test -r $i/libnet.h; then
7662
    if test -r $i/libnet-1.0.h; then
7663
      LIBNET_INC_DIR=$i
7663
      LIBNET_INC_DIR=$i
7664
    fi
7664
    fi
7665
  done
7665
  done
7666
7666
7667
  if test "$LIBNET_INC_DIR" != ""; then
7667
  if test "$LIBNET_INC_DIR" != ""; then
7668
    if eval "grep LIBNET_VERSION $LIBNET_INC_DIR/libnet.h | grep -v 1.0.2a >/dev/null"; then
7668
    if eval "grep LIBNET_VERSION $LIBNET_INC_DIR/libnet-1.0.h | grep -v 1.0.2a >/dev/null"; then
7669
      echo "$as_me:$LINENO: result: no" >&5
7669
      echo "$as_me:$LINENO: result: no" >&5
7670
echo "${ECHO_T}no" >&6
7670
echo "${ECHO_T}no" >&6
7671
      echo
7671
      echo
Lines 7676-7682 Link Here
7676
   echo
7676
   echo
7677
   echo
7677
   echo
7678
   echo "**********************************************"
7678
   echo "**********************************************"
7679
   echo "  ERROR: unable to find" "libnet 1.0.2a (libnet.h)"
7679
   echo "  ERROR: unable to find" "libnet 1.0.2a (libnet-1.0.h)"
7680
   echo "  checked in the following places"
7680
   echo "  checked in the following places"
7681
   for i in `echo $LIBNET_INC_DIR`; do
7681
   for i in `echo $LIBNET_INC_DIR`; do
7682
     echo "        $i"
7682
     echo "        $i"
Lines 7695-7701 Link Here
7695
   echo
7695
   echo
7696
   echo
7696
   echo
7697
   echo "**********************************************"
7697
   echo "**********************************************"
7698
   echo "  ERROR: unable to find" "libnet 1.0.2a (libnet.h)"
7698
   echo "  ERROR: unable to find" "libnet 1.0.2a (libnet-1.0.h)"
7699
   echo "  checked in the following places"
7699
   echo "  checked in the following places"
7700
   for i in `echo $libnet_dir`; do
7700
   for i in `echo $libnet_dir`; do
7701
     echo "        $i"
7701
     echo "        $i"
Lines 7708-7715 Link Here
7708
7708
7709
  LNET=""
7709
  LNET=""
7710
7710
7711
echo "$as_me:$LINENO: checking for libnet_build_ip in -lnet" >&5
7711
echo "$as_me:$LINENO: checking for libnet_build_ip in -lnet-1.0" >&5
7712
echo $ECHO_N "checking for libnet_build_ip in -lnet... $ECHO_C" >&6
7712
echo $ECHO_N "checking for libnet_build_ip in -lnet-1.0... $ECHO_C" >&6
7713
if test "${ac_cv_lib_net_libnet_build_ip+set}" = set; then
7713
if test "${ac_cv_lib_net_libnet_build_ip+set}" = set; then
7714
  echo $ECHO_N "(cached) $ECHO_C" >&6
7714
  echo $ECHO_N "(cached) $ECHO_C" >&6
7715
else
7715
else
(-)snort_inline-2.1.0.dist/src/detection-plugins/sp_react.c (-1 / +1 lines)
Lines 57-63 Link Here
57
#include <stdlib.h>
57
#include <stdlib.h>
58
#include <string.h>
58
#include <string.h>
59
#include <ctype.h>
59
#include <ctype.h>
60
#include <libnet.h>
60
#include <libnet-1.0.h>
61
61
62
#include "rules.h"
62
#include "rules.h"
63
#include "decode.h"
63
#include "decode.h"
(-)snort_inline-2.1.0.dist/src/detection-plugins/sp_respond.c (-1 / +1 lines)
Lines 34-40 Link Here
34
34
35
35
36
#ifdef ENABLE_RESPONSE
36
#ifdef ENABLE_RESPONSE
37
#include <libnet.h>
37
#include <libnet-1.0.h>
38
38
39
#include "decode.h"
39
#include "decode.h"
40
#include "rules.h"
40
#include "rules.h"
(-)snort_inline-2.1.0.dist/src/inline.c (-1 / +1 lines)
Lines 5-11 Link Here
5
#include <pcap.h>
5
#include <pcap.h>
6
#include <string.h>
6
#include <string.h>
7
#include <stdlib.h>
7
#include <stdlib.h>
8
#include <libnet.h>
8
#include <libnet-1.0.h>
9
9
10
#define PKT_BUFSIZE 65536
10
#define PKT_BUFSIZE 65536
11
11

Return to bug 38769