Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
107 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
5d38c66
removed -mwin32 compiler flag (MinGW)
sgeto May 4, 2017
42564ee
All is _WIN32
sgeto May 4, 2017
4506b15
Updated msvcbuild.bat
sgeto May 4, 2017
4934d68
MSVC integration - Part One
sgeto May 4, 2017
4f83696
Removed HAVE_OS_PROTO_H/os-proto.h leftovers
sgeto May 4, 2017
818b374
Updated existing visual studio project files for samples
sgeto May 4, 2017
0cce9a0
updated .gitignore
sgeto May 4, 2017
37a4c39
Adjusted a blank line following trailing backslash error in Makefile
sgeto May 4, 2017
06611ec
Freeing libnet.h - Part 1
sgeto May 4, 2017
e004618
Standardized libnet package versioning
sgeto May 27, 2017
0e8eba0
A better compiler vendor and compiler version check
sgeto May 30, 2017
03c9a22
--enable-debug and --enable-fast finally do as they advertised
sgeto May 30, 2017
cdc0abd
Changed tar format to use when generating tarballs with ‘make dist’
sgeto May 30, 2017
b468192
Some more windows and clang tweakes
sgeto May 30, 2017
7bb14e7
added a .gitattributes file
sgeto May 30, 2017
6df4e75
Updated libnet.h.in
sgeto May 30, 2017
b3ce5e3
Fixed a problem where libnet.h not being install
sgeto Oct 9, 2017
595d1af
update appveyor.yml
sgeto Oct 9, 2017
a57ae8a
updated .gitattributes
sgeto Oct 9, 2017
4814c34
updated BUILD-FROM-GIT.md
sgeto Oct 9, 2017
9d7a7c7
updated TODO
sgeto Oct 9, 2017
d7a70b6
Added new msvcbuild.bat destination to dist
sgeto Oct 9, 2017
be4c84f
Some updated for msvcbuild.bat
sgeto Oct 9, 2017
73f702a
Fixed --enable-debug option
sgeto Oct 9, 2017
39612a5
changes to mainpage of API Documentation
sgeto Oct 9, 2017
43ee1c4
prettified header files
sgeto Oct 9, 2017
350d051
Fixed merge conflict
sgeto Oct 9, 2017
97b1408
something about msvcbuild.bat in lua/
sgeto Oct 9, 2017
90e4ddc
random adjustedments for samples
sgeto Oct 9, 2017
754d701
define _DEBUG in windres when appropriate
sgeto Oct 9, 2017
49381b6
added MSVS specific stuff
sgeto Oct 9, 2017
6753559
trailing whitespace and other weirdnesses
sgeto Oct 9, 2017
1d0d2c9
changed progname to libnet in getopt.c
sgeto Oct 9, 2017
40f2b6e
Get rid of all the VS stuff
sgeto Oct 9, 2017
8bedc6e
regenerate libnet.h
sgeto Oct 9, 2017
5a2bd61
draft stuff
sgeto Oct 9, 2017
ac9cbaa
annoying whitespace changes
sgeto Oct 9, 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
108 changes: 108 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
#common settings that generally should always be used with your language specific settings

# Auto detect text files and perform LF normalization
# http://davidlaing.com/2012/09/19/customise-your-gitattributes-to-become-a-git-ninja/
* text=auto

#
# The above will handle all files NOT found below
#

#sources
*.c text
*.h text

# Compiled Object files
*.slo binary
*.lo binary
*.o binary
*.obj binary

# Precompiled Headers
*.gch binary
*.pch binary

# Compiled Dynamic libraries
*.so binary
*.dylib binary
*.dll binary

# Compiled Static libraries
*.lai binary
*.la binary
*.a binary
*.lib binary

# Executables
*.exe binary
*.out binary
*.app binary


# Documents
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
*.md text
*.adoc text
*.textile text
*.mustache text
*.csv text
*.tab text
*.tsv text
*.sql text

# Graphics
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.tif binary
*.tiff binary
*.ico binary
# SVG treated as an asset (binary) by default. If you want to treat it as text,
# comment-out the following line and uncomment the line after.
*.svg binary
#*.svg text
*.eps binary

## VisualStudio

*.sln text eol=crlf
*.csproj text eol=crlf
*.vbproj text eol=crlf
*.vcxproj text eol=crlf
*.vcproj text eol=crlf
*.dbproj text eol=crlf
*.fsproj text eol=crlf
*.lsproj text eol=crlf
*.wixproj text eol=crlf
*.modelproj text eol=crlf
*.sqlproj text eol=crlf
*.wwaproj text eol=crlf

*.xproj text eol=crlf
*.props text eol=crlf
*.filters text eol=crlf
*.vcxitems text eol=crlf

# Lua

# Source files
# ============
*.lua text

# Luadoc output
# =============
*.html text
*.css text

# Things that only make sense on github.com
.github export-ignore
75 changes: 49 additions & 26 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
*.a
*.la
*.dll
*.exe
*.exp
*.la
*.lib
*.lo
*.loT
*.o
*.obj
*.lib
*.ilk
*.pdb
*.out.dSYM
*.so.dSYM
*~
Expand All @@ -16,34 +18,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 +112,13 @@ 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

# visual studio
.vs
UpgradeLog.htm
*.vcxproj.user
libnet/sample/win32/*.db
libnet/sample/win32/*/Backup
libnet/sample/win32/*/Debug
libnet/sample/win32/*/Release
libnet/sample/win32/*/x64
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 ..
9 changes: 9 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
git --no-pager log --no-merges --pretty=format:' %x20%x20 - %s (%an)' `git tag | grep -v -- -rc | tail -n 1`..HEAD .

git log --oneline --all --graph --decorate $*

update-authors:
git shortlog -s -e | cut -c 8- | sort > AUTHORS

DISTCHECK_CONFIGURE_FLAGS = \
--enable-doxygen-doc \
--disable-samples \
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)

Loading