summaryrefslogtreecommitdiff
path: root/src/libnet_link_dlpi.c
Commit message (Collapse)AuthorAgeFilesLines
* De-register, compiler knows bestJoachim Wiberg2022-12-291-19/+14
| | | | Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
* Speculatively fix bpf.h include for snoop and dlpilicense-cleanupJoachim Nilsson2019-10-201-1/+1
| | | | Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* Change from 4-clause to 3-clause BSD license for src/libnet_link_*.cJoachim Nilsson2019-10-201-14/+22
| | | | | | | | | | | | | | | | | 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>
* Add coding style hinting for EmacsJoachim Nilsson2019-10-081-0/+6
| | | | 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>
* Drop gratuitous EOF and end of fileJoachim Nilsson2019-10-061-1/+0
| | | | Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* Use snprintf instead of sprintfdohnuts2019-09-251-22/+41
|
* Add link_addr member to libnet_t for use with libnet_get_hwaddr()Joachim Nilsson2019-09-241-6/+17
| | | | | | | | | | | | | 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-231-0/+805
1. Moved scripts into libnet/scripts/, moved debian/ into libnet/, and other top-level content into libnet/. 2. Moved libnet/* up to ./