Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-10] src



Module Name:    src
Committed By:   martin
Date:           Sat Aug 24 16:42:26 UTC 2024

Modified Files:
        src/distrib/sets/lists/tests [netbsd-10]: mi
        src/etc/mtree [netbsd-10]: NetBSD.dist.tests
        src/sbin/ifconfig [netbsd-10]: ifconfig.8 ifconfig.c
        src/sys/rump/net/lib/libshmif [netbsd-10]: if_shmem.c
        src/tests/net [netbsd-10]: Makefile
Added Files:
        src/tests/net/if_shmif [netbsd-10]: Makefile t_shmif.sh

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.1238.2.8 -r1.1238.2.9 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.197.2.2 -r1.197.2.3 src/etc/mtree/NetBSD.dist.tests
cvs rdiff -u -r1.124.2.1 -r1.124.2.2 src/sbin/ifconfig/ifconfig.8
cvs rdiff -u -r1.249 -r1.249.2.1 src/sbin/ifconfig/ifconfig.c
cvs rdiff -u -r1.84 -r1.84.4.1 src/sys/rump/net/lib/libshmif/if_shmem.c
cvs rdiff -u -r1.41 -r1.41.2.1 src/tests/net/Makefile
cvs rdiff -u -r0 -r1.1.2.2 src/tests/net/if_shmif/Makefile \
    src/tests/net/if_shmif/t_shmif.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index