The NetBSD Project

CVS log for src/tests/net/if_shmif/t_shmif.sh

[BACK] Up to [cvs.NetBSD.org] / src / tests / net / if_shmif

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Sat Aug 24 16:42:25 2024 UTC (5 months ago) by martin
Branches: netbsd-10
CVS tags: netbsd-10-1-RELEASE
Diff to: previous 1.1.2.1: preferred, colored; branchpoint 1.1: preferred, colored
Changes since revision 1.1.2.1: +138 -0 lines
Pull up following revision(s) (requested by ozaki-r in ticket #811):

	tests/net/if_shmif/t_shmif.sh: revision 1.1
	sbin/ifconfig/ifconfig.c: revision 1.251
	sbin/ifconfig/ifconfig.8: revision 1.130
	sys/rump/net/lib/libshmif/if_shmem.c: revision 1.85
	sys/rump/net/lib/libshmif/if_shmem.c: revision 1.86
	sys/rump/net/lib/libshmif/if_shmem.c: revision 1.87
	etc/mtree/NetBSD.dist.tests: revision 1.206
	distrib/sets/lists/tests/mi: revision 1.1333
	tests/net/if_shmif/Makefile: revision 1.1
	tests/net/Makefile: revision 1.42

shmif: change behaviors about link states

- Change the link state to UP on ifconfig linkstr
  - This behavior emulates physical devices
- Change the link state to UNKNOWN on ifconfig -linkstr just in case
- Reject sending/receiving packets if the link state is DOWN
  - Permit to send/receive packets on UNKNOWN, which is required
    to unbreak some ATF tests written in C

shmif: support media

It enables to link-down shmif by ifconfig media none and link-up
again by media auto.

ifconfig: show link state on -v

We could guess it through "media" or "status" output, however, we
sometimes want to know it directly for debugging or testing.

It is shown only if the -v option is specified.
tests: add tests for shmif

The test file is placed under tests/net, not tests/rump/rumpnet,
to leverage utility functions provided for tests in there.
shmem(4): Fix typo in comment: AFT -> ATF.

Also fix grammar (if I understood correctly what this meant: rump
servers written in C, rather than set up via shell scripts around
rump_server invoking ifconfig).

No functional change intended.

Revision 1.1.2.1
Tue Aug 20 08:20:19 2024 UTC (5 months ago) by martin
Branches: netbsd-10
FILE REMOVED
Changes since revision 1.1: +0 -138 lines
file t_shmif.sh was added on branch netbsd-10 on 2024-08-24 16:42:25 +0000

Revision 1.1: download - view: text, markup, annotated - select for diffs
Tue Aug 20 08:20:19 2024 UTC (5 months ago) by ozaki-r
Branches: MAIN
CVS tags: HEAD
Branch point for: netbsd-10
tests: add tests for shmif

The test file is placed under tests/net, not tests/rump/rumpnet,
to leverage utility functions provided for tests in there.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>