Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Pkg Iptables
Commits
5beab31f
Commit
5beab31f
authored
Feb 02, 2018
by
Arturo Borrero Gonzalez
Browse files
New upstream version 1.6.2
parent
f1f129da
Changes
151
Hide whitespace changes
Inline
Side-by-side
m4/ltsugar.m4
View file @
5beab31f
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
#
#
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
# Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software
# Foundation, Inc.
# Written by Gary V. Vaughan, 2004
# Written by Gary V. Vaughan, 2004
#
#
# This file is free software; the Free Software Foundation gives
# This file is free software; the Free Software Foundation gives
...
@@ -33,7 +34,7 @@ m4_define([_lt_join],
...
@@ -33,7 +34,7 @@ m4_define([_lt_join],
# ------------
# ------------
# Manipulate m4 lists.
# Manipulate m4 lists.
# These macros are necessary as long as will still need to support
# These macros are necessary as long as will still need to support
# Autoconf-2.59 which quotes differently.
# Autoconf-2.59
,
which quotes differently.
m4_define([lt_car], [[$1]])
m4_define([lt_car], [[$1]])
m4_define([lt_cdr],
m4_define([lt_cdr],
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
...
@@ -44,7 +45,7 @@ m4_define([lt_unquote], $1)
...
@@ -44,7 +45,7 @@ m4_define([lt_unquote], $1)
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
# ------------------------------------------
# ------------------------------------------
# Redefine MACRO-NAME to hold its former content plus
`
SEPARATOR'
`
STRING'.
# Redefine MACRO-NAME to hold its former content plus
'
SEPARATOR'
'
STRING'.
# Note that neither SEPARATOR nor STRING are expanded; they are appended
# Note that neither SEPARATOR nor STRING are expanded; they are appended
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
...
...
m4/ltversion.m4
View file @
5beab31f
# ltversion.m4 -- version numbers -*- Autoconf -*-
# ltversion.m4 -- version numbers -*- Autoconf -*-
#
#
# Copyright (C) 2004 Free Software Foundation, Inc.
# Copyright (C) 2004
, 2011-2015
Free Software Foundation, Inc.
# Written by Scott James Remnant, 2004
# Written by Scott James Remnant, 2004
#
#
# This file is free software; the Free Software Foundation gives
# This file is free software; the Free Software Foundation gives
...
@@ -9,15 +9,15 @@
...
@@ -9,15 +9,15 @@
# @configure_input@
# @configure_input@
# serial
3337
ltversion.m4
# serial
4179
ltversion.m4
# This file is part of GNU Libtool
# This file is part of GNU Libtool
m4_define([LT_PACKAGE_VERSION], [2.4.
2
])
m4_define([LT_PACKAGE_VERSION], [2.4.
6
])
m4_define([LT_PACKAGE_REVISION], [
1.3337
])
m4_define([LT_PACKAGE_REVISION], [
2.4.6
])
AC_DEFUN([LTVERSION_VERSION],
AC_DEFUN([LTVERSION_VERSION],
[macro_version='2.4.
2
'
[macro_version='2.4.
6
'
macro_revision='
1.3337
'
macro_revision='
2.4.6
'
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
_LT_DECL(, macro_revision, 0)
_LT_DECL(, macro_revision, 0)
])
])
m4/lt~obsolete.m4
View file @
5beab31f
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
#
#
# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
# Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software
# Foundation, Inc.
# Written by Scott James Remnant, 2004.
# Written by Scott James Remnant, 2004.
#
#
# This file is free software; the Free Software Foundation gives
# This file is free software; the Free Software Foundation gives
...
@@ -11,7 +12,7 @@
...
@@ -11,7 +12,7 @@
# These exist entirely to fool aclocal when bootstrapping libtool.
# These exist entirely to fool aclocal when bootstrapping libtool.
#
#
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
,
# which have later been changed to m4_define as they aren't part of the
# which have later been changed to m4_define as they aren't part of the
# exported API, or moved to Autoconf or Automake where they belong.
# exported API, or moved to Autoconf or Automake where they belong.
#
#
...
@@ -25,7 +26,7 @@
...
@@ -25,7 +26,7 @@
# included after everything else. This provides aclocal with the
# included after everything else. This provides aclocal with the
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
# because those macros already exist, or will be overwritten later.
# because those macros already exist, or will be overwritten later.
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
#
#
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
# Yes, that means every name once taken will need to remain here until
# Yes, that means every name once taken will need to remain here until
...
...
utils/.gitignore
View file @
5beab31f
/nfnl_osf
/nfnl_osf
/nfnl_osf.8
/nfbpf_compile
/nfbpf_compile
utils/Makefile.am
View file @
5beab31f
...
@@ -6,8 +6,10 @@ AM_CPPFLAGS = ${regular_CPPFLAGS} -I${top_builddir}/include \
...
@@ -6,8 +6,10 @@ AM_CPPFLAGS = ${regular_CPPFLAGS} -I${top_builddir}/include \
sbin_PROGRAMS
=
sbin_PROGRAMS
=
pkgdata_DATA
=
pkgdata_DATA
=
man_MANS
=
if
HAVE_LIBNFNETLINK
if
HAVE_LIBNFNETLINK
man_MANS
+=
nfnl_osf.8
sbin_PROGRAMS
+=
nfnl_osf
sbin_PROGRAMS
+=
nfnl_osf
pkgdata_DATA
+=
pf.os
pkgdata_DATA
+=
pf.os
...
@@ -23,3 +25,5 @@ if ENABLE_SYNCONF
...
@@ -23,3 +25,5 @@ if ENABLE_SYNCONF
sbin_PROGRAMS
+=
nfsynproxy
sbin_PROGRAMS
+=
nfsynproxy
nfsynproxy_LDADD
=
-lpcap
nfsynproxy_LDADD
=
-lpcap
endif
endif
CLEANFILES
=
nfnl_osf.8
utils/Makefile.in
View file @
5beab31f
# Makefile.in generated by automake 1.1
4.1
from Makefile.am.
# Makefile.in generated by automake 1.1
5
from Makefile.am.
# @configure_input@
# @configure_input@
# Copyright (C) 1994-201
3
Free Software Foundation, Inc.
# Copyright (C) 1994-201
4
Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# gives unlimited permission to copy and/or distribute it,
...
@@ -18,7 +18,17 @@
...
@@ -18,7 +18,17 @@
VPATH
=
@srcdir@
VPATH
=
@srcdir@
am__is_gnu_make
=
test
-n
'
$(MAKEFILE_LIST)
'
&&
test
-n
'
$(MAKELEVEL)
'
am__is_gnu_make
=
{
\
if
test
-z
'
$(MAKELEVEL)
'
;
then
\
false
;
\
elif
test
-n
'
$(MAKE_HOST)
'
;
then
\
true
;
\
elif
test
-n
'
$(MAKE_VERSION)
'
&&
test
-n
'
$(CURDIR)
'
;
then
\
true
;
\
else
\
false
;
\
fi
;
\
}
am__make_running_with_option
=
\
am__make_running_with_option
=
\
case
$
${
target_option
-
}
in
\
case
$
${
target_option
-
}
in
\
?
)
;;
\
?
)
;;
\
...
@@ -81,13 +91,12 @@ POST_UNINSTALL = :
...
@@ -81,13 +91,12 @@ POST_UNINSTALL = :
build_triplet
=
@build@
build_triplet
=
@build@
host_triplet
=
@host@
host_triplet
=
@host@
sbin_PROGRAMS
=
$(am__EXEEXT_1)
$(am__EXEEXT_2)
$(am__EXEEXT_3)
sbin_PROGRAMS
=
$(am__EXEEXT_1)
$(am__EXEEXT_2)
$(am__EXEEXT_3)
@HAVE_LIBNFNETLINK_TRUE@
am__append_1
=
nfnl_osf
@HAVE_LIBNFNETLINK_TRUE@
am__append_1
=
nfnl_osf.8
@HAVE_LIBNFNETLINK_TRUE@
am__append_2
=
pf.os
@HAVE_LIBNFNETLINK_TRUE@
am__append_2
=
nfnl_osf
@ENABLE_BPFC_TRUE@
am__append_3
=
nfbpf_compile
@HAVE_LIBNFNETLINK_TRUE@
am__append_3
=
pf.os
@ENABLE_SYNCONF_TRUE@
am__append_4
=
nfsynproxy
@ENABLE_BPFC_TRUE@
am__append_4
=
nfbpf_compile
@ENABLE_SYNCONF_TRUE@
am__append_5
=
nfsynproxy
subdir
=
utils
subdir
=
utils
DIST_COMMON
=
$(srcdir)
/Makefile.in
$(srcdir)
/Makefile.am
\
$(top_srcdir)
/build-aux/depcomp
ACLOCAL_M4
=
$(top_srcdir)
/aclocal.m4
ACLOCAL_M4
=
$(top_srcdir)
/aclocal.m4
am__aclocal_m4_deps
=
$(top_srcdir)
/m4/ax_check_linker_flags.m4
\
am__aclocal_m4_deps
=
$(top_srcdir)
/m4/ax_check_linker_flags.m4
\
$(top_srcdir)
/m4/libtool.m4
$(top_srcdir)
/m4/ltoptions.m4
\
$(top_srcdir)
/m4/libtool.m4
$(top_srcdir)
/m4/ltoptions.m4
\
...
@@ -95,14 +104,16 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/ax_check_linker_flags.m4 \
...
@@ -95,14 +104,16 @@ am__aclocal_m4_deps = $(top_srcdir)/m4/ax_check_linker_flags.m4 \
$(top_srcdir)
/m4/lt~obsolete.m4
$(top_srcdir)
/configure.ac
$(top_srcdir)
/m4/lt~obsolete.m4
$(top_srcdir)
/configure.ac
am__configure_deps
=
$(am__aclocal_m4_deps)
$(CONFIGURE_DEPENDENCIES)
\
am__configure_deps
=
$(am__aclocal_m4_deps)
$(CONFIGURE_DEPENDENCIES)
\
$(ACLOCAL_M4)
$(ACLOCAL_M4)
DIST_COMMON
=
$(srcdir)
/Makefile.am
$(am__DIST_COMMON)
mkinstalldirs
=
$(install_sh)
-d
mkinstalldirs
=
$(install_sh)
-d
CONFIG_HEADER
=
$(top_builddir)
/config.h
CONFIG_HEADER
=
$(top_builddir)
/config.h
CONFIG_CLEAN_FILES
=
CONFIG_CLEAN_FILES
=
nfnl_osf.8
CONFIG_CLEAN_VPATH_FILES
=
CONFIG_CLEAN_VPATH_FILES
=
@HAVE_LIBNFNETLINK_TRUE@
am__EXEEXT_1
=
nfnl_osf
$(EXEEXT)
@HAVE_LIBNFNETLINK_TRUE@
am__EXEEXT_1
=
nfnl_osf
$(EXEEXT)
@ENABLE_BPFC_TRUE@
am__EXEEXT_2
=
nfbpf_compile
$(EXEEXT)
@ENABLE_BPFC_TRUE@
am__EXEEXT_2
=
nfbpf_compile
$(EXEEXT)
@ENABLE_SYNCONF_TRUE@
am__EXEEXT_3
=
nfsynproxy
$(EXEEXT)
@ENABLE_SYNCONF_TRUE@
am__EXEEXT_3
=
nfsynproxy
$(EXEEXT)
am__installdirs
=
"
$(DESTDIR)$(sbindir)
"
"
$(DESTDIR)$(pkgdatadir)
"
am__installdirs
=
"
$(DESTDIR)$(sbindir)
"
"
$(DESTDIR)$(man8dir)
"
\
"
$(DESTDIR)$(pkgdatadir)
"
PROGRAMS
=
$(sbin_PROGRAMS)
PROGRAMS
=
$(sbin_PROGRAMS)
nfbpf_compile_SOURCES
=
nfbpf_compile.c
nfbpf_compile_SOURCES
=
nfbpf_compile.c
nfbpf_compile_OBJECTS
=
nfbpf_compile.
$(OBJEXT)
nfbpf_compile_OBJECTS
=
nfbpf_compile.
$(OBJEXT)
...
@@ -186,6 +197,9 @@ am__uninstall_files_from_dir = { \
...
@@ -186,6 +197,9 @@ am__uninstall_files_from_dir = { \
||
{
echo
" ( cd '
$$
dir' && rm -f"
$$
files
")"
;
\
||
{
echo
" ( cd '
$$
dir' && rm -f"
$$
files
")"
;
\
$(am__cd)
"
$$
dir"
&&
rm
-f
$$
files
;
}
;
\
$(am__cd)
"
$$
dir"
&&
rm
-f
$$
files
;
}
;
\
}
}
man8dir
=
$(mandir)
/man8
NROFF
=
nroff
MANS
=
$(man_MANS)
DATA
=
$(pkgdata_DATA)
DATA
=
$(pkgdata_DATA)
am__tagged_files
=
$(HEADERS)
$(SOURCES)
$(TAGS_FILES)
$(LISP)
am__tagged_files
=
$(HEADERS)
$(SOURCES)
$(TAGS_FILES)
$(LISP)
# Read a list of newline-separated strings from the standard input,
# Read a list of newline-separated strings from the standard input,
...
@@ -206,6 +220,8 @@ am__define_uniq_tagged_files = \
...
@@ -206,6 +220,8 @@ am__define_uniq_tagged_files = \
done
|
$(am__uniquify_input)
`
done
|
$(am__uniquify_input)
`
ETAGS
=
etags
ETAGS
=
etags
CTAGS
=
ctags
CTAGS
=
ctags
am__DIST_COMMON
=
$(srcdir)
/Makefile.in
$(srcdir)
/nfnl_osf.8.in
\
$(top_srcdir)
/build-aux/depcomp
DISTFILES
=
$(DIST_COMMON)
$(DIST_SOURCES)
$(TEXINFOS)
$(EXTRA_DIST)
DISTFILES
=
$(DIST_COMMON)
$(DIST_SOURCES)
$(TEXINFOS)
$(EXTRA_DIST)
pkgdatadir
=
@pkgdatadir@
pkgdatadir
=
@pkgdatadir@
ACLOCAL
=
@ACLOCAL@
ACLOCAL
=
@ACLOCAL@
...
@@ -250,6 +266,7 @@ LIBTOOL = @LIBTOOL@
...
@@ -250,6 +266,7 @@ LIBTOOL = @LIBTOOL@
LIPO
=
@LIPO@
LIPO
=
@LIPO@
LN_S
=
@LN_S@
LN_S
=
@LN_S@
LTLIBOBJS
=
@LTLIBOBJS@
LTLIBOBJS
=
@LTLIBOBJS@
LT_SYS_LIBRARY_PATH
=
@LT_SYS_LIBRARY_PATH@
MAKEINFO
=
@MAKEINFO@
MAKEINFO
=
@MAKEINFO@
MANIFEST_TOOL
=
@MANIFEST_TOOL@
MANIFEST_TOOL
=
@MANIFEST_TOOL@
MKDIR_P
=
@MKDIR_P@
MKDIR_P
=
@MKDIR_P@
...
@@ -347,6 +364,7 @@ program_transform_name = @program_transform_name@
...
@@ -347,6 +364,7 @@ program_transform_name = @program_transform_name@
psdir
=
@psdir@
psdir
=
@psdir@
regular_CFLAGS
=
@regular_CFLAGS@
regular_CFLAGS
=
@regular_CFLAGS@
regular_CPPFLAGS
=
@regular_CPPFLAGS@
regular_CPPFLAGS
=
@regular_CPPFLAGS@
runstatedir
=
@runstatedir@
sbindir
=
@sbindir@
sbindir
=
@sbindir@
sharedstatedir
=
@sharedstatedir@
sharedstatedir
=
@sharedstatedir@
srcdir
=
@srcdir@
srcdir
=
@srcdir@
...
@@ -360,10 +378,12 @@ AM_CFLAGS = ${regular_CFLAGS}
...
@@ -360,10 +378,12 @@ AM_CFLAGS = ${regular_CFLAGS}
AM_CPPFLAGS
=
${regular_CPPFLAGS}
-I
${top_builddir}
/include
\
AM_CPPFLAGS
=
${regular_CPPFLAGS}
-I
${top_builddir}
/include
\
-I
${top_srcdir}
/include
${libnfnetlink_CFLAGS}
-I
${top_srcdir}
/include
${libnfnetlink_CFLAGS}
pkgdata_DATA
=
$(am__append_2)
pkgdata_DATA
=
$(am__append_3)
man_MANS
=
$(am__append_1)
@HAVE_LIBNFNETLINK_TRUE@
nfnl_osf_LDADD
=
${libnfnetlink_LIBS}
@HAVE_LIBNFNETLINK_TRUE@
nfnl_osf_LDADD
=
${libnfnetlink_LIBS}
@ENABLE_BPFC_TRUE@
nfbpf_compile_LDADD
=
-lpcap
@ENABLE_BPFC_TRUE@
nfbpf_compile_LDADD
=
-lpcap
@ENABLE_SYNCONF_TRUE@
nfsynproxy_LDADD
=
-lpcap
@ENABLE_SYNCONF_TRUE@
nfsynproxy_LDADD
=
-lpcap
CLEANFILES
=
nfnl_osf.8
all
:
all-am
all
:
all-am
.SUFFIXES
:
.SUFFIXES
:
...
@@ -380,7 +400,6 @@ $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
...
@@ -380,7 +400,6 @@ $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
echo
' cd
$(top_srcdir)
&&
$(AUTOMAKE)
--gnu utils/Makefile'
;
\
echo
' cd
$(top_srcdir)
&&
$(AUTOMAKE)
--gnu utils/Makefile'
;
\
$(am__cd)
$(top_srcdir)
&&
\
$(am__cd)
$(top_srcdir)
&&
\
$(AUTOMAKE)
--gnu
utils/Makefile
$(AUTOMAKE)
--gnu
utils/Makefile
.PRECIOUS
:
Makefile
Makefile
:
$(srcdir)/Makefile.in $(top_builddir)/config.status
Makefile
:
$(srcdir)/Makefile.in $(top_builddir)/config.status
@
case
'$?'
in
\
@
case
'$?'
in
\
*
config.status
*
)
\
*
config.status
*
)
\
...
@@ -398,6 +417,8 @@ $(top_srcdir)/configure: $(am__configure_deps)
...
@@ -398,6 +417,8 @@ $(top_srcdir)/configure: $(am__configure_deps)
$(ACLOCAL_M4)
:
$(am__aclocal_m4_deps)
$(ACLOCAL_M4)
:
$(am__aclocal_m4_deps)
cd
$(top_builddir)
&&
$(MAKE)
$(AM_MAKEFLAGS)
am--refresh
cd
$(top_builddir)
&&
$(MAKE)
$(AM_MAKEFLAGS)
am--refresh
$(am__aclocal_m4_deps)
:
$(am__aclocal_m4_deps)
:
nfnl_osf.8
:
$(top_builddir)/config.status $(srcdir)/nfnl_osf.8.in
cd
$(top_builddir)
&&
$(SHELL)
./config.status
$(subdir)
/
$@
install-sbinPROGRAMS
:
$(sbin_PROGRAMS)
install-sbinPROGRAMS
:
$(sbin_PROGRAMS)
@
$(NORMAL_INSTALL)
@
$(NORMAL_INSTALL)
@
list
=
'
$(sbin_PROGRAMS)
'
;
test
-n
"
$(sbindir)
"
||
list
=
;
\
@
list
=
'
$(sbin_PROGRAMS)
'
;
test
-n
"
$(sbindir)
"
||
list
=
;
\
...
@@ -496,6 +517,49 @@ mostlyclean-libtool:
...
@@ -496,6 +517,49 @@ mostlyclean-libtool:
clean-libtool
:
clean-libtool
:
-
rm
-rf
.libs _libs
-
rm
-rf
.libs _libs
install-man8
:
$(man_MANS)
@
$(NORMAL_INSTALL)
@
list1
=
''
;
\
list2
=
'
$(man_MANS)
'
;
\
test
-n
"
$(man8dir)
"
\
&&
test
-n
"
`
echo
$$
list1
$$
list2
`
"
\
||
exit
0
;
\
echo
"
$(MKDIR_P)
'
$(DESTDIR)$(man8dir)
'"
;
\
$(MKDIR_P)
"
$(DESTDIR)$(man8dir)
"
||
exit
1
;
\
{
for
i
in
$$
list1
;
do
echo
"
$$
i"
;
done
;
\
if
test
-n
"
$$
list2"
;
then
\
for
i
in
$$
list2
;
do
echo
"
$$
i"
;
done
\
|
sed
-n
'/\.8[a-z]*$$/p'
;
\
fi
;
\
}
|
while
read
p
;
do
\
if
test
-f
$$
p
;
then
d
=
;
else
d
=
"
$(srcdir)
/"
;
fi
;
\
echo
"
$$
d
$$
p"
;
echo
"
$$
p"
;
\
done
|
\
sed
-e
'n;s,.*/,,;p;h;s,.*\.,,;s,^[^8][0-9a-z]*$$,8,;x'
\
-e
's,\.[0-9a-z]*$$,,;
$(transform)
;G;s,\n,.,'
|
\
sed
'N;N;s,\n, ,g'
|
{
\
list
=
;
while
read
file base inst
;
do
\
if
test
"
$$
base"
=
"
$$
inst"
;
then
list
=
"
$$
list
$$
file"
;
else
\
echo
"
$(INSTALL_DATA)
'
$$
file' '
$(DESTDIR)$(man8dir)
/
$$
inst'"
;
\
$(INSTALL_DATA)
"
$$
file"
"
$(DESTDIR)$(man8dir)
/
$$
inst"
||
exit
$$
?
;
\
fi
;
\
done
;
\
for
i
in
$$
list
;
do
echo
"
$$
i"
;
done
|
$(am__base_list)
|
\
while
read
files
;
do
\
test
-z
"
$$
files"
||
{
\
echo
"
$(INSTALL_DATA)
$$
files '
$(DESTDIR)$(man8dir)
'"
;
\
$(INSTALL_DATA)
$$
files
"
$(DESTDIR)$(man8dir)
"
||
exit
$$
?
;
}
;
\
done
;
}
uninstall-man8
:
@
$(NORMAL_UNINSTALL)
@
list
=
''
;
test
-n
"
$(man8dir)
"
||
exit
0
;
\
files
=
`
{
for
i
in
$$
list
;
do
echo
"
$$
i"
;
done
;
\
l2
=
'
$(man_MANS)
'
;
for
i
in
$$
l2
;
do
echo
"
$$
i"
;
done
|
\
sed
-n
'/\.8[a-z]*$$/p'
;
\
}
|
sed
-e
's,.*/,,;h;s,.*\.,,;s,^[^8][0-9a-z]*$$,8,;x'
\
-e
's,\.[0-9a-z]*$$,,;
$(transform)
;G;s,\n,.,'
`
;
\
dir
=
'
$(DESTDIR)$(man8dir)
'
;
$(am__uninstall_files_from_dir)
install-pkgdataDATA
:
$(pkgdata_DATA)
install-pkgdataDATA
:
$(pkgdata_DATA)
@
$(NORMAL_INSTALL)
@
$(NORMAL_INSTALL)
@
list
=
'
$(pkgdata_DATA)
'
;
test
-n
"
$(pkgdatadir)
"
||
list
=
;
\
@
list
=
'
$(pkgdata_DATA)
'
;
test
-n
"
$(pkgdatadir)
"
||
list
=
;
\
...
@@ -602,9 +666,9 @@ distdir: $(DISTFILES)
...
@@ -602,9 +666,9 @@ distdir: $(DISTFILES)
done
done
check-am
:
all-am
check-am
:
all-am
check
:
check-am
check
:
check-am
all-am
:
Makefile $(PROGRAMS) $(DATA)
all-am
:
Makefile $(PROGRAMS)
$(MANS)
$(DATA)
installdirs
:
installdirs
:
for
dir
in
"
$(DESTDIR)$(sbindir)
"
"
$(DESTDIR)$(pkgdatadir)
"
;
do
\
for
dir
in
"
$(DESTDIR)$(sbindir)
"
"
$(DESTDIR)$(man8dir)
"
"
$(DESTDIR)$(pkgdatadir)
"
;
do
\
test
-z
"
$$
dir"
||
$(MKDIR_P)
"
$$
dir"
;
\
test
-z
"
$$
dir"
||
$(MKDIR_P)
"
$$
dir"
;
\
done
done
install
:
install-am
install
:
install-am
...
@@ -629,6 +693,7 @@ install-strip:
...
@@ -629,6 +693,7 @@ install-strip:
mostlyclean-generic
:
mostlyclean-generic
:
clean-generic
:
clean-generic
:
-
test
-z
"
$(CLEANFILES)
"
||
rm
-f
$(CLEANFILES)
distclean-generic
:
distclean-generic
:
-
test
-z
"
$(CONFIG_CLEAN_FILES)
"
||
rm
-f
$(CONFIG_CLEAN_FILES)
-
test
-z
"
$(CONFIG_CLEAN_FILES)
"
||
rm
-f
$(CONFIG_CLEAN_FILES)
...
@@ -660,7 +725,7 @@ info: info-am
...
@@ -660,7 +725,7 @@ info: info-am
info-am
:
info-am
:
install-data-am
:
install-pkgdataDATA
install-data-am
:
install-man
install-pkgdataDATA
install-dvi
:
install-dvi-am
install-dvi
:
install-dvi-am
...
@@ -676,7 +741,7 @@ install-info: install-info-am
...
@@ -676,7 +741,7 @@ install-info: install-info-am
install-info-am
:
install-info-am
:
install-man
:
install-man
:
install-man8
install-pdf
:
install-pdf-am
install-pdf
:
install-pdf-am
...
@@ -706,7 +771,10 @@ ps: ps-am
...
@@ -706,7 +771,10 @@ ps: ps-am
ps-am
:
ps-am
:
uninstall-am
:
uninstall-pkgdataDATA uninstall-sbinPROGRAMS
uninstall-am
:
uninstall-man uninstall-pkgdataDATA
\
uninstall-sbinPROGRAMS
uninstall-man
:
uninstall-man8
.MAKE
:
install-am install-strip
.MAKE
:
install-am install-strip
...
@@ -717,14 +785,16 @@ uninstall-am: uninstall-pkgdataDATA uninstall-sbinPROGRAMS
...
@@ -717,14 +785,16 @@ uninstall-am: uninstall-pkgdataDATA uninstall-sbinPROGRAMS
html-am info info-am install install-am install-data
\
html-am info info-am install install-am install-data
\
install-data-am install-dvi install-dvi-am install-exec
\
install-data-am install-dvi install-dvi-am install-exec
\
install-exec-am install-html install-html-am install-info
\
install-exec-am install-html install-html-am install-info
\
install-info-am install-man install-
pdf
install-pdf
-am
\
install-info-am install-man install-
man8
install-pdf
\
install-pkgdataDATA install-ps install-ps-am
\
install-pdf-am
install-pkgdataDATA install-ps install-ps-am
\
install-sbinPROGRAMS install-strip installcheck
\
install-sbinPROGRAMS install-strip installcheck
\
installcheck-am installdirs maintainer-clean
\
installcheck-am installdirs maintainer-clean
\
maintainer-clean-generic mostlyclean mostlyclean-compile
\
maintainer-clean-generic mostlyclean mostlyclean-compile
\
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am
\
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am
\
tags tags-am uninstall uninstall-am uninstall-pkgdataDATA
\
tags tags-am uninstall uninstall-am uninstall-man
\
uninstall-sbinPROGRAMS
uninstall-man8 uninstall-pkgdataDATA uninstall-sbinPROGRAMS
.PRECIOUS
:
Makefile
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Tell versions [3.59,3.63) of GNU make to not export all variables.
...
...
utils/nfnl_osf.8.in
0 → 100644
View file @
5beab31f
.TH NFNL_OSF 8 "" "@PACKAGE_STRING@" "@PACKAGE_STRING@"
.SH NAME
nfnl_osf \- OS fingerprint loader utility
.SH SYNOPSIS
.ad l
.in +8
.ti -8
.B nfnl_osf
.BI -f " fingerprints"
[
.B -d
]
.SH DESCRIPTION
The
.B nfnl_osf
utility allows to load a set of operating system signatures into the kernel for
later matching against using iptables'
.B osf
match.
.SH OPTIONS
.TP
.BI -f " fingerprints"
Read signatures from file
.IR fingerprints .
.TP
.B -d
Instead of adding the signatures from
.I fingerprints
into the kernel, remove them.
.SH EXIT STATUS
Exit status is 0 if command succeeded, otherwise a negative return code
indicates the type of error which happened:
.TP
.B -1
Illegal arguments passed, fingerprints file not readable or failure in netlink
communication.
.TP
.B -ENOENT
Fingerprints file not specified.
.TP
.B -EINVAL
Netlink handle initialization failed or fingerprints file format invalid.
.SH FILES
An up to date set of operating system signatures can be downloaded from
http://www.openbsd.org/cgi-bin/cvsweb/src/etc/pf.os .
.SH SEE ALSO
The description of
.B osf
match in
.BR iptables-extensions (8)
contains further information about the topic as well as example
.B nfnl_osf
invocations.
utils/nfnl_osf.c
View file @
5beab31f
...
@@ -438,7 +438,7 @@ int main(int argc, char *argv[])
...
@@ -438,7 +438,7 @@ int main(int argc, char *argv[])
break
;
break
;
default:
default:
fprintf
(
stderr
,
fprintf
(
stderr
,
"Usage: %s -f fingerprints -d
<del rules> -h
\n
"
,
"Usage: %s -f fingerprints
[
-d
]
\n
"
,
argv
[
0
]);
argv
[
0
]);
return
-
1
;
return
-
1
;
}
}
...
...
utils/nfsynproxy.c
View file @
5beab31f
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
* published by the Free Software Foundation.
* published by the Free Software Foundation.
*/
*/
#define _GNU_SOURCE
#include <stdlib.h>
#include <stdlib.h>
#include <stdbool.h>
#include <stdbool.h>
#include <unistd.h>
#include <unistd.h>
...
...
utils/pf.os
View file @
5beab31f
# $FreeBSD: head/etc/pf.os 258865 2013-12-03 04:32:02Z eadler $
# $FreeBSD: head/etc/pf.os 258865 2013-12-03 04:32:02Z eadler $
# $OpenBSD: pf.os,v 1.2
6
201
2
/0
8
/03 1
2:25:16 jsg
Exp $
# $OpenBSD: pf.os,v 1.2
7
201
6
/0
9
/03 1
7:08:57 sthen
Exp $
# passive OS fingerprinting
# passive OS fingerprinting
# -------------------------
# -------------------------
#
#
...
@@ -315,6 +315,9 @@ S22:64:1:52:M*,N,N,S,N,W0: Linux:2.2:ts:Linux 2.2 w/o timestamps
...
@@ -315,6 +315,9 @@ S22:64:1:52:M*,N,N,S,N,W0: Linux:2.2:ts:Linux 2.2 w/o timestamps
16384
:
64
:
1
:
64
:
M
*
,
N
,
N
,
S
,
N
,
W3
,
N
,
N
,
T
:
OpenBSD
:
4
.
9
::
OpenBSD
4
.
9
16384
:
64
:
1
:
64
:
M
*
,
N
,
N
,
S
,
N
,
W3
,
N
,
N
,
T
:
OpenBSD
:
4
.
9
::
OpenBSD
4
.
9
16384
:
64
:
0
:
64
:
M
*
,
N
,
N
,
S
,
N
,
W3
,
N
,
N
,
T
:
OpenBSD
:
4
.
9
:
no
-
df
:
OpenBSD
4
.
9
(
scrub
no
-
df
)
16384
:
64
:
0
:
64
:
M
*
,
N
,
N
,
S
,
N
,
W3
,
N
,
N
,
T
:
OpenBSD
:
4
.
9
:
no
-
df
:
OpenBSD
4
.
9
(
scrub
no
-
df
)
16384
:
64
:
1
:
64
:
M
*
,
N
,
N
,
S
,
N
,
W6
,
N
,
N
,
T
:
OpenBSD
:
6
.
1
::
OpenBSD
6
.
1
16384
:
64
:
0
:
64
:
M
*
,
N
,
N
,
S
,
N
,
W6
,
N
,
N
,
T
:
OpenBSD
:
6
.
1
:
no
-
df
:
OpenBSD
6
.
1
(
scrub
no
-
df
)
# ----------------- DragonFly BSD -----------------
# ----------------- DragonFly BSD -----------------
57344
:
64
:
1
:
60
:
M
*
,
N
,
W0
,
N
,
N
,
T
:
DragonFly
:
1
.
0
:
A
:
DragonFly
1
.
0A
57344
:
64
:
1
:
60
:
M
*
,
N
,
W0
,
N
,
N
,
T
:
DragonFly
:
1
.
0
:
A
:
DragonFly
1
.
0A
...
...
xlate-test.py
0 → 100755
View file @
5beab31f
#!/usr/bin/env python3
# encoding: utf-8
import
os
import
sys
import
shlex
import
argparse
from
subprocess
import
Popen
,
PIPE
keywords
=
(
"iptables-translate"
,
"ip6tables-translate"
)
if
sys
.
stdout
.
isatty
():
colors
=
{
"magenta"
:
"
\033
[95m"
,
"green"
:
"
\033
[92m"
,
"yellow"
:
"
\033
[93m"
,
"red"
:
"
\033
[91m"
,
"end"
:
"
\033
[0m"
}
else
:
colors
=
{
"magenta"
:
""
,
"green"
:
""
,
"yellow"
:
""
,
"red"
:
""
,
"end"
:
""
}
def
magenta
(
string
):
return
colors
[
"magenta"
]
+
string
+
colors
[
"end"
]
def
red
(
string
):
return
colors
[
"red"
]
+
string
+
colors
[
"end"
]
def
yellow
(
string
):
return
colors
[
"yellow"
]
+
string
+
colors
[
"end"
]
def
green
(
string
):
return
colors
[
"green"
]
+
string
+
colors
[
"end"
]
def
run_test
(
name
,
payload
):
test_passed
=
True
tests
=
passed
=
failed
=
errors
=
0
result
=
[]
for
line
in
payload
:
if
line
.
startswith
(
keywords
):
tests
+=
1
process
=
Popen
(
shlex
.
split
(
line
),
stdout
=
PIPE
,
stderr
=
PIPE
)
(
output
,
error
)
=
process
.
communicate
()
if
process
.
returncode
==
0
:
translation
=
output
.
decode
(
"utf-8"
).
rstrip
(
"
\n
"
)
expected
=
next
(
payload
).
rstrip
(
"
\n
"
)
if
translation
!=
expected
:
test_passed
=
False
failed
+=
1
result
.
append
(
name
+
": "
+
red
(
"Fail"
))
result
.
append
(
magenta
(
"src: "
)
+
line
.
rstrip
(
"
\n
"
))
result
.
append
(
magenta
(
"exp: "
)
+
expected
)
result
.
append
(
magenta
(
"res: "
)
+
translation
+
"
\n
"
)
test_passed
=
False
else
:
passed
+=
1
else
:
test_passed
=
False
errors
+=
1
result
.
append
(
name
+
": "
+
red
(
"Error: "
)
+
"iptables-translate failure"
)
result
.
append
(
error
.
decode
(
"utf-8"
))
if
(
passed
==
tests
)
and
not
args
.
test
:
print
(
name
+
": "
+
green
(
"OK"
))
if
not
test_passed
:
print
(
"
\n
"
.
join
(
result
))
if
args
.
test
:
print
(
"1 test file, %d tests, %d tests passed, %d tests failed, %d errors"
%
(
tests
,
passed
,
failed
,
errors
))
else
:
return
tests
,
passed
,
failed
,
errors
def
load_test_files
():
test_files
=
total_tests
=
total_passed
=
total_error
=
total_failed
=
0
for
test
in
sorted
(
os
.
listdir
(
"extensions"
)):
if
test
.
endswith
(
".txlate"
):
with
open
(
"extensions/"
+
test
,
"r"
)
as
payload
:
tests
,
passed
,
failed
,
errors
=
run_test
(
test
,
payload
)
test_files
+=
1
total_tests
+=
tests
total_passed
+=
passed
total_failed
+=
failed
total_error
+=
errors
print
(
"%d test files, %d tests, %d tests passed, %d tests failed, %d errors"
%
(
test_files
,
total_tests
,
total_passed
,
total_failed
,
total_error
))
def
main
():
if
args
.
test
:
if
not
args
.
test
.
endswith
(
".txlate"
):
args
.
test
+=
".txlate"
try
:
with
open
(
args
.
test
,
"r"
)
as
payload
:
run_test
(
args
.
test
,
payload
)
except
IOError
:
print
(
red
(
"Error: "
)
+
"test file does not exist"
)
else
:
load_test_files
()
parser
=
argparse
.
ArgumentParser
()
parser
.
add_argument
(
"test"
,
nargs
=
"?"
,
help
=
"run only the specified test file"
)
args
=
parser
.
parse_args
()
main
()
Prev
1
…
4
5
6
7
8
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment