Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
4d43257
improved MSVC x64 support (Pull Request #58 upstream)
sgeto Nov 17, 2016
01a3d5b
fixed .travis.yml
sgeto Nov 17, 2016
3c54685
.travis.yml OSX #1
sgeto Nov 17, 2016
57750c5
appveyor.yml test #1
sgeto Nov 17, 2016
da919ef
another appveyor fix
sgeto Nov 18, 2016
10f339b
appveyor test #12?
sgeto Nov 18, 2016
6bce83b
appveyor test #13
sgeto Nov 18, 2016
aa6bd26
msvcbuild.bat enhancements
sgeto Nov 18, 2016
a6594cf
patched msvcbuilt.bat
sgeto Nov 18, 2016
50c3e8b
changed output folders again (msvc)
sgeto Nov 21, 2016
086831f
Some MinGW specific tryouts
sgeto Dec 26, 2016
8002127
MinGW ready!
sgeto Jan 6, 2017
51bf711
Various fixes. Mostly by gvanem (PR no. #50)
sgeto Jan 7, 2017
05b26a4
omg travis.yml #2
sgeto Jan 7, 2017
34f38e2
fixed conflicting types for 'rand' ans 'srand' on linux
sgeto Jan 7, 2017
8dbb7d0
omg travis.yml #5
sgeto Jan 7, 2017
efa9881
added windows.h to libnet_prand.c to make wincrypt.h happy
sgeto Jan 10, 2017
71adcbf
Finalized MinGW port + first wave of autotools enhancements
sgeto Jan 26, 2017
f9e0160
modified travis.yml for codecov
sgeto Jan 26, 2017
91f1d78
bundled gcc friendly winpcap libs
sgeto Jan 26, 2017
5d652a2
travis, still refusing
sgeto Jan 27, 2017
1265500
second wave of build system enhancements
sgeto Feb 18, 2017
be77584
DISTCLEANFILES = *~ is out
sgeto Feb 19, 2017
11e719b
adjusted LUA (and Debian) stuff to build system changes
sgeto Feb 23, 2017
404fe20
Ported to Android (native)
sgeto Feb 27, 2017
fea534a
Fixed typos and wording in Android building Instructions
sgeto Mar 4, 2017
eb76d22
Added diagnostic pragma to suppress harmless macro redefinition warnings
sgeto Mar 4, 2017
84e5fef
Added detailed MinGW build instructions to README.win32
sgeto Mar 5, 2017
8b58511
distribute libnet.h (again)
sgeto Mar 5, 2017
f83ed4a
Codecov and Travis adjustments
sgeto Mar 5, 2017
6a784cc
Removed autoconf, automake and libnet prerequisites
sgeto Mar 5, 2017
944552a
Travis related tuning
sgeto Mar 5, 2017
8e631f7
Replaced autogen.sh with a more badass one
sgeto Mar 5, 2017
f4d526a
Add pkg-config support (suggested in PR #49 by Barak A. Pearlmutter)
sgeto Mar 8, 2017
89ba913
Removed AM_MAINTAINER_MODE (suggested in PR #49 by Barak A. Pearlmutter)
sgeto Mar 8, 2017
dae58b9
improved preprocessor directive (order) in libnet_prand.c (win32)
sgeto Mar 12, 2017
e0decb9
replaced android SHELL variable adjustment with a more universal one
sgeto Mar 15, 2017
baf77e1
Moved acinclude to m4 folder
sgeto Apr 6, 2017
dd54ca2
Added ax_prog_doxygen.m4
sgeto Apr 6, 2017
1acd872
Merged include/libnet/Makefile.am and include/Makefile.am into one
sgeto Apr 6, 2017
2c4d66c
stamp.h.in is out
sgeto Apr 6, 2017
615848c
Keep module definition file in scr folder after creation
sgeto Apr 6, 2017
1421071
Merged win32/Makefile.am with toplevel Makefile.am
sgeto Apr 6, 2017
7d53c88
updated autogen.sh
sgeto Apr 6, 2017
5772063
libnet.doxygen.conf is now libnet.doxygen.conf.in
sgeto Apr 6, 2017
3c1389c
Merged all Makefiles.am in doc folder with toplevel Makefile.am
sgeto Apr 6, 2017
484f982
Bundled docs (man html pdf)
sgeto Apr 6, 2017
e7643aa
Added necessary doc features/hooks to configure.ac and Makefile.am
sgeto Apr 6, 2017
63b1146
Updated .gitignore, BUILD-FROM-GIT.txt, Build, Prepare, Package and TODO
sgeto Apr 6, 2017
d0f11a1
Include otherwise-ignored stuff from git repo in "make dist"
sgeto Apr 6, 2017
2b51d9b
Adjusted Android building instructions regarding my doxygen port
sgeto Apr 6, 2017
ec67605
Added libnet.pdf to dist_doc_DATA targets
sgeto Apr 6, 2017
64d27b8
ETHERTYPE_IPV6 Hex letter digits' are now all uppercase
sgeto Apr 9, 2017
819972a
Fixed a typo in libnet-structures.h
sgeto Apr 9, 2017
55fa54b
Changed the default paper size to A4
sgeto Apr 9, 2017
3f5457b
Updated and bugfixed libnet-config
sgeto Apr 15, 2017
fa4e9a6
Put ETHERTYPE_IPV6 in ifdef block
sgeto Apr 22, 2017
d69f623
Added libnet defines to cflags in pkg-config file
sgeto Apr 22, 2017
8da5eba
Increased serial no in ax_prog_doxygen.m4 to 99
sgeto Apr 22, 2017
b3281e2
Updated and modified libnet.doxygen.conf
sgeto Apr 22, 2017
4c14bf2
Added ability to guess the install prefix
sgeto Apr 22, 2017
9dfadc7
BUILD-FROM-GIT is now a markdown file
sgeto Apr 22, 2017
64d9fa4
Bundling libnet's api (html) documentation
sgeto Apr 22, 2017
348cc9d
Putting an end to Doxygen's man page weirdness
sgeto Apr 22, 2017
3d13bcc
added a main page to api docs
sgeto Apr 26, 2017
81342c4
fixed a few typos in libnet-functions.h
sgeto Apr 26, 2017
30de504
A few (mostly cosmetic) changes to libnet.h.in
sgeto Apr 26, 2017
eb08de3
Pkg-config is not optional anymore
sgeto Apr 26, 2017
e52d49e
Adjusted Makefile.am and Configure.ac to doc changes
sgeto Apr 26, 2017
4269054
Added CI branch and doxygen-latex dependency (on linux) to travis
sgeto Apr 28, 2017
af6bed2
Added config.h as dist target
sgeto Apr 28, 2017
dd49967
Distribute libnet.h with tar ball
sgeto Apr 30, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 36 additions & 26 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
*.a
*.la
*.dll
*.exe
*.exp
*.la
*.lib
*.lo
*.loT
*.o
Expand All @@ -16,34 +15,52 @@ Makefile
Makefile.in
aclocal.m4
autom4te.cache
config.guess
config.h.in
config.cache

config.log
config.status
config.sub
configure
dynsections.js
install-sh
jquery.js
libnet*.changes
libnet*.deb
libnet-1.?
libnet-1.?.?
libnet-1.?.?.tar.gz
libnet-1.?.tar.gz
libnet-*.tar.gz
libnet-*.zip
libnet-config
libnet/*-stamp
libnet.pc
libtool

lua/net.so

libnet/build-aux
libnet/debian
libnet/doc/html/*.css
libnet/doc/html/*.gif
libnet/doc/html/*.html
libnet/doc/html/*.png
libnet/doc/man/man3/*.3

libnet/doc/libnet.tag
libnet/doc/fixmanpages
libnet/doc/api/*.md5
libnet/doc/api/*.js
libnet/doc/api/*.map
libnet/doc/latex
libnet/doc/man/man3/_*.3


libnet/include/config.h
libnet/include/config.h.in
libnet/include/getopt.h
libnet/include/libnet.h
libnet/include/libnet/stdint.h
libnet/m4
libnet/include/stamp-*

libnet/m4/libtool.m4
libnet/m4/lt~obsolete.m4
libnet/m4/ltoptions.m4
libnet/m4/ltsugar.m4
libnet/m4/ltversion.m4

libnet/src/*.a
libnet/src/.libs/*.a
libnet/src/*.gcno

libnet/sample/*.gcno
libnet/sample/arp
libnet/sample/bgp4_hdr
libnet/sample/bgp4_notification
Expand Down Expand Up @@ -92,10 +109,3 @@ libnet/sample/tring_tcp1
libnet/sample/tring_tcp2
libnet/sample/udp1
libnet/sample/udp2
libtool
ltmain.sh
lua/net.so
missing
stamp-*
tags
version.h
23 changes: 23 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
language: c
script:
sudo make install
branches:
only:
- master
- CI
compiler:
- gcc
- clang
os:
- linux
- osx
before_install:
- if [ ${TRAVIS_OS_NAME} = "linux" ]; then sudo add-apt-repository ppa:dns/gnu -y; sudo apt-get update -qq; sudo apt-get install -y autoconf automake m4 libtool doxygen doxygen-latex liblua5.1-0-dev libdumbnet-dev; fi
- if [ ${TRAVIS_OS_NAME} = "osx" ]; then brew update; brew install doxygen lua@5.1 libdnet; fi
install: cd libnet && ../Prepare && ../Build
after_success:
- bash <(curl -s https://codecov.io/bash)
#add email if you want to get notified
#notifications:
# email:

75 changes: 75 additions & 0 deletions BUILD-FROM-GIT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# BUILD FROM GIT #

I build from git using some top-level scripts. Refer to libnet/INSTALL for additional information and libnet/README.win32 if you're building for/on Windows.

## Minimum requirements are: ##

- A C compiler (obviously)

The Autotools:
- autoconf 2.69
- automake 1.14
- libtool 2.4.2


## To build the documentation (optional): ##

- doxygen 1.8.14
- pod2man

**...and optionally:**

**For Graphics:**
- graphviz

**For PDF/PS:**
(The tools found in) The doxygen-latex Package:

- texlive-extra-utils,
- texlive-latex-extra,
- texlive-fonts-recommended,
- latex-xcolor,
- texlive-font-utils,
- ghostscript

**For CHM:**
On Windows:
- Microsoft HTML Help Workshop (Part of Visual Studio)
Standalone: http://go.microsoft.com/fwlink/p/?linkid=154968

On *nix:
- chmcmd (Part of the Free Pascal Compiler (http://www.freepascal.org/)


## To build LUA bindings (optional): ##

- libdumbnet-dev
(consider using my fork https://github.com/sgeto/libdnet)

- liblua5.1-0-dev (See lua/Makefile)

## **To create Debian packages:** ##

- debhelper
- sharutils
- quilt

## General procedure is: ##

`git clone https://github.com/sgeto/libnet.git`

`cd libnet/libnet`

`../Prepare`

`../Build`

and then, one of the following, depending on how you like to install local packages:

`sudo make install`

`../Stow`

`../Package`

**Again, see libnet/INSTALL and libnet/README.win32 for more detailed instructions.**
14 changes: 0 additions & 14 deletions BUILD-FROM-GIT.txt

This file was deleted.

6 changes: 3 additions & 3 deletions Build
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

make -C doc doc
make
make dist && mv libnet-1*.tar.gz ..

make -C ../lua
make check
make distcheck && mv libnet-1*.tar.gz libnet-1*.zip ..
2 changes: 1 addition & 1 deletion Clean
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -x

git clean -x -d
git clean -x -d -f

(cd /usr/local/stow && sudo stow -D libnet)

96 changes: 96 additions & 0 deletions Doxyfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
# Doxyfile 1.8.14
# ALRIGHT LISTEN UP: This is a standalone Doxyfile for codedocs.xyz.
# The real deal is libnet.doxygen.conf found in libnet/doc/ (but only works
# in conjunction with automake)
#---------------------------------------------------------------------------
# Project related configuration options
#---------------------------------------------------------------------------
PROJECT_NAME = "libnet"
PROJECT_NUMBER = "1.2-rc3"
PROJECT_BRIEF = "A Portable Framework for Low-Level Network Packet Construction"
PROJECT_LOGO =
OUTPUT_DIRECTORY = libnet/doc
ABBREVIATE_BRIEF =
STRIP_FROM_PATH = include
OPTIMIZE_OUTPUT_FOR_C = YES
EXTRACT_LOCAL_CLASSES = NO
HIDE_UNDOC_MEMBERS = YES
HIDE_UNDOC_CLASSES = YES
#---------------------------------------------------------------------------
# Configuration options related to warning and progress messages
#---------------------------------------------------------------------------
QUIET = YES
WARN_NO_PARAMDOC = YES
#---------------------------------------------------------------------------
# Configuration options related to the input files
#---------------------------------------------------------------------------
INPUT = libnet/doc/libnet_api_main_page.md \
libnet/include/libnet \
libnet/include/libnet.h
FILE_PATTERNS = *.h
RECURSIVE = YES
EXCLUDE = libnet/include/libnet/libnet-headers.h \
libnet/include/libnet/libnet-types.h \
libnet/include/libnet/libnet-asn1.h \
libnet/include/libnet/libnet-structures.h
EXAMPLE_PATTERNS =
USE_MDFILE_AS_MAINPAGE = libnet_api_main_page.md
#---------------------------------------------------------------------------
# Configuration options related to source browsing
#---------------------------------------------------------------------------
REFERENCED_BY_RELATION = YES
REFERENCES_RELATION = YES
#---------------------------------------------------------------------------
# Configuration options related to the alphabetical class index
#---------------------------------------------------------------------------
COLS_IN_ALPHA_INDEX = 3
#---------------------------------------------------------------------------
# Configuration options related to the HTML output
#---------------------------------------------------------------------------
GENERATE_HTML = YES
HTML_OUTPUT = api
HTML_HEADER = libnet/doc/libnet_api_header.html_tmpl
HTML_FOOTER = libnet/doc/libnet_api_footer.html_tmpl
HTML_EXTRA_STYLESHEET = libnet/doc/libnet_api_stylesheet.css_tmpl
HTML_COLORSTYLE_HUE = 120
HTML_COLORSTYLE_SAT = 50
HTML_COLORSTYLE_GAMMA = 40
CHM_FILE = ../libnet.chm
HHC_LOCATION = "C:\Program Files (x86)\HTML Help Workshop\hhc.exe"
DISABLE_INDEX = YES
SEARCHENGINE = NO
#---------------------------------------------------------------------------
# Configuration options related to the LaTeX output
#---------------------------------------------------------------------------
LATEX_BATCHMODE = YES
#---------------------------------------------------------------------------
# Configuration options related to the RTF output
#---------------------------------------------------------------------------
#---------------------------------------------------------------------------
# Configuration options related to the man page output
#---------------------------------------------------------------------------
#---------------------------------------------------------------------------
# Configuration options related to the XML output
#---------------------------------------------------------------------------
#---------------------------------------------------------------------------
# Configuration options related to the DOCBOOK output
#---------------------------------------------------------------------------
#---------------------------------------------------------------------------
# Configuration options for the AutoGen Definitions output
#---------------------------------------------------------------------------
#---------------------------------------------------------------------------
# Configuration options related to the Perl module output
#---------------------------------------------------------------------------
#---------------------------------------------------------------------------
# Configuration options related to the preprocessor
#---------------------------------------------------------------------------
PREDEFINED = DOXYGEN_SHOULD_SKIP_THIS
#---------------------------------------------------------------------------
# Configuration options related to external references
#---------------------------------------------------------------------------
PERL_PATH = C:\msys64\usr\bin\perl.exe
#---------------------------------------------------------------------------
# Configuration options related to the dot tool
#---------------------------------------------------------------------------
HAVE_DOT = YES
DOT_MULTI_TARGETS = YES
7 changes: 5 additions & 2 deletions Package
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
#!/bin/sh

# run this script as root

set -x

V=$(git describe --tags| sed -es/libnet-//)
V=$(git describe | sed -es/libnet-//)
D=$(date --rfc-822)

rm -rf debian
cp -r ../debian ./
sed -es"/VERSION/$V/" -es"/DATE/$D/" < ../debian/changelog > debian/changelog
cat debian/changelog

dpkg-buildpackage -b -us -uc -rfakeroot -i -I.swp
dpkg-buildpackage -b -us -uc -i -I.swp

10 changes: 9 additions & 1 deletion Prepare
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,13 @@ set -e

sh ./autogen.sh

CFLAGS="-O0 -g -Wall" ./configure --with-pic --enable-maintainer-mode --enable-dependency-tracking --enable-shared=yes
CFLAGS="-O0 -g -Wall --coverage" ./configure

# NOTES:

# Coverage data matches the source files more closely if you do not optimize.

# --coverage
# This option is used to compile and link code instrumented for coverage
# analysis. The option is a synonym for -fprofile-arcs -ftest-coverage
# (when compiling) and -lgcov (when linking).
7 changes: 0 additions & 7 deletions Push

This file was deleted.

Loading