Up to [cvs.NetBSD.org] / src / tests / net
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.44 / (download) - annotate - [select for diffs], Wed Nov 2 09:35:12 2022 UTC (6 months, 3 weeks ago) by ozaki-r
Branch: MAIN
CVS Tags: netbsd-10-base,
netbsd-10,
HEAD
Changes since 1.43: +3 -1
lines
Diff to previous 1.43 (colored)
tests: enable start_nc_server to have extra options for nc
Revision 1.43 / (download) - annotate - [select for diffs], Thu Nov 25 14:17:22 2021 UTC (18 months ago) by hannken
Branch: MAIN
Changes since 1.42: +2 -2
lines
Diff to previous 1.42 (colored)
Consistently use "drvctl -l qemufwcfg0" to check if running under qemu in general.
Revision 1.42 / (download) - annotate - [select for diffs], Fri Jul 9 05:54:11 2021 UTC (22 months, 2 weeks ago) by yamaguchi
Branch: MAIN
Changes since 1.41: +20 -1
lines
Diff to previous 1.41 (colored)
added tests for IFF_PROMISC of vlan(4)
Revision 1.28.2.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:05:29 2020 UTC (3 years, 1 month ago) by martin
Branch: phil-wifi
Changes since 1.28.2.1: +69 -4
lines
Diff to previous 1.28.2.1 (colored) to branchpoint 1.28 (colored) next main 1.29 (colored)
Mostly merge changes from HEAD upto 20200411
Revision 1.41 / (download) - annotate - [select for diffs], Wed Apr 1 00:49:04 2020 UTC (3 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x
Changes since 1.40: +3 -1
lines
Diff to previous 1.40 (colored)
Enforce a standard path
Revision 1.40 / (download) - annotate - [select for diffs], Mon Mar 30 13:01:39 2020 UTC (3 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.39: +10 -6
lines
Diff to previous 1.39 (colored)
Some interfaces (gif) don't have a mac address...
Revision 1.39 / (download) - annotate - [select for diffs], Thu Feb 20 08:02:26 2020 UTC (3 years, 3 months ago) by ozaki-r
Branch: MAIN
CVS Tags: is-mlppp-base,
is-mlppp
Changes since 1.38: +9 -1
lines
Diff to previous 1.38 (colored)
tests: abort if MAC address duplication found
Revision 1.38 / (download) - annotate - [select for diffs], Thu Feb 20 07:58:19 2020 UTC (3 years, 3 months ago) by ozaki-r
Branch: MAIN
Changes since 1.37: +4 -1
lines
Diff to previous 1.37 (colored)
tests: dump stats of an interface before destroying it
Revision 1.37 / (download) - annotate - [select for diffs], Mon Aug 26 04:50:32 2019 UTC (3 years, 9 months ago) by ozaki-r
Branch: MAIN
CVS Tags: phil-wifi-20191119
Changes since 1.36: +8 -2
lines
Diff to previous 1.36 (colored)
tests: explain how rump_server_check_memleaks works
Revision 1.36 / (download) - annotate - [select for diffs], Mon Aug 26 04:50:03 2019 UTC (3 years, 9 months ago) by ozaki-r
Branch: MAIN
Changes since 1.35: +13 -6
lines
Diff to previous 1.35 (colored)
tests: restore rump_server_check_poolleaks for llentpl It didn't work correctly because rumphijack for vmstat didn't work expectedly; vmstat has the sgid bit for kvm(3) and that prevents rumphijack from working. Address the issue by cloning a vmstat binary without the sgid bit temporarily and using it for rumphijack. Note that it's a workaround. vmstat should stop using kvm(3) for /dev/kmem and drop the sgid bit eventually.
Revision 1.35 / (download) - annotate - [select for diffs], Tue Aug 20 09:53:45 2019 UTC (3 years, 9 months ago) by ozaki-r
Branch: MAIN
Changes since 1.34: +3 -2
lines
Diff to previous 1.34 (colored)
Disable rump_server_check_memleaks for now It doesn't work in some cases.
Revision 1.34 / (download) - annotate - [select for diffs], Mon Aug 19 03:22:47 2019 UTC (3 years, 9 months ago) by ozaki-r
Branch: MAIN
Changes since 1.33: +28 -1
lines
Diff to previous 1.33 (colored)
tests: check pool object leaks Currently only llentpl leaks can be detected.
Revision 1.33 / (download) - annotate - [select for diffs], Mon Aug 19 03:21:13 2019 UTC (3 years, 9 months ago) by ozaki-r
Branch: MAIN
Changes since 1.32: +9 -3
lines
Diff to previous 1.32 (colored)
tests: enable to create interfaces other than shmif with rump_server_add_iface For this change interfaces are destroyed in the reverse order of their creations in case there are dependencies between interfaces.
Revision 1.32 / (download) - annotate - [select for diffs], Thu Jul 18 04:22:22 2019 UTC (3 years, 10 months ago) by ozaki-r
Branch: MAIN
CVS Tags: netbsd-9-base,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
netbsd-9
Changes since 1.31: +3 -2
lines
Diff to previous 1.31 (colored)
tests: extract all kernel logs, not just a panic message, from rump_server.core
Revision 1.28.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:10:08 2019 UTC (3 years, 11 months ago) by christos
Branch: phil-wifi
Changes since 1.28: +51 -19
lines
Diff to previous 1.28 (colored)
Sync with HEAD
Revision 1.31 / (download) - annotate - [select for diffs], Mon May 13 17:55:08 2019 UTC (4 years ago) by bad
Branch: MAIN
CVS Tags: phil-wifi-20190609
Changes since 1.30: +6 -6
lines
Diff to previous 1.30 (colored)
Get rid of all the -lrumpdev and -lrumpvfs that are no longer needed after moving rump's mainbus from rumpdev to rumpkern. Produces the same atf-run results as before.
Revision 1.30 / (download) - annotate - [select for diffs], Thu Apr 18 07:56:04 2019 UTC (4 years, 1 month ago) by ozaki-r
Branch: MAIN
Changes since 1.29: +28 -15
lines
Diff to previous 1.29 (colored)
tests: make utility funtions easy to use for tests that don't use the framework
Revision 1.26.2.3 / (download) - annotate - [select for diffs], Fri Jan 18 08:51:00 2019 UTC (4 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.26.2.2: +20 -1
lines
Diff to previous 1.26.2.2 (colored) to branchpoint 1.26 (colored) next main 1.27 (colored)
Synch with HEAD
Revision 1.29 / (download) - annotate - [select for diffs], Thu Jan 17 02:49:11 2019 UTC (4 years, 4 months ago) by knakahara
Branch: MAIN
CVS Tags: pgoyette-compat-20190127,
pgoyette-compat-20190118
Changes since 1.28: +20 -1
lines
Diff to previous 1.28 (colored)
Add ATF for ipsecif(4) pfil.
Revision 1.26.2.2 / (download) - annotate - [select for diffs], Mon Apr 16 02:00:09 2018 UTC (5 years, 1 month ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.26.2.1: +2 -2
lines
Diff to previous 1.26.2.1 (colored) to branchpoint 1.26 (colored)
Sync with HEAD, resolve some conflicts
Revision 1.28 / (download) - annotate - [select for diffs], Sat Apr 7 12:36:58 2018 UTC (5 years, 1 month ago) by ozaki-r
Branch: MAIN
CVS Tags: phil-wifi-base,
pgoyette-compat-1226,
pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906,
pgoyette-compat-0728,
pgoyette-compat-0625,
pgoyette-compat-0521,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415
Branch point for: phil-wifi
Changes since 1.27: +2 -2
lines
Diff to previous 1.27 (colored)
Fix typo
Revision 1.26.2.1 / (download) - annotate - [select for diffs], Sat Apr 7 04:12:20 2018 UTC (5 years, 1 month ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.26: +11 -7
lines
Diff to previous 1.26 (colored)
Sync with HEAD. 77 conflicts resolved - all of them $NetBSD$
Revision 1.27 / (download) - annotate - [select for diffs], Fri Apr 6 09:22:38 2018 UTC (5 years, 1 month ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-compat-0407
Changes since 1.26: +11 -7
lines
Diff to previous 1.26 (colored)
Show outputs of commands if $DEBUG
Revision 1.18.2.4 / (download) - annotate - [select for diffs], Mon Feb 26 00:41:13 2018 UTC (5 years, 3 months ago) by snj
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1
Changes since 1.18.2.3: +43 -1
lines
Diff to previous 1.18.2.3 (colored) to branchpoint 1.18 (colored) next main 1.19 (colored)
Pull up following revision(s) (requested by ozaki-r in ticket #572): sys/net/if_bridge.c: 1.138, 1.148 tests/net/if_bridge/t_bridge.sh: 1.18 tests/net/if_gif/t_gif.sh: 1.12 tests/net/if_ipsec/t_ipsec.sh: 1.3 tests/net/if_l2tp/t_l2tp.sh: 1.4 tests/net/if_loop/t_basic.sh: 1.2 tests/net/if_pppoe/t_pppoe.sh: 1.18 tests/net/if_tap/t_tap.sh: 1.7 tests/net/if_tun/Makefile: 1.2 tests/net/if_tun/t_tun.sh: 1.5 tests/net/if_vlan/t_vlan.sh: 1.8 tests/net/net_common.sh: 1.26 Remove unnecessary splsoftnet -- If the bridge is not running, don't call bridge_stop. Otherwise the following commands will crash the kernel: ifconfig bridge0 create ifconfig bridge0 destroy -- Commonalize and add tests of creating/destroying interfaces
Revision 1.26 / (download) - annotate - [select for diffs], Thu Feb 1 05:22:01 2018 UTC (5 years, 3 months ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-compat-base,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.25: +43 -1
lines
Diff to previous 1.25 (colored)
Commonalize and add tests of creating/destroying interfaces
Revision 1.25 / (download) - annotate - [select for diffs], Fri Nov 24 03:28:49 2017 UTC (5 years, 6 months ago) by kre
Branch: MAIN
Changes since 1.24: +26 -35
lines
Diff to previous 1.24 (colored)
Cosmetic changes, NFC intended. 1. get rid of the "$*" fetish. 2. more consistency (not complete .. yet) with RUMP_SERVER setting 3. white space (esp around pipe ('|') symbols.) 4. drop unnecessary \ line joining.
Revision 1.18.2.3 / (download) - annotate - [select for diffs], Fri Nov 17 20:43:11 2017 UTC (5 years, 6 months ago) by snj
Branch: netbsd-8
Changes since 1.18.2.2: +20 -1
lines
Diff to previous 1.18.2.2 (colored) to branchpoint 1.18 (colored)
Pull up following revision(s) (requested by ozaki-r in ticket #357): distrib/sets/lists/debug/mi: 1.228 distrib/sets/lists/tests/mi: 1.765-1.766 etc/mtree/NetBSD.dist.tests: 1.149 sys/net/npf/npf_ctl.c: 1.49 tests/net/ipsec/Makefile: 1.10 tests/net/ipsec/algorithms.sh: 1.6 tests/net/ipsec/natt_terminator.c: 1.1 tests/net/ipsec/t_ipsec_natt.sh: 1.1 tests/net/net_common.sh: 1.23-1.24 usr.sbin/npf/npfctl/npfctl.c: 1.54 Handle esp-udp for NAT-T -- Fix npfclt reload on rump kernels It fails because npfctl cannot get an errno when it calls ioctl to the (rump) kernel; npfctl (libnpf) expects that an errno is returned via proplib, however, the rump library of npf doesn't so. It happens because of mishandlings of complicate npf kernel options. PR kern/52643 -- Fix showing translated port (ntohs-ed twice wrongly) -- Add test cases of NAT-T (transport mode) A small C program is added to make a special socket (UDP_ENCAP_ESPINUDP) and keep it to handle UDP-encapsulated ESP packets. -- Add net/ipsec debug lib directory -- Add ./usr/libdata/debug/usr/tests/net/ipsec -- Stop using bpfjit Because most architectures don't support it and npf still works without it.
Revision 1.24 / (download) - annotate - [select for diffs], Tue Nov 7 09:17:06 2017 UTC (5 years, 6 months ago) by ozaki-r
Branch: MAIN
Changes since 1.23: +2 -2
lines
Diff to previous 1.23 (colored)
Stop using bpfjit Because most architectures don't support it and npf still works without it.
Revision 1.23 / (download) - annotate - [select for diffs], Mon Oct 30 15:59:23 2017 UTC (5 years, 6 months ago) by ozaki-r
Branch: MAIN
Changes since 1.22: +20 -1
lines
Diff to previous 1.22 (colored)
Add test cases of NAT-T (transport mode) A small C program is added to make a special socket (UDP_ENCAP_ESPINUDP) and keep it to handle UDP-encapsulated ESP packets.
Revision 1.18.2.2 / (download) - annotate - [select for diffs], Sat Oct 21 19:43:55 2017 UTC (5 years, 7 months ago) by snj
Branch: netbsd-8
CVS Tags: matt-nb8-mediatek-base,
matt-nb8-mediatek
Changes since 1.18.2.1: +9 -1
lines
Diff to previous 1.18.2.1 (colored) to branchpoint 1.18 (colored)
Pull up following revision(s) (requested by ozaki-r in ticket #300): crypto/dist/ipsec-tools/src/setkey/parse.y: 1.19 crypto/dist/ipsec-tools/src/setkey/token.l: 1.20 distrib/sets/lists/tests/mi: 1.754, 1.757, 1.759 doc/TODO.smpnet: 1.12-1.13 sys/net/pfkeyv2.h: 1.32 sys/net/raw_cb.c: 1.23-1.24, 1.28 sys/net/raw_cb.h: 1.28 sys/net/raw_usrreq.c: 1.57-1.58 sys/net/rtsock.c: 1.228-1.229 sys/netinet/in_proto.c: 1.125 sys/netinet/ip_input.c: 1.359-1.361 sys/netinet/tcp_input.c: 1.359-1.360 sys/netinet/tcp_output.c: 1.197 sys/netinet/tcp_var.h: 1.178 sys/netinet6/icmp6.c: 1.213 sys/netinet6/in6_proto.c: 1.119 sys/netinet6/ip6_forward.c: 1.88 sys/netinet6/ip6_input.c: 1.181-1.182 sys/netinet6/ip6_output.c: 1.193 sys/netinet6/ip6protosw.h: 1.26 sys/netipsec/ipsec.c: 1.100-1.122 sys/netipsec/ipsec.h: 1.51-1.61 sys/netipsec/ipsec6.h: 1.18-1.20 sys/netipsec/ipsec_input.c: 1.44-1.51 sys/netipsec/ipsec_netbsd.c: 1.41-1.45 sys/netipsec/ipsec_output.c: 1.49-1.64 sys/netipsec/ipsec_private.h: 1.5 sys/netipsec/key.c: 1.164-1.234 sys/netipsec/key.h: 1.20-1.32 sys/netipsec/key_debug.c: 1.18-1.21 sys/netipsec/key_debug.h: 1.9 sys/netipsec/keydb.h: 1.16-1.20 sys/netipsec/keysock.c: 1.59-1.62 sys/netipsec/keysock.h: 1.10 sys/netipsec/xform.h: 1.9-1.12 sys/netipsec/xform_ah.c: 1.55-1.74 sys/netipsec/xform_esp.c: 1.56-1.72 sys/netipsec/xform_ipcomp.c: 1.39-1.53 sys/netipsec/xform_ipip.c: 1.50-1.54 sys/netipsec/xform_tcp.c: 1.12-1.16 sys/rump/librump/rumpkern/Makefile.rumpkern: 1.170 sys/rump/librump/rumpnet/net_stub.c: 1.27 sys/sys/protosw.h: 1.67-1.68 tests/net/carp/t_basic.sh: 1.7 tests/net/if_gif/t_gif.sh: 1.11 tests/net/if_l2tp/t_l2tp.sh: 1.3 tests/net/ipsec/Makefile: 1.7-1.9 tests/net/ipsec/algorithms.sh: 1.5 tests/net/ipsec/common.sh: 1.4-1.6 tests/net/ipsec/t_ipsec_ah_keys.sh: 1.2 tests/net/ipsec/t_ipsec_esp_keys.sh: 1.2 tests/net/ipsec/t_ipsec_gif.sh: 1.6-1.7 tests/net/ipsec/t_ipsec_l2tp.sh: 1.6-1.7 tests/net/ipsec/t_ipsec_misc.sh: 1.8-1.18 tests/net/ipsec/t_ipsec_sockopt.sh: 1.1-1.2 tests/net/ipsec/t_ipsec_tcp.sh: 1.1-1.2 tests/net/ipsec/t_ipsec_transport.sh: 1.5-1.6 tests/net/ipsec/t_ipsec_tunnel.sh: 1.9 tests/net/ipsec/t_ipsec_tunnel_ipcomp.sh: 1.1-1.2 tests/net/ipsec/t_ipsec_tunnel_odd.sh: 1.3 tests/net/mcast/t_mcast.sh: 1.6 tests/net/net/t_ipaddress.sh: 1.11 tests/net/net_common.sh: 1.20 tests/net/npf/t_npf.sh: 1.3 tests/net/route/t_flags.sh: 1.20 tests/net/route/t_flags6.sh: 1.16 usr.bin/netstat/fast_ipsec.c: 1.22 Do m_pullup before mtod It may fix panicks of some tests on anita/sparc and anita/GuruPlug. --- KNF --- Enable DEBUG for babylon5 --- Apply C99-style struct initialization to xformsw --- Tweak outputs of netstat -s for IPsec - Get rid of "Fast" - Use ipsec and ipsec6 for titles to clarify protocol - Indent outputs of sub protocols Original outputs were organized like this: (Fast) IPsec: IPsec ah: IPsec esp: IPsec ipip: IPsec ipcomp: (Fast) IPsec: IPsec ah: IPsec esp: IPsec ipip: IPsec ipcomp: New outputs are organized like this: ipsec: ah: esp: ipip: ipcomp: ipsec6: ah: esp: ipip: ipcomp: --- Add test cases for IPComp --- Simplify IPSEC_OSTAT macro (NFC) --- KNF; replace leading whitespaces with hard tabs --- Introduce and use SADB_SASTATE_USABLE_P --- KNF --- Add update command for testing Updating an SA (SADB_UPDATE) requires that a process issuing SADB_UPDATE is the same as a process issued SADB_ADD (or SADB_GETSPI). This means that update command must be used with add command in a configuration of setkey. This usage is normally meaningless but useful for testing (and debugging) purposes. --- Add test cases for updating SA/SP The tests require newly-added udpate command of setkey. --- PR/52346: Frank Kardel: Fix checksumming for NAT-T See XXX for improvements. --- Remove codes for PACKET_TAG_IPSEC_IN_CRYPTO_DONE It seems that PACKET_TAG_IPSEC_IN_CRYPTO_DONE is for network adapters that have IPsec accelerators; a driver sets the mtag to a packet when its device has already encrypted the packet. Unfortunately no driver implements such offload features for long years and seems unlikely to implement them soon. (Note that neither FreeBSD nor Linux doesn't have such drivers.) Let's remove related (unused) codes and simplify the IPsec code. --- Fix usages of sadb_msg_errno --- Avoid updating sav directly On SADB_UPDATE a target sav was updated directly, which was unsafe. Instead allocate another sav, copy variables of the old sav to the new one and replace the old one with the new one. --- Simplify; we can assume sav->tdb_xform cannot be NULL while it's valid --- Rename key_alloc* functions (NFC) We shouldn't use the term "alloc" for functions that just look up data and actually don't allocate memory. --- Use explicit_memset to surely zero-clear key_auth and key_enc --- Make sure to clear keys on error paths of key_setsaval --- Add missing KEY_FREESAV --- Make sure a sav is inserted to a sah list after its initialization completes --- Remove unnecessary zero-clearing codes from key_setsaval key_setsaval is now used only for a newly-allocated sav. (It was used to reset variables of an existing sav.) --- Correct wrong assumption of sav->refcnt in key_delsah A sav in a list is basically not to be sav->refcnt == 0. And also KEY_FREESAV assumes sav->refcnt > 0. --- Let key_getsavbyspi take a reference of a returning sav --- Use time_mono_to_wall (NFC) --- Separate sending message routine (NFC) --- Simplify; remove unnecessary zero-clears key_freesaval is used only when a target sav is being destroyed. --- Omit NULL checks for sav->lft_c sav->lft_c can be NULL only when initializing or destroying sav. --- Omit unnecessary NULL checks for sav->sah --- Omit unnecessary check of sav->state key_allocsa_policy picks a sav of either MATURE or DYING so we don't need to check its state again. --- Simplify; omit unnecessary saidx passing - ipsec_nextisr returns a saidx but no caller uses it - key_checkrequest is passed a saidx but it can be gotton by another argument (isr) --- Fix splx isn't called on some error paths --- Fix header size calculation of esp where sav is NULL --- Fix header size calculation of ah in the case sav is NULL This fix was also needed for esp. --- Pass sav directly to opencrypto callback In a callback, use a passed sav as-is by default and look up a sav only if the passed sav is dead. --- Avoid examining freshness of sav on packet processing If a sav list is sorted (by lft_c->sadb_lifetime_addtime) in advance, we don't need to examine each sav and also don't need to delete one on the fly and send up a message. Fortunately every sav lists are sorted as we need. Added key_validate_savlist validates that each sav list is surely sorted (run only if DEBUG because it's not cheap). --- Add test cases for SAs with different SPIs --- Prepare to stop using isr->sav isr is a shared resource and using isr->sav as a temporal storage for each packet processing is racy. And also having a reference from isr to sav makes the lifetime of sav non-deterministic; such a reference is removed when a packet is processed and isr->sav is overwritten by new one. Let's have a sav locally for each packet processing instead of using shared isr->sav. However this change doesn't stop using isr->sav yet because there are some users of isr->sav. isr->sav will be removed after the users find a way to not use isr->sav. --- Fix wrong argument handling --- fix printf format. --- Don't validate sav lists of LARVAL or DEAD states We don't sort the lists so the validation will always fail. Fix PR kern/52405 --- Make sure to sort the list when changing the state by key_sa_chgstate --- Rename key_allocsa_policy to key_lookup_sa_bysaidx --- Separate test files --- Calculate ah_max_authsize on initialization as well as esp_max_ivlen --- Remove m_tag_find(PACKET_TAG_IPSEC_PENDING_TDB) because nobody sets the tag --- Restore a comment removed in previous The comment is valid for the below code. --- Make tests more stable sleep command seems to wait longer than expected on anita so use polling to wait for a state change. --- Add tests that explicitly delete SAs instead of waiting for expirations --- Remove invalid M_AUTHIPDGM check on ESP isr->sav M_AUTHIPDGM flag is set to a mbuf in ah_input_cb. An sav of ESP can have AH authentication as sav->tdb_authalgxform. However, in that case esp_input and esp_input_cb are used to do ESP decryption and AH authentication and M_AUTHIPDGM never be set to a mbuf. So checking M_AUTHIPDGM of a mbuf on isr->sav of ESP is meaningless. --- Look up sav instead of relying on unstable sp->req->sav This code is executed only in an error path so an additional lookup doesn't matter. --- Correct a comment --- Don't release sav if calling crypto_dispatch again --- Remove extra KEY_FREESAV from ipsec_process_done It should be done by the caller. --- Don't bother the case of crp->crp_buf == NULL in callbacks --- Hold a reference to an SP during opencrypto processing An SP has a list of isr (ipsecrequest) that represents a sequence of IPsec encryption/authentication processing. One isr corresponds to one opencrypto processing. The lifetime of an isr follows its SP. We pass an isr to a callback function of opencrypto to continue to a next encryption/authentication processing. However nobody guaranteed that the isr wasn't freed, i.e., its SP wasn't destroyed. In order to avoid such unexpected destruction of isr, hold a reference to its SP during opencrypto processing. --- Don't make SAs expired on tests that delete SAs explicitly --- Fix a debug message --- Dedup error paths (NFC) --- Use pool to allocate tdb_crypto For ESP and AH, we need to allocate an extra variable space in addition to struct tdb_crypto. The fixed size of pool items may be larger than an actual requisite size of a buffer, but still the performance improvement by replacing malloc with pool wins. --- Don't use unstable isr->sav for header size calculations We may need to optimize to not look up sav here for users that don't need to know an exact size of headers (e.g., TCP segmemt size caclulation). --- Don't use sp->req->sav when handling NAT-T ESP fragmentation In order to do this we need to look up a sav however an additional look-up degrades performance. A sav is later looked up in ipsec4_process_packet so delay the fragmentation check until then to avoid an extra look-up. --- Don't use key_lookup_sp that depends on unstable sp->req->sav It provided a fast look-up of SP. We will provide an alternative method in the future (after basic MP-ification finishes). --- Stop setting isr->sav on looking up sav in key_checkrequest --- Remove ipsecrequest#sav --- Stop setting mtag of PACKET_TAG_IPSEC_IN_DONE because there is no users anymore --- Skip ipsec_spi_*_*_preferred_new_timeout when running on qemu Probably due to PR 43997 --- Add localcount to rump kernels --- Remove unused macro --- Fix key_getcomb_setlifetime The fix adjusts a soft limit to be 80% of a corresponding hard limit. I'm not sure the fix is really correct though, at least the original code is wrong. A passed comb is zero-cleared before calling key_getcomb_setlifetime, so comb->sadb_comb_soft_addtime = comb->sadb_comb_soft_addtime * 80 / 100; is meaningless. --- Provide and apply key_sp_refcnt (NFC) It simplifies further changes. --- Fix indentation Pointed out by knakahara@ --- Use pslist(9) for sptree --- Don't acquire global locks for IPsec if NET_MPSAFE Note that the change is just to make testing easy and IPsec isn't MP-safe yet. --- Let PF_KEY socks hold their own lock instead of softnet_lock Operations on SAD and SPD are executed via PF_KEY socks. The operations include deletions of SAs and SPs that will use synchronization mechanisms such as pserialize_perform to wait for references to SAs and SPs to be released. It is known that using such mechanisms with holding softnet_lock causes a dead lock. We should avoid the situation. --- Make IPsec SPD MP-safe We use localcount(9), not psref(9), to make the sptree and secpolicy (SP) entries MP-safe because SPs need to be referenced over opencrypto processing that executes a callback in a different context. SPs on sockets aren't managed by the sptree and can be destroyed in softint. localcount_drain cannot be used in softint so we delay the destruction of such SPs to a thread context. To do so, a list to manage such SPs is added (key_socksplist) and key_timehandler_spd deletes dead SPs in the list. For more details please read the locking notes in key.c. Proposed on tech-kern@ and tech-net@ --- Fix updating ipsec_used - key_update_used wasn't called in key_api_spddelete2 and key_api_spdflush - key_update_used wasn't called if an SP had been added/deleted but a reply to userland failed --- Fix updating ipsec_used; turn on when SPs on sockets are added --- Add missing IPsec policy checks to icmp6_rip6_input icmp6_rip6_input is quite similar to rip6_input and the same checks exist in rip6_input. --- Add test cases for setsockopt(IP_IPSEC_POLICY) --- Don't use KEY_NEWSP for dummy SP entries By the change KEY_NEWSP is now not called from softint anymore and we can use kmem_zalloc with KM_SLEEP for KEY_NEWSP. --- Comment out unused functions --- Add test cases that there are SPs but no relevant SAs --- Don't allow sav->lft_c to be NULL lft_c of an sav that was created by SADB_GETSPI could be NULL. --- Clean up clunky eval strings - Remove unnecessary \ at EOL - This allows to omit ; too - Remove unnecessary quotes for arguments of atf_set - Don't expand $DEBUG in eval - We expect it's expanded on execution Suggested by kre@ --- Remove unnecessary KEY_FREESAV in an error path sav should be freed (unreferenced) by the caller. --- Use pslist(9) for sahtree --- Use pslist(9) for sah->savtree --- Rename local variable newsah to sah It may not be new. --- MP-ify SAD slightly - Introduce key_sa_mtx and use it for some list operations - Use pserialize for some list iterations --- Introduce KEY_SA_UNREF and replace KEY_FREESAV with it where sav will never be actually freed in the future KEY_SA_UNREF is still key_freesav so no functional change for now. This change reduces diff of further changes. --- Remove out-of-date log output Pointed out by riastradh@ --- Use KDASSERT instead of KASSERT for mutex_ownable Because mutex_ownable is too heavy to run in a fast path even for DIAGNOSTIC + LOCKDEBUG. Suggested by riastradh@ --- Assemble global lists and related locks into cache lines (NFCI) Also rename variable names from *tree to *list because they are just lists, not trees. Suggested by riastradh@ --- Move locking notes --- Update the locking notes - Add locking order - Add locking notes for misc lists such as reglist - Mention pserialize, key_sp_ref and key_sp_unref on SP operations Requested by riastradh@ --- Describe constraints of key_sp_ref and key_sp_unref Requested by riastradh@ --- Hold key_sad.lock on SAVLIST_WRITER_INSERT_TAIL --- Add __read_mostly to key_psz Suggested by riastradh@ --- Tweak wording (pserialize critical section => pserialize read section) Suggested by riastradh@ --- Add missing mutex_exit --- Fix setkey -D -P outputs The outputs were tweaked (by me), but I forgot updating libipsec in my local ATF environment... --- MP-ify SAD (key_sad.sahlist and sah entries) localcount(9) is used to protect key_sad.sahlist and sah entries as well as SPD (and will be used for SAD sav). Please read the locking notes of SAD for more details. --- Introduce key_sa_refcnt and replace sav->refcnt with it (NFC) --- Destroy sav only in the loop for DEAD sav --- Fix KASSERT(solocked(sb->sb_so)) failure in sbappendaddr that is called eventually from key_sendup_mbuf If key_sendup_mbuf isn't passed a socket, the assertion fails. Originally in this case sb->sb_so was softnet_lock and callers held softnet_lock so the assertion was magically satisfied. Now sb->sb_so is key_so_mtx and also softnet_lock isn't always held by callers so the assertion can fail. Fix it by holding key_so_mtx if key_sendup_mbuf isn't passed a socket. Reported by knakahara@ Tested by knakahara@ and ozaki-r@ --- Fix locking notes of SAD --- Fix deadlock between key_sendup_mbuf called from key_acquire and localcount_drain If we call key_sendup_mbuf from key_acquire that is called on packet processing, a deadlock can happen like this: - At key_acquire, a reference to an SP (and an SA) is held - key_sendup_mbuf will try to take key_so_mtx - Some other thread may try to localcount_drain to the SP with holding key_so_mtx in say key_api_spdflush - In this case localcount_drain never return because key_sendup_mbuf that has stuck on key_so_mtx never release a reference to the SP Fix the deadlock by deferring key_sendup_mbuf to the timer (key_timehandler). --- Fix that prev isn't cleared on retry --- Limit the number of mbufs queued for deferred key_sendup_mbuf It's easy to be queued hundreds of mbufs on the list under heavy network load. --- MP-ify SAD (savlist) localcount(9) is used to protect savlist of sah. The basic design is similar to MP-ifications of SPD and SAD sahlist. Please read the locking notes of SAD for more details. --- Simplify ipsec_reinject_ipstack (NFC) --- Add per-CPU rtcache to ipsec_reinject_ipstack It reduces route lookups and also reduces rtcache lock contentions when NET_MPSAFE is enabled. --- Use pool_cache(9) instead of pool(9) for tdb_crypto objects The change improves network throughput especially on multi-core systems. --- Update ipsec(4), opencrypto(9) and vlan(4) are now MP-safe. --- Write known issues on scalability --- Share a global dummy SP between PCBs It's never be changed so it can be pre-allocated and shared safely between PCBs. --- Fix race condition on the rawcb list shared by rtsock and keysock keysock now protects itself by its own mutex, which means that the rawcb list is protected by two different mutexes (keysock's one and softnet_lock for rtsock), of course it's useless. Fix the situation by having a discrete rawcb list for each. --- Use a dedicated mutex for rt_rawcb instead of softnet_lock if NET_MPSAFE --- fix localcount leak in sav. fixed by ozaki-r@n.o. I commit on behalf of him. --- remove unnecessary comment. --- Fix deadlock between pserialize_perform and localcount_drain A typical ussage of localcount_drain looks like this: mutex_enter(&mtx); item = remove_from_list(); pserialize_perform(psz); localcount_drain(&item->localcount, &cv, &mtx); mutex_exit(&mtx); This sequence can cause a deadlock which happens for example on the following situation: - Thread A calls localcount_drain which calls xc_broadcast after releasing a specified mutex - Thread B enters the sequence and calls pserialize_perform with holding the mutex while pserialize_perform also calls xc_broadcast - Thread C (xc_thread) that calls an xcall callback of localcount_drain tries to hold the mutex xc_broadcast of thread B doesn't start until xc_broadcast of thread A finishes, which is a feature of xcall(9). This means that pserialize_perform never complete until xc_broadcast of thread A finishes. On the other hand, thread C that is a callee of xc_broadcast of thread A sticks on the mutex. Finally the threads block each other (A blocks B, B blocks C and C blocks A). A possible fix is to serialize executions of the above sequence by another mutex, but adding another mutex makes the code complex, so fix the deadlock by another way; the fix is to release the mutex before pserialize_perform and instead use a condvar to prevent pserialize_perform from being called simultaneously. Note that the deadlock has happened only if NET_MPSAFE is enabled. --- Add missing ifdef NET_MPSAFE --- Take softnet_lock on pr_input properly if NET_MPSAFE Currently softnet_lock is taken unnecessarily in some cases, e.g., icmp_input and encap4_input from ip_input, or not taken even if needed, e.g., udp_input and tcp_input from ipsec4_common_input_cb. Fix them. NFC if NET_MPSAFE is disabled (default). --- - sanitize key debugging so that we don't print extra newlines or unassociated debugging messages. - remove unused functions and make internal ones static - print information in one line per message --- humanize printing of ip addresses --- cast reduction, NFC. --- Fix typo in comment --- Pull out ipsec_fill_saidx_bymbuf (NFC) --- Don't abuse key_checkrequest just for looking up sav It does more than expected for example key_acquire. --- Fix SP is broken on transport mode isr->saidx was modified accidentally in ipsec_nextisr. Reported by christos@ Helped investigations by christos@ and knakahara@ --- Constify isr at many places (NFC) --- Include socketvar.h for softnet_lock --- Fix buffer length for ipsec_logsastr
Revision 1.22 / (download) - annotate - [select for diffs], Fri Oct 20 03:45:02 2017 UTC (5 years, 7 months ago) by ozaki-r
Branch: MAIN
Changes since 1.21: +3 -3
lines
Diff to previous 1.21 (colored)
Suppress name resolution
Revision 1.21 / (download) - annotate - [select for diffs], Fri Oct 20 03:42:53 2017 UTC (5 years, 7 months ago) by ozaki-r
Branch: MAIN
Changes since 1.20: +2 -2
lines
Diff to previous 1.20 (colored)
Show packet counters
Revision 1.20 / (download) - annotate - [select for diffs], Mon Jul 24 02:07:43 2017 UTC (5 years, 10 months ago) by ozaki-r
Branch: MAIN
Changes since 1.19: +9 -1
lines
Diff to previous 1.19 (colored)
Skip ipsec_spi_*_*_preferred_new_timeout when running on qemu Probably due to PR 43997
Revision 1.18.2.1 / (download) - annotate - [select for diffs], Fri Jul 7 13:57:26 2017 UTC (5 years, 10 months ago) by martin
Branch: netbsd-8
Changes since 1.18: +6 -2
lines
Diff to previous 1.18 (colored)
Pull up following revision(s) (requested by ozaki-r in ticket #107): usr.sbin/arp/arp.c: revision 1.56 sys/net/rtsock.c: revision 1.218 sys/net/if_llatbl.c: revision 1.20 usr.sbin/arp/arp.c: revision 1.57 sys/net/rtsock.c: revision 1.219 sys/net/if_llatbl.c: revision 1.21 usr.sbin/arp/arp.c: revision 1.58 tests/net/net_common.sh: revision 1.19 sys/netinet6/nd6.h: revision 1.84 sys/netinet6/nd6.h: revision 1.85 tests/net/arp/t_arp.sh: revision 1.23 sys/netinet6/in6.c: revision 1.246 tests/net/arp/t_arp.sh: revision 1.24 sys/netinet6/in6.c: revision 1.247 tests/net/arp/t_arp.sh: revision 1.25 sys/netinet6/in6.c: revision 1.248 tests/net/arp/t_arp.sh: revision 1.26 usr.sbin/ndp/ndp.c: revision 1.49 tests/net/arp/t_arp.sh: revision 1.27 tests/net/ndp/t_ndp.sh: revision 1.20 tests/net/arp/t_arp.sh: revision 1.28 tests/net/ndp/t_ndp.sh: revision 1.21 tests/net/arp/t_arp.sh: revision 1.29 tests/net/ndp/t_ndp.sh: revision 1.22 tests/net/ndp/t_ndp.sh: revision 1.23 tests/net/route/t_flags6.sh: revision 1.13 tests/net/ndp/t_ndp.sh: revision 1.24 tests/net/route/t_flags6.sh: revision 1.14 tests/net/ndp/t_ndp.sh: revision 1.25 tests/net/route/t_flags6.sh: revision 1.15 tests/net/ndp/t_ndp.sh: revision 1.26 sbin/route/rtutil.c: revision 1.9 tests/net/ndp/t_ndp.sh: revision 1.27 tests/net/ndp/t_ndp.sh: revision 1.28 tests/net/net/t_ipv6address.sh: revision 1.14 tests/net/ndp/t_ra.sh: revision 1.28 tests/net/ndp/t_ndp.sh: revision 1.29 sys/net/route.h: revision 1.113 tests/net/ndp/t_ra.sh: revision 1.29 sys/net/rtsock.c: revision 1.220 sys/net/rtsock.c: revision 1.221 sys/net/rtsock.c: revision 1.222 sys/net/rtsock.c: revision 1.223 tests/net/route/t_route.sh: revision 1.13 sys/net/rtsock.c: revision 1.224 sys/net/route.c: revision 1.196 sys/net/if_llatbl.c: revision 1.19 sys/net/route.c: revision 1.197 sbin/route/route.c: revision 1.156 tests/net/route/t_flags.sh: revision 1.16 tests/net/route/t_flags.sh: revision 1.17 usr.sbin/ndp/ndp.c: revision 1.50 tests/net/route/t_flags.sh: revision 1.18 sys/netinet/in.c: revision 1.204 tests/net/route/t_flags.sh: revision 1.19 sys/netinet/in.c: revision 1.205 tests/net/arp/t_arp.sh: revision 1.30 tests/net/arp/t_arp.sh: revision 1.31 sys/net/if_llatbl.h: revision 1.11 tests/net/arp/t_arp.sh: revision 1.32 sys/net/if_llatbl.h: revision 1.12 tests/net/arp/t_arp.sh: revision 1.33 sys/netinet6/nd6.c: revision 1.233 sys/netinet6/nd6.c: revision 1.234 sys/netinet/if_arp.c: revision 1.251 sys/netinet6/nd6.c: revision 1.235 sys/netinet/if_arp.c: revision 1.252 sbin/route/route.8: revision 1.57 sys/net/rtsock.c: revision 1.214 sys/net/rtsock.c: revision 1.215 sys/net/rtsock.c: revision 1.216 sys/net/rtsock.c: revision 1.217 whitespace police Simplify We can assume that rt_ifp is always non-NULL. Sending a routing message (RTM_ADD) on adding an llentry A message used to be sent on adding a cloned route. Restore the behavior for backward compatibility. Requested by ryo@ Drop RTF_CONNECTED from a result of RTM_GET for ARP/NDP entries ARP/NDP entries aren't connected routes. Reported by ryo@ Support -c <count> option for route monitor route command exits if it receives <count> routing messages where <count> is a value specified by -c. The option is useful to get only particular message(s) in a test script. Test routing messages emitted on operations of ARP/NDP entries Do netstat -a for an appropriate protocol Add missing declarations for cleanup Set net.inet.arp.keep only if it's required Don't create a permanent L2 cache entry on adding an address to an interface It was created to copy FreeBSD, however actually the cache isn't necessary. Remove it to simplify the code and reduce the cost to maintain it (e.g., keep a consistency with a corresponding local route). Fix typo Fix in_lltable_match_prefix The function has not been used but will be used soon. Remove unused function (nd6_rem_ifa_lle) Allow in6_lltable_free_entry to be called without holding the afdata lock of ifp as well as in_lltable_free_entry This behavior is a bit odd and should be fixed in the future... Purge ARP/NDP entries on an interface when the interface is down Fix PR kern/51179 Purge all related L2 caches on removing a route The change addresses situations similar to PR 51179. Purge L2 caches on changing an interface of a route The change addresses situations similar to PR 51179. Test implicit removals of ARP/NDP entries One test case reproudces PR 51179. Fix build of kernels without both INET and INET6 Tweak lltable_sysctl_dumparp - Rename lltable_sysctl_dumparp to lltable_sysctl_dump because it's not only for ARP - Enable it not only for INET but also for INET6 Fix usage of routing messages on arp -d and ndp -d It didn't work as we expected; we should set RTA_GATEWAY not RTA_IFP on RTM_GET to return an if_index and the kernel should use it on RTM_DELETE. Improve backward compatibility of (fake) routing messages on adding an ARP/NDP entry A message originally included only DST and GATEWAY. Restore it. Fix ifdef; care about a case w/ INET6 and w/o INET Drop RTF_UP from a routing message of a deleted ARP/NDP entry Check existence of ARP/NDP entries Checking ARP/NDP entries is valid rather than checking routes. Fix wrong comment Drop RTF_LLINFO flag (now it's RTF_LLDATA) from local routes They don't have llinfo anymore. And also the change fixes unexpected behavior of ARP proxy. Restore ARP/NDP entries to route show and netstat -r Requested by dyoung@ some time ago Enable to remove multiple ARP/NDP entries for one destination The kernel can have multiple ARP/NDP entries which have an indentical destination on different interfaces. This is normal and can be reproduce easily by ping -I or ping6 -S. We should be able to remove such entries. arp -d <ip> and ndp -d <ip> are changed to fetch all ARP/NDP entries and remove matched entries. So we can remove multiple entries described above. This fetch all and selective removal behavior is the same as arp <ip> and ndp <ip>; they also do fetch all entries and show only matched entries. Related to PR 51179 Check if ARP/NDP entries are purged when a related route is deleted
Revision 1.19 / (download) - annotate - [select for diffs], Mon Jun 19 09:20:29 2017 UTC (5 years, 11 months ago) by ozaki-r
Branch: MAIN
CVS Tags: perseant-stdc-iso10646-base,
perseant-stdc-iso10646
Changes since 1.18: +6 -2
lines
Diff to previous 1.18 (colored)
Do netstat -a for an appropriate protocol
Revision 1.18 / (download) - annotate - [select for diffs], Fri Jun 2 01:18:51 2017 UTC (5 years, 11 months ago) by ozaki-r
Branch: MAIN
CVS Tags: netbsd-8-base
Branch point for: netbsd-8
Changes since 1.17: +12 -1
lines
Diff to previous 1.17 (colored)
Add IPSEC_KEY_DEBUG Enable the debugging feature of IPsec key (sysctl net.key.debug) on rump kernels if the ATF test is run with IPSEC_KEY_DEBUG=true.
Revision 1.17 / (download) - annotate - [select for diffs], Fri May 19 02:56:58 2017 UTC (6 years ago) by ozaki-r
Branch: MAIN
Changes since 1.16: +16 -1
lines
Diff to previous 1.16 (colored)
Enable debug logging of kernels such as ARP and ND if $DEUBG=true
Revision 1.15.2.1 / (download) - annotate - [select for diffs], Fri May 19 00:22:59 2017 UTC (6 years ago) by pgoyette
Branch: prg-localcount2
Changes since 1.15: +10 -3
lines
Diff to previous 1.15 (colored) next main 1.16 (colored)
Resolve conflicts from previous merge (all resulting from $NetBSD keywork expansion)
Revision 1.16 / (download) - annotate - [select for diffs], Wed May 17 06:30:15 2017 UTC (6 years ago) by ozaki-r
Branch: MAIN
CVS Tags: prg-localcount2-base3
Changes since 1.15: +10 -3
lines
Diff to previous 1.15 (colored)
Add test cases of TCP communications with IPsec enabled The test cases transfer data over TCP by using nc with IPsec just enabled (no SA/SP is configured) and confirm the commit "Fix diagnostic assertion failure in ipsec_init_policy" really fixes the issue.
Revision 1.9.2.4 / (download) - annotate - [select for diffs], Wed Apr 26 02:53:33 2017 UTC (6 years, 1 month ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.9.2.3: +21 -1
lines
Diff to previous 1.9.2.3 (colored) to branchpoint 1.9 (colored) next main 1.10 (colored)
Sync with HEAD
Revision 1.11.2.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:54:12 2017 UTC (6 years, 1 month ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.11: +57 -2
lines
Diff to previous 1.11 (colored) next main 1.12 (colored)
Sync with HEAD
Revision 1.15 / (download) - annotate - [select for diffs], Fri Apr 14 02:56:48 2017 UTC (6 years, 1 month ago) by ozaki-r
Branch: MAIN
CVS Tags: prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
pgoyette-localcount-20170426,
bouyer-socketcan-base1
Branch point for: prg-localcount2
Changes since 1.14: +21 -1
lines
Diff to previous 1.14 (colored)
Add tests for ipsec - Check if setkey correctly handles algorithms for AH/ESP - Check IPsec of transport mode with AH/ESP over IPv4/IPv6 - Check IPsec of tunnel mode with AH/ESP over IPv4/IPv6
Revision 1.9.2.3 / (download) - annotate - [select for diffs], Mon Mar 20 06:58:00 2017 UTC (6 years, 2 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.9.2.2: +53 -2
lines
Diff to previous 1.9.2.2 (colored) to branchpoint 1.9 (colored)
Sync with HEAD
Revision 1.14 / (download) - annotate - [select for diffs], Mon Mar 6 07:15:47 2017 UTC (6 years, 2 months ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-localcount-20170320
Changes since 1.13: +2 -2
lines
Diff to previous 1.13 (colored)
Fix ONEDAYISH; it can be followed by one extra space
Revision 1.13 / (download) - annotate - [select for diffs], Fri Mar 3 07:34:04 2017 UTC (6 years, 2 months ago) by ozaki-r
Branch: MAIN
Changes since 1.12: +2 -1
lines
Diff to previous 1.12 (colored)
Provide a more robust regexp for time formats of 1day-ish
Revision 1.12 / (download) - annotate - [select for diffs], Thu Feb 16 08:12:47 2017 UTC (6 years, 3 months ago) by ozaki-r
Branch: MAIN
Changes since 1.11: +36 -2
lines
Diff to previous 1.11 (colored)
Use nc instead of ftp/httpd ftp with rumphijack is unstable probably because ftp uses siglongjmp from a signal hander. So stop using ftp and use nc instead. This fixes test failures of t_mtudisc on some environments such as my development machine (amd64) and anita on sparc64.
Revision 1.11 / (download) - annotate - [select for diffs], Tue Jan 10 05:55:34 2017 UTC (6 years, 4 months ago) by ozaki-r
Branch: MAIN
CVS Tags: bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.10: +7 -1
lines
Diff to previous 1.10 (colored)
Test netstat -i -a and ifmcstat
Revision 1.10 / (download) - annotate - [select for diffs], Tue Jan 10 05:55:10 2017 UTC (6 years, 4 months ago) by ozaki-r
Branch: MAIN
Changes since 1.9: +11 -1
lines
Diff to previous 1.9 (colored)
Test dumping states before destroying interfaces
Revision 1.9.2.2 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:55 2017 UTC (6 years, 4 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.9.2.1: +298 -0
lines
Diff to previous 1.9.2.1 (colored) to branchpoint 1.9 (colored)
Sync with HEAD. (Note that most of these changes are simply $NetBSD$ tag issues.)
Revision 1.9.2.1, Mon Nov 28 07:29:56 2016 UTC (6 years, 6 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.9: +0 -298
lines
FILE REMOVED
file net_common.sh was added on branch pgoyette-localcount on 2017-01-07 08:56:55 +0000
Revision 1.9 / (download) - annotate - [select for diffs], Mon Nov 28 07:29:56 2016 UTC (6 years, 6 months ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-localcount-20170107
Branch point for: pgoyette-localcount
Changes since 1.8: +5 -3
lines
Diff to previous 1.8 (colored)
Use redirection instead of pipeline This is a workaround for PR bin/51667.
Revision 1.8 / (download) - annotate - [select for diffs], Sat Nov 26 03:20:42 2016 UTC (6 years, 6 months ago) by ozaki-r
Branch: MAIN
Changes since 1.7: +5 -1
lines
Diff to previous 1.7 (colored)
Skip dumping if no bus is used
Revision 1.7 / (download) - annotate - [select for diffs], Fri Nov 25 08:51:16 2016 UTC (6 years, 6 months ago) by ozaki-r
Branch: MAIN
Changes since 1.6: +160 -1
lines
Diff to previous 1.6 (colored)
Share rump_server start/stop and interface creation/destruction functions The common functions store socks of rump_servers, interfaces of rump_servers and buses that intefaces connect and allow to destroy them with common functions without specifying which socks, interfaces and buses we should destroy. This change reduces lots of similar setup/cleanup codes.
Revision 1.6 / (download) - annotate - [select for diffs], Thu Nov 24 11:54:57 2016 UTC (6 years, 6 months ago) by ozaki-r
Branch: MAIN
Changes since 1.5: +29 -1
lines
Diff to previous 1.5 (colored)
Share httpd start/stop code
Revision 1.5 / (download) - annotate - [select for diffs], Thu Nov 24 09:07:09 2016 UTC (6 years, 6 months ago) by ozaki-r
Branch: MAIN
Changes since 1.4: +8 -1
lines
Diff to previous 1.4 (colored)
Move get_macaddr to net_common.sh
Revision 1.4 / (download) - annotate - [select for diffs], Thu Nov 24 09:06:09 2016 UTC (6 years, 6 months ago) by ozaki-r
Branch: MAIN
Changes since 1.3: +12 -1
lines
Diff to previous 1.3 (colored)
Move get_lladdr to net_common.sh
Revision 1.3 / (download) - annotate - [select for diffs], Thu Nov 24 09:05:16 2016 UTC (6 years, 6 months ago) by ozaki-r
Branch: MAIN
Changes since 1.2: +39 -1
lines
Diff to previous 1.2 (colored)
Move route check functions to net_common.sh
Revision 1.2 / (download) - annotate - [select for diffs], Thu Nov 24 09:03:53 2016 UTC (6 years, 6 months ago) by ozaki-r
Branch: MAIN
Changes since 1.1: +3 -1
lines
Diff to previous 1.1 (colored)
Move HIJACKING definition to net_common.sh
Revision 1.1 / (download) - annotate - [select for diffs], Thu Nov 24 08:52:19 2016 UTC (6 years, 6 months ago) by ozaki-r
Branch: MAIN
Reduce duplicate codes Introduce net_common.sh that is to share common functions used in tests for networking. This commit commonizes extract_new_packets. Other duplicate codes will be moved to the file in further commits.