summaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* include: drop internal-only ifaddrlist.h includeJoachim Wiberg2022-12-302-59/+1
| | | | | | Only used in libnet_if_addr.c and never documented as a public API. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
* libnet_raw: don't change the TX buffer size for raw socketsBeniamin Sandu2022-09-261-0/+12
| | | | | | | | Instead of trying to set the max TX buffer size for every raw socket, export this to a separate interface that can be used when needed, called libnet_setfd_max_sndbuf(). Signed-off-by: Beniamin Sandu <beniaminsandu@gmail.com>
* Fix #139: ftbfs on FreeBSDJoachim Wiberg2022-05-301-1/+1
| | | | | | | | stdint.h is required to get UINT32_MAX et al on FreeBSD, and possibly other *BSD as well, not just Win32. So moving this include to the common include section. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
* functions: lldp: drop extra const for consistency with rest of libnetValery Ivanov2021-08-121-3/+3
| | | | | | https://github.com/libnet/libnet/commit/4059e2ef7f277b962dc4a93bd2df9445361c7cca#r54752736 Signed-off-by: Valery Ivanov <ivalery111@gmail.com>
* Minor, whitespace cleanupJoachim Wiberg2021-07-201-1/+0
| | | | Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
* chore(structures): update pblocks defines with lldp infoValery Ivanov2021-05-081-0/+6
|
* chore(functions): add libnet_build_lldp stub functionValery Ivanov2021-05-081-0/+9
|
* feat(functions): add libnet_build_lldp_org_spec functionValery Ivanov2021-05-081-0/+13
|
* chore(headers/lldp): add optional organization specific tlvValery Ivanov2021-05-081-0/+51
|
* feat(functions): add libnet_build_lldp_end functionValery Ivanov2021-05-081-0/+12
|
* chore(headers): add end of lldpdu tlv defineValery Ivanov2021-05-081-0/+2
|
* feat(functions): add libnet_build_lldp_ttl functionValery Ivanov2021-05-081-0/+12
|
* chore(headers): add ttl tlv defineValery Ivanov2021-05-081-0/+2
|
* feat(functions): add libnet_build_lldp_port functionValery Ivanov2021-05-081-0/+15
|
* chore(headers): add port id tlv definesValery Ivanov2021-05-081-0/+11
|
* feat(functions): add libnet_build_lldp_chassis functionValery Ivanov2021-05-071-0/+15
|
* chore(headers): add chassis id tlv definesValery Ivanov2021-05-071-0/+11
|
* chore(macros): add set lldp tlv type/length macrosValery Ivanov2021-05-071-0/+3
|
* feat(headers): add base LLDP headerValery Ivanov2021-05-071-0/+13
|
* Merge pull request #94 from libnet/license-cleanupJoachim Nilsson2020-07-103-284/+22
|\ | | | | Major license change: 4-clause BSD to 3-clause BSD
| * Change from 4-clause to 3-clause BSD license for src/libnet_link_*.cJoachim Nilsson2019-10-201-14/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adopts the 3-clause BSD license for all src/libnet_link_*.c files previously under the 4-clause BSD license. Effectively this drops the "obnoxious" advertising clause which is usually what is under most contention when BSD licenses are discussed. For a background, the https://en.wikipedia.org/wiki/BSD_licenses page provides an interesting read. Briefly, in 1999 Berkeley rescinded the original 3rd clause (see below) leading to a change in major software projects to, not only adopt this new BSD license, but also renumber the listed provisions. Ref. ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
| * Drop include/bpf.h, 4-clause BSD and unused on major platformsJoachim Nilsson2019-10-202-270/+1
| | | | | | | | Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* | Merge pull request #99 from ThomasHabets/cstyleJoachim Nilsson2019-10-231-1/+1
|\ \ | | | | | | Fix C89 syntax error, and document C89 being the style
| * | Fix C89 syntax error, and document C89 being the styleThomas Habets2019-10-221-1/+1
| |/
* | Fix some non-standard types to build with -std=c18Thomas Habets2019-10-211-3/+3
|/
* Use standard int64_t instead of __int64_t for mingw cross buildJoachim Nilsson2019-10-191-3/+3
| | | | Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* Add coding style hinting for EmacsJoachim Nilsson2019-10-086-0/+36
| | | | Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* Drop gratuitous EOF and end of fileJoachim Nilsson2019-10-068-8/+0
| | | | Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* Clean up documentation a bit; URLs, wording, personal details ...Joachim Nilsson2019-10-061-25/+2
| | | | Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* Split .gitignore in sub-directories and clean up a bitJoachim Nilsson2019-09-291-0/+3
| | | | Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* Merge branch 'master' of https://github.com/sgeto/libnet into sgeto-masterJoachim Nilsson2019-09-285-114/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: .gitignore .travis.yml BUILD-FROM-GIT.txt Makefile.am Makefile.am.common Prepare acinclude.m4 autogen.sh configure.ac doc/html/Makefile.am doc/html/closed.png doc/html/globals_func.html doc/html/tab_s.png doc/libnet.doxygen.conf doc/man/Makefile.am doc/man/man3/Makefile.am doc/man/man3/libnet-functions.h.3 doc/man/man3/libnet-macros.h.3 include/libnet.h include/libnet/Makefile.am libnet/acinclude.m4 libnet/libnet-config.in libnet/m4/acinclude.m4 lua/Makefile lua/msvcbuild.bat sample/Makefile.am scripts/Push src/libnet_link_win32.c win32/Makefile.am
* Remove unneeded file include/stamp-h.in.Barak A. Pearlmutter2019-09-281-1/+0
|
* Remove deprecated NO_SNPRINTFdohnuts2019-09-251-5/+0
|
* Add link_addr member to libnet_t for use with libnet_get_hwaddr()Joachim Nilsson2019-09-241-0/+2
| | | | | | | | | | | | | This patch adds a `struct libnet_ether_addr` member to libnet_t which libnet_get_hwaddr() can safely return for each call. Also, some of the backends returned a malloc()'ed pointer instead of a pointer to a static stack variable. That has been purged but should probably be mentioned in the ChangeLog. Fixes https://github.com/libnet/libnet/issues/1 Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* Move libnet/ content to top of git repoSam Roberts2019-09-2313-0/+5755
1. Moved scripts into libnet/scripts/, moved debian/ into libnet/, and other top-level content into libnet/. 2. Moved libnet/* up to ./