Module Name: src Committed By: martin Date: Thu Sep 5 09:22:44 UTC 2024
Modified Files: src/distrib/sets/lists/base [netbsd-10]: mi src/distrib/sets/lists/debug [netbsd-10]: mi src/distrib/sets/lists/man [netbsd-10]: mi src/distrib/sets/lists/tests [netbsd-10]: mi src/etc/mtree [netbsd-10]: NetBSD.dist.tests src/sys/rump/net/lib/libshmif [netbsd-10]: if_shmem.c shmifvar.h src/tests/usr.bin [netbsd-10]: Makefile src/usr.bin [netbsd-10]: Makefile Added Files: src/tests/usr.bin/shmif_pcapin [netbsd-10]: Makefile d_pcap.in.bz2.uue d_pcap.out.bz2.uue t_basic.sh src/usr.bin/shmif_pcapin [netbsd-10]: Makefile shmif_pcapin.1 shmif_pcapin.c Log Message: Pull up following revision(s) (requested by ozaki-r in ticket #817): tests/usr.bin/Makefile: revision 1.41 (patch) distrib/sets/lists/base/mi: revision 1.1350 (patch) usr.bin/shmif_pcapin/shmif_pcapin.1: revision 1.1 distrib/sets/lists/man/mi: revision 1.1787 (patch) distrib/sets/lists/debug/mi: revision 1.447 (patch) tests/usr.bin/shmif_pcapin/d_pcap.out.bz2.uue: revision 1.1 sys/rump/net/lib/libshmif/if_shmem.c: revision 1.88 etc/mtree/NetBSD.dist.tests: revision 1.207 sys/rump/net/lib/libshmif/shmifvar.h: revision 1.12 usr.bin/shmif_pcapin/shmif_pcapin.c: revision 1.1 usr.bin/shmif_pcapin/Makefile: revision 1.1 tests/usr.bin/shmif_pcapin/t_basic.sh: revision 1.1 usr.bin/Makefile: revision 1.240 distrib/sets/lists/tests/mi: revision 1.1335 (patch) tests/usr.bin/shmif_pcapin/Makefile: revision 1.1 tests/usr.bin/shmif_pcapin/d_pcap.in.bz2.uue: revision 1.1 shmif: export LOCK_* definitions They will be used by upcoming shmif_pcapin. Add shmif_pcapin(1) utility program It can send any frames that are stored in a pcap(3) file format to shmif(4) Ethernet interface via the bus of it. If you want to write some tests for networking with rump kernels and the tests need to send frames that are difficult to generate by stock programs, shmif_pcapin can be helpful. The author of shmif_pcapin is k-goda@IIJ and the man page is written by ozaki-r. tests: add a basic test for shmif_pcapin The original author of the test is k-goda@IIJ. ozaki-r tweaked the test to improve stability and added comments. distrib, etc: install shmif_pcapin and its tests To generate a diff of this commit: cvs rdiff -u -r1.1314.2.7 -r1.1314.2.8 src/distrib/sets/lists/base/mi cvs rdiff -u -r1.394.2.8 -r1.394.2.9 src/distrib/sets/lists/debug/mi cvs rdiff -u -r1.1757.2.11 -r1.1757.2.12 src/distrib/sets/lists/man/mi cvs rdiff -u -r1.1238.2.9 -r1.1238.2.10 src/distrib/sets/lists/tests/mi cvs rdiff -u -r1.197.2.3 -r1.197.2.4 src/etc/mtree/NetBSD.dist.tests cvs rdiff -u -r1.84.4.1 -r1.84.4.2 src/sys/rump/net/lib/libshmif/if_shmem.c cvs rdiff -u -r1.11 -r1.11.22.1 src/sys/rump/net/lib/libshmif/shmifvar.h cvs rdiff -u -r1.37 -r1.37.2.1 src/tests/usr.bin/Makefile cvs rdiff -u -r0 -r1.1.2.2 src/tests/usr.bin/shmif_pcapin/Makefile \ src/tests/usr.bin/shmif_pcapin/d_pcap.in.bz2.uue \ src/tests/usr.bin/shmif_pcapin/d_pcap.out.bz2.uue \ src/tests/usr.bin/shmif_pcapin/t_basic.sh cvs rdiff -u -r1.238 -r1.238.2.1 src/usr.bin/Makefile cvs rdiff -u -r0 -r1.1.2.2 src/usr.bin/shmif_pcapin/Makefile \ src/usr.bin/shmif_pcapin/shmif_pcapin.1 \ src/usr.bin/shmif_pcapin/shmif_pcapin.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.