summaryrefslogtreecommitdiff
path: root/sample
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #161 from ivalery111/3-introduce-udld-supportHEADmasterJoachim Wiberg2023-05-043-1/+163
|\ | | | | | | | | UDLD protocol support Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
| * udld: initial supportValery Ivanov2023-05-033-1/+163
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary of changes: - Complete UDLD protocol support was added according to RFC5171 - UDLD checksum implementation was added - UDLD unit tests were added - CI has been updated to run UDLD unit tests That's how sample/udld looks in tcpdump: tcpdump: listening on lo0, link-type EN10MB (Ethernet), capture size 262144 bytes 06:23:33.536964 UDLDv1, Code Probe message (1), Flags [RT, RSY] (0x03), length 60 Checksum 0x6d85 (unverified) Device-ID TLV (0x0001) TLV, length 15, FOC1031Z7JG Port-ID TLV (0x0002) TLV, length 9, Gi0/1 Echo TLV (0x0003) TLV, length 8, ^@^@^@^@ Message Interval TLV (0x0004) TLV, length 5, 7s Timeout Interval TLV (0x0005) TLV, length 5, 5s Device Name TLV (0x0006) TLV, length 6, S1 Sequence Number TLV (0x0007) TLV, length 8, 1 0x0000: 2103 6d85 0001 000f 464f 4331 3033 315a !.m.....FOC1031Z 0x0010: 374a 4700 0200 0947 6930 2f31 0003 0008 7JG....Gi0/1.... 0x0020: 0000 0000 0004 0005 0700 0500 0505 0006 ................ 0x0030: 0006 5331 0007 0008 0000 0001 ..S1........ Signed-off-by: Valery Ivanov <ivalery111@gmail.com>
* | fix typoslilinjie2023-04-0417-17/+17
|/ | | | Signed-off-by: lilinjie <lilinjie@uniontech.com>
* Follow-up to f035f60: ignore lldp binaryJoachim Wiberg2022-12-281-0/+1
| | | | Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
* Move status output message after check for NULL pointerBrett Kuskie2022-06-152-4/+4
|
* fix: lldp: remove unnecessary assertsValery Ivanov2021-08-111-2/+0
|
* sameple: fix coding style in ipv6 samples (whitespace)Joachim Wiberg2021-07-204-244/+189
| | | | Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
* chore(sample/Makefile.am): add lldp.c to sourcesValery Ivanov2021-05-081-1/+3
|
* feat(sample): add simple lldp sampleValery Ivanov2021-05-081-0/+130
|
* Update local 4-clause BSD getopt.c with FreeBSD 3-clause versionJoachim Nilsson2019-10-201-121/+135
| | | | | | | | | | | | | | | | | | | This patch updates the local getopt.c, used only when building samples on Windows, with a newer version with better license from FreeBSD. For reference, Berkeley recinded the 3rd clause of the original 4-clause license in 1999. This was adopted by the BSD UNIX community, and later the numbering was also updated. https://bsd.slashdot.org/story/99/09/02/189210/berkeley-removes-advertising-clause For some reason, the replacement header file, win32/getopt.h, comes with the 2-clause BSD license. I did no more research on that, but I guess the FreeBSD VCS has the complete story. Related to issue #85. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* Drop gratuitous EOF and end of fileJoachim Nilsson2019-10-0639-39/+0
| | | | Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* Split .gitignore in sub-directories and clean up a bitJoachim Nilsson2019-09-291-0/+48
| | | | Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* Merge branch 'master' of https://github.com/sgeto/libnet into sgeto-masterJoachim Nilsson2019-09-285-92/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Include otherwise-ignored stuff from git repo in "make dist".Barak A. Pearlmutter2019-09-281-0/+6
|
* sample: Fix suspicious condition in ping_of_death.cJoachim Nilsson2019-09-241-1/+1
| | | | | | Fixes https://github.com/libnet/libnet/issues/77 Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
* Move libnet/ content to top of git repoSam Roberts2019-09-2361-0/+11574
1. Moved scripts into libnet/scripts/, moved debian/ into libnet/, and other top-level content into libnet/. 2. Moved libnet/* up to ./