summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Caveat for the package installation docscleanup-binSam Roberts2019-10-091-2/+5
|
* Remove unused scriptsSam Roberts2019-10-096-76/+0
| | | | | | Some scripts were out of date, some were specific to my development environment, and some just aren't used anymore. None should be distributed. Remove them.
* Do not package or distribute map-pblock-typesSam Roberts2019-10-094-3/+3
|
* Rerun ./bin/map-pblock-types to add missing typesSam Roberts2019-10-091-0/+2
|
* doc: Include html templates for doxygen in dist tarballJoachim Nilsson2019-10-096-5/+7
| | | | | | | - Rename templates for ease of use/edit - Add html and Pid file to EXTRA_DIST Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* Cannot use the `-m` flag in first-time buildsSam Roberts2019-10-091-1/+1
| | | | | | | | | Running autogen.sh failed with: autoreconf: no config.status: cannot re-make The `-m` flag does not appear necessary, and removing it allows autotools to generate the configure script.
* Bump version for v1.2-rc4v1.2-rc4Joachim Nilsson2019-10-091-1/+1
| | | | Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* Update ChangeLog for v1.2 releaseJoachim Nilsson2019-10-091-73/+55
| | | | | | | | | | | | | This is a *major* cleanup. All fixes and changes made to build system; warnings/errors, cosmetic doc fixes, and other changes not relevant to end users have been removed and/or rephrased. I've also removed the names os people doing the changes, as this also does not really provide any value to an end user but is more of a mix with a CONTRIB/AUTHORS file, we have GIT if attribution/blame is needed check there. Otherwise the curator(s) are to blame. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* libnet_in_cksum(): Clean up, remove unused DEBIAN codeJoachim Nilsson2019-10-091-26/+3
| | | | | | | | | | | | | This removes the last (unused) remnants of a Debian discussion about checksumming odd sized packets. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=284729 The resulting code from this change is what we've had for several years now, without any more bug reports. So I'm removing the unused code to make it easier to read. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* Makefile: Simplify doc_DATA and EXTRA_DIST slightlyJoachim Nilsson2019-10-081-3/+2
| | | | Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* doc: Reduce amount of documents are included in dist archivesJoachim Nilsson2019-10-081-4/+1
| | | | | | | | - Skip old CHANGELOG, CONTRIB, and TODO files - Design notes, how to create new packet builders can be in GIT only - The PORTED document can alos be in GIT only Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* Add coding style hinting for EmacsJoachim Nilsson2019-10-0865-15/+397
| | | | Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* Follow-up to f3b4dea3: Missing starting " in snprintf()Joachim Nilsson2019-10-081-1/+1
| | | | Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* Ignore GNU global tags filesJoachim Nilsson2019-10-081-0/+3
| | | | Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* Minor, coding style/whitespace cleanupJoachim Nilsson2019-10-084-126/+145
| | | | | | | | - Avoid assignment inside if-statements - Add missing whitespace; if () rather than if() - Spaces vs tabs Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* libnet_destroy(): Don't close() l->fd if -1Joachim Nilsson2019-10-081-1/+2
| | | | | | Found by Valgrind Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* Skip sys/timeb.h also on FreeBSD, deprecatedJoachim Nilsson2019-10-081-1/+1
| | | | Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* configure: Check for FreeBSD pre-11 to detect SOCK_RAW behaviorJoachim Nilsson2019-10-081-7/+14
| | | | Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* libnet-config.in: Restore old LIBNET_CONFIG_CFLAGS, for completenessJoachim Nilsson2019-10-073-2/+3
| | | | Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* libnet-config.in: Add missing paths to -I and -LJoachim Nilsson2019-10-071-7/+13
| | | | | | | This whole script is only kept for compatibility reasons. The major content added in this commit is blatantly stolen from libnet.pc.in Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* Revert "Remove libnet-config, replaced by pkg-config support"Joachim Nilsson2019-10-078-1/+110
| | | | | | | | This reverts the removal of libnet-config.in from commit b4063cc. The reason being it is easier to maintain it during a transitional period, for compatibility with existing projects. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* configure: Drop LIB@&t@OBJS + LTLIBOBJS computationJoachim Nilsson2019-10-061-18/+4
| | | | | | | | | "Nowadays the computation of LTLIBOBJS from LIBOBJS is performed automatically by autoconf ..." -- https://www.gnu.org/software/automake/manual/html_node/LTLIBOBJS.html Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* configure: Refactor if/case, m4sh:ificationJoachim Nilsson2019-10-061-114/+98
| | | | Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* configure: Minor, cleanup and formattingJoachim Nilsson2019-10-061-40/+30
| | | | | | | | - Clean up unused variables/settings - Remove noisy non-m4 shell script that doesn't really test for anything - Fix formatting, too long lines and text formatting consistency Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* configure: Minor, update info for `./configure --version`Joachim Nilsson2019-10-061-2/+4
| | | | Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* configure: Minor refactor, m4sh:ificationJoachim Nilsson2019-10-061-10/+3
| | | | Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* configure: Minor, clean up formatting of configuration summaryJoachim Nilsson2019-10-061-16/+19
| | | | Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* configure: Allow default CFLAGS="-O2 -g", use `make install-strip`Joachim Nilsson2019-10-061-4/+0
| | | | | | | | | | | | | We should not make assumptions about what are preferred CFLAGS. Let autoconf handle all that, unless the user has provided CFLAGS on the command line. Usually, when building a distribution package, you want debug symbols for a libnet-dbg (unstripped) and a libnet1 (stripped) package. Also, the user can always run `make install-strip` to get the stripped lib installed. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* configure: Minor, use # as comment instead of dnlJoachim Nilsson2019-10-061-38/+38
| | | | | | | | For noobs starting out with m4 'dnl' is one of the first questions. We can use '#' as comment char instead, which is a lot less intimidating, and (IMO) more readable. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* configure: Drop --enable-debug/--enable-fast, use CFLAGS insteadJoachim Nilsson2019-10-061-43/+0
| | | | | | | Simplify, it is recommended to not have implicit build flags and instead recommend users tweak CPPFLAGS and CFLAGS. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* configure: Revert to pre-1.2 behavior, don't build samples by defaultJoachim Nilsson2019-10-061-2/+2
| | | | Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* How to actually download and buildJoachim Nilsson2019-10-061-3/+11
| | | | Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* Divide Building in sub-sections to help reader find relevant infoJoachim Nilsson2019-10-061-6/+10
| | | | Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* Add helper rules to check GIT tag & build tar/zip + md5 filesJoachim Nilsson2019-10-061-0/+36
| | | | Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* Drop gratuitous EOF and end of fileJoachim Nilsson2019-10-06105-117/+0
| | | | Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* Clean up documentation a bit; URLs, wording, personal details ...Joachim Nilsson2019-10-064-111/+25
| | | | Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* Add missing required defines & libs to libnet.pc.inJoachim Nilsson2019-10-063-13/+13
| | | | Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* Remove __BSD_SOURCE and __FAVOR_BSD for Linux buildsJoachim Nilsson2019-10-051-5/+1
| | | | | | | __BSD_SOURCE has never existed, only _BSD_SOURCE __FAVOR_BSD is set when _BSD_SOURCE is defined Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* Remove LIBNET_BSDISH_OS define, completely unused in source treeJoachim Nilsson2019-10-052-19/+4
| | | | Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* Add simplified Markdown style ChangeLog based on doc/CHANGELOGJoachim Nilsson2019-10-052-2/+448
| | | | | | | | Initial import is pretty much a verbatim import of doc/CHANGELOG, only the v1.2 section has been slightly pruned in content. This section will likely see more changes/simplification before the v1.2 GA release. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* README: Add section on how to use libnet with pkg-configJoachim Nilsson2019-10-051-0/+28
| | | | Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* Remove all generated contentJoachim Nilsson2019-10-019-4210/+3
| | | | | | | | Remove PDF and man pages from GIT and distribution. Generated content can be (re)created using doxygen, as it should. Also, the latest documentation is available online these days. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* Fix sign mismatch in getsockopt() optlenSam Roberts2019-10-011-1/+1
| | | | | Modern systems declare this as `.. socklen_t)`, but older systems don't use that. Use unsigned because its at least sign-compatible.
* Remove unused variablesSam Roberts2019-10-012-19/+1
|
* Update .gitignore: ignore GCC gcno coverageSam Roberts2019-10-011-0/+1
|
* Improve formatting of NOTEJoachim Nilsson2019-09-291-3/+3
| | | | Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* Link to projects using libnet, and update/add referencesJoachim Nilsson2019-09-291-11/+25
| | | | Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* doc: Remove html from dist, also remove from configure.acJoachim Nilsson2019-09-291-1/+0
| | | | Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* doc: Remove html from dist, created by doxygenJoachim Nilsson2019-09-292-3/+1
| | | | | | | | Only generated man pages are included in the distribution tarballs, for now. The Debian package can generate a libnet1-doc package, but there is also the online docs at https://codedocs.xyz/libnet/libnet/ Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* doc/api: Remove generated files, from @sgeto master mergeJoachim Nilsson2019-09-2938-12082/+0
| | | | Signed-off-by: Joachim Nilsson <troglobit@gmail.com>