The NetBSD Project

CVS log for src/tests/net/arp/t_arp.sh

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.45 / (download) - annotate - [select for diffs], Fri Sep 18 16:33:49 2020 UTC (3 years, 6 months ago) by roy
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, HEAD
Changes since 1.44: +5 -1 lines
Diff to previous 1.44 (colored)

arp tests: Delete ARP entry after failed ping test

As it might hang around in WAITDELETE for a few seconds.

Revision 1.44 / (download) - annotate - [select for diffs], Thu Sep 17 11:51:01 2020 UTC (3 years, 6 months ago) by roy
Branch: MAIN
Changes since 1.43: +2 -3 lines
Diff to previous 1.43 (colored)

arp_rtm: Only ping once

Pointless doing 10 pings.
On a slow system, it's possible that many RTM_MISS messages could
overflow into the next test.

Revision 1.43 / (download) - annotate - [select for diffs], Tue Sep 15 11:19:10 2020 UTC (3 years, 6 months ago) by roy
Branch: MAIN
Changes since 1.42: +2 -2 lines
Diff to previous 1.42 (colored)

Don't check lifetime when testing published

Revision 1.42 / (download) - annotate - [select for diffs], Sun Sep 13 14:36:32 2020 UTC (3 years, 6 months ago) by roy
Branch: MAIN
Changes since 1.41: +39 -51 lines
Diff to previous 1.41 (colored)

arp test: Use the ndp cache expiration test in place of the old one

As the logic is the same.
While here, GC some variables and comment out a redundant sleep.

Revision 1.36.2.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:05:29 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.36.2.1: +37 -4 lines
Diff to previous 1.36.2.1 (colored) to branchpoint 1.36 (colored) next main 1.37 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.41 / (download) - annotate - [select for diffs], Wed Mar 11 08:52:13 2020 UTC (4 years, 1 month ago) by roy
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (colored)

tests: check RTA_AUTHOR in messages

Revision 1.40 / (download) - annotate - [select for diffs], Mon Sep 9 10:29:04 2019 UTC (4 years, 7 months ago) by roy
Branch: MAIN
CVS Tags: phil-wifi-20191119, is-mlppp-base, is-mlppp
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored)

t_arp: Wait for 10 seconds for RTM_MISS

Let's try increasing the ping timeout to try and fix PR misc/54525.

Revision 1.37.2.1 / (download) - annotate - [select for diffs], Thu Sep 5 08:45:53 2019 UTC (4 years, 7 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1
Changes since 1.37: +35 -2 lines
Diff to previous 1.37 (colored) next main 1.38 (colored)

Pull up following revision(s) (requested by roy in ticket #175):

	tests/net/arp/t_arp.sh: revision 1.39
	tests/net/ndp/t_ndp.sh: revision 1.36

tests: fix ARP and NDP tests for RTM_* messages

While here add tests for RTM_MISS.

Revision 1.39 / (download) - annotate - [select for diffs], Tue Sep 3 19:07:50 2019 UTC (4 years, 7 months ago) by roy
Branch: MAIN
Changes since 1.38: +35 -2 lines
Diff to previous 1.38 (colored)

tests: fix ARP and NDP tests for RTM_* messages

While here add tests for RTM_MISS.

Revision 1.38 / (download) - annotate - [select for diffs], Mon Aug 19 03:22:05 2019 UTC (4 years, 7 months ago) by ozaki-r
Branch: MAIN
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored)

tests: use rump_server_add_iface to create interfaces

Revision 1.36.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:10:08 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.36: +2 -2 lines
Diff to previous 1.36 (colored)

Sync with HEAD

Revision 1.37 / (download) - annotate - [select for diffs], Mon May 13 17:55:08 2019 UTC (4 years, 11 months ago) by bad
Branch: MAIN
CVS Tags: phil-wifi-20190609, netbsd-9-base
Branch point for: netbsd-9
Changes since 1.36: +2 -2 lines
Diff to previous 1.36 (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.22.6.2 / (download) - annotate - [select for diffs], Sun Apr 8 06:09:12 2018 UTC (6 years 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.22.6.1: +87 -17 lines
Diff to previous 1.22.6.1 (colored) to branchpoint 1.22 (colored) next main 1.23 (colored)

Pull up following revision(s) (requested by ozaki-r in ticket #701):
	sys/netinet/in.c: 1.227
	sys/netinet6/in6.c: 1.265
	tests/net/arp/t_arp.sh: 1.35-1.36
Make GARP work again when DAD is disabled
The change avoids setting an IP address tentative on initializing it when
the IPv4 DAD is disabled (net.inet.ip.dad_count=0), which allows a GARP packet
to be sent (see arpannounce).  This is the same behavior of NetBSD 7, i.e.,
before introducing the IPv4 DAD.
Additionally do the same change to IPv6 DAD for consistency.
The change is suggested by roy@
--
Improve packet checks and error reporting
--
Add tests for GARP without DAD
Additionally make the existing tests for GARP more explicit.

Revision 1.34.2.1 / (download) - annotate - [select for diffs], Sat Apr 7 04:12:20 2018 UTC (6 years ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.34: +87 -17 lines
Diff to previous 1.34 (colored) next main 1.35 (colored)

Sync with HEAD.  77 conflicts resolved - all of them $NetBSD$

Revision 1.36 / (download) - annotate - [select for diffs], Fri Apr 6 09:23:36 2018 UTC (6 years ago) by ozaki-r
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-20190127, pgoyette-compat-20190118, 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, pgoyette-compat-0407
Branch point for: phil-wifi
Changes since 1.35: +81 -10 lines
Diff to previous 1.35 (colored)

Add tests for GARP without DAD

Additionally make the existing tests for GARP more explicit.

Revision 1.35 / (download) - annotate - [select for diffs], Fri Apr 6 09:21:57 2018 UTC (6 years ago) by ozaki-r
Branch: MAIN
Changes since 1.34: +10 -11 lines
Diff to previous 1.34 (colored)

Improve packet checks and error reporting

Revision 1.34 / (download) - annotate - [select for diffs], Thu Nov 23 06:22:12 2017 UTC (6 years, 4 months ago) by kre
Branch: MAIN
CVS Tags: pgoyette-compat-base, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.33: +15 -17 lines
Diff to previous 1.33 (colored)

Clean up the arp_rtm subtest...

1. Be assertive when claiming the pid of the background route monitor command,
   not polite...  (ie: $! will give you the pid, $? is just 0 there).
2. Since "wait 0" simply (always) exits with status 127, immediately (we
   know without thinking that we have no child with pid 0) the waits were
   ineffective - now (after fix #1) they work .. which requires the
   route monitor that watches the arp -d to exit after 1 message, not 2,
   as 1 is all it gets.   (If there really should be 2, someone needs to
   find out why the kernel is sending only 1 - I am not that someone).
3. The file contents need to be read only once, no matter how many patterns
   we need to look for, save some work, and do it that way (this is not
   really a bug,m but saving time for the ATF tests is always a good thing.)

Not sure if this will stop it randomly failing on bablyon5, but it might.
(The likely cause is that the "route.monitor" has not flushed its stdout
buffers at the time the "grep -A 3"  [aside: why that way to read the file??]
is performed, so fails to find its expected output ... the route monitor would
get an extra message once interfaces start being destroyed, I assume, and
would exit then, flushing its buffer, but by then it is too late.
If that is/was the cause, then it should be fixed now.)

Revision 1.22.6.1 / (download) - annotate - [select for diffs], Fri Jul 7 13:57:26 2017 UTC (6 years, 9 months ago) by martin
Branch: netbsd-8
CVS Tags: matt-nb8-mediatek-base, matt-nb8-mediatek
Changes since 1.22: +334 -51 lines
Diff to previous 1.22 (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.33 / (download) - annotate - [select for diffs], Wed Jun 28 08:17:50 2017 UTC (6 years, 9 months ago) by ozaki-r
Branch: MAIN
CVS Tags: perseant-stdc-iso10646-base, perseant-stdc-iso10646
Changes since 1.32: +83 -9 lines
Diff to previous 1.32 (colored)

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

Revision 1.32 / (download) - annotate - [select for diffs], Wed Jun 28 04:14:53 2017 UTC (6 years, 9 months ago) by ozaki-r
Branch: MAIN
Changes since 1.31: +42 -15 lines
Diff to previous 1.31 (colored)

Restore ARP/NDP entries to route show and netstat -r

Requested by dyoung@ some time ago

Revision 1.31 / (download) - annotate - [select for diffs], Wed Jun 28 04:10:47 2017 UTC (6 years, 9 months ago) by ozaki-r
Branch: MAIN
Changes since 1.30: +9 -19 lines
Diff to previous 1.30 (colored)

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.

Revision 1.30 / (download) - annotate - [select for diffs], Mon Jun 26 06:59:57 2017 UTC (6 years, 9 months ago) by ozaki-r
Branch: MAIN
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

Drop RTF_UP from a routing message of a deleted ARP/NDP entry

Revision 1.29 / (download) - annotate - [select for diffs], Mon Jun 26 03:16:28 2017 UTC (6 years, 9 months ago) by ozaki-r
Branch: MAIN
Changes since 1.28: +3 -3 lines
Diff to previous 1.28 (colored)

Improve backward compatibility of (fake) routing messages on adding an ARP/NDP entry

A message originally included only DST and GATEWAY. Restore it.

Revision 1.28 / (download) - annotate - [select for diffs], Mon Jun 26 03:13:40 2017 UTC (6 years, 9 months ago) by ozaki-r
Branch: MAIN
Changes since 1.27: +5 -5 lines
Diff to previous 1.27 (colored)

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.

Revision 1.27 / (download) - annotate - [select for diffs], Thu Jun 22 10:06:33 2017 UTC (6 years, 9 months ago) by ozaki-r
Branch: MAIN
Changes since 1.26: +124 -1 lines
Diff to previous 1.26 (colored)

Test implicit removals of ARP/NDP entries

One test case reproudces PR 51179.

Revision 1.26 / (download) - annotate - [select for diffs], Wed Jun 21 09:05:31 2017 UTC (6 years, 9 months ago) by ozaki-r
Branch: MAIN
Changes since 1.25: +9 -11 lines
Diff to previous 1.25 (colored)

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).

Revision 1.25 / (download) - annotate - [select for diffs], Wed Jun 21 03:10:42 2017 UTC (6 years, 9 months ago) by ozaki-r
Branch: MAIN
Changes since 1.24: +11 -13 lines
Diff to previous 1.24 (colored)

Set net.inet.arp.keep only if it's required

Revision 1.24 / (download) - annotate - [select for diffs], Mon Jun 19 10:57:37 2017 UTC (6 years, 9 months ago) by ozaki-r
Branch: MAIN
Changes since 1.23: +2 -1 lines
Diff to previous 1.23 (colored)

Add missing declarations for cleanup

Revision 1.23 / (download) - annotate - [select for diffs], Fri Jun 16 04:41:02 2017 UTC (6 years, 9 months ago) by ozaki-r
Branch: MAIN
Changes since 1.22: +73 -1 lines
Diff to previous 1.22 (colored)

Test routing messages emitted on operations of ARP/NDP entries

Revision 1.16.2.1 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:55 2017 UTC (7 years, 3 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.16: +43 -84 lines
Diff to previous 1.16 (colored) next main 1.17 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.22 / (download) - annotate - [select for diffs], Fri Nov 25 08:51:16 2016 UTC (7 years, 4 months ago) by ozaki-r
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, netbsd-8-base, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-8
Changes since 1.21: +34 -58 lines
Diff to previous 1.21 (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.21 / (download) - annotate - [select for diffs], Thu Nov 24 09:07:09 2016 UTC (7 years, 4 months ago) by ozaki-r
Branch: MAIN
Changes since 1.20: +3 -4 lines
Diff to previous 1.20 (colored)

Move get_macaddr to net_common.sh

Revision 1.20 / (download) - annotate - [select for diffs], Thu Nov 24 09:03:53 2016 UTC (7 years, 4 months ago) by ozaki-r
Branch: MAIN
Changes since 1.19: +1 -2 lines
Diff to previous 1.19 (colored)

Move HIJACKING definition to net_common.sh

Revision 1.19 / (download) - annotate - [select for diffs], Thu Nov 24 08:52:19 2016 UTC (7 years, 4 months ago) by ozaki-r
Branch: MAIN
Changes since 1.18: +7 -22 lines
Diff to previous 1.18 (colored)

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.

Revision 1.18 / (download) - annotate - [select for diffs], Mon Nov 7 05:25:36 2016 UTC (7 years, 5 months ago) by ozaki-r
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

Accept DEBUG environment variable

By doing so, we can easily turn DEBUG on/off without modifying
the ATF scripts.

Revision 1.17 / (download) - annotate - [select for diffs], Tue Aug 23 16:03:45 2016 UTC (7 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: pgoyette-localcount-20161104, localcount-20160914
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

no functional change

Revision 1.16 / (download) - annotate - [select for diffs], Tue Jun 21 05:04:16 2016 UTC (7 years, 9 months ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726
Branch point for: pgoyette-localcount
Changes since 1.15: +47 -47 lines
Diff to previous 1.15 (colored)

Make a bunch of test names self-descriptive

Revision 1.15 / (download) - annotate - [select for diffs], Mon Apr 18 02:27:34 2016 UTC (7 years, 11 months ago) by ozaki-r
Branch: MAIN
Changes since 1.14: +41 -1 lines
Diff to previous 1.14 (colored)

Add a test case for static ARP

It tests receiving an ARP request that has a spa (i.e., IP address) whose
ARP entry already exists in the table as a static ARP entry.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Apr 4 07:37:08 2016 UTC (8 years ago) by ozaki-r
Branch: MAIN
Changes since 1.13: +24 -34 lines
Diff to previous 1.13 (colored)

Separate nexthop caches from the routing table

By this change, nexthop caches (IP-MAC address pair) are not stored
in the routing table anymore. Instead nexthop caches are stored in
each network interface; we already have lltable/llentry data structure
for this purpose. This change also obsoletes the concept of cloning/cloned
routes. Cloned routes no longer exist while cloning routes still exist
with renamed to connected routes.

Noticeable changes are:
- Nexthop caches aren't listed in route show/netstat -r
  - sysctl(NET_RT_DUMP) doesn't return them
  - If RTF_LLDATA is specified, it returns nexthop caches
- Several definitions of routing flags and messages are removed
  - RTF_CLONING, RTF_XRESOLVE, RTF_LLINFO, RTF_CLONED and RTM_RESOLVE
- RTF_CONNECTED is added
  - It has the same value of RTF_CLONING for backward compatibility
- route's -xresolve, -[no]cloned and -llinfo options are removed
  - -[no]cloning remains because it seems there are users
  - -[no]connected is introduced and recommended
    to be used instead of -[no]cloning
- route show/netstat -r drops some flags
  - 'L' and 'c' are not seen anymore
  - 'C' now indicates a connected route
- Gateway value of a route of an interface address is now not
  a L2 address but "link#N" like a connected (cloning) route
- Proxy ARP: "arp -s ... pub" doesn't create a route

You can know details of behavior changes by seeing diffs under tests/.

Proposed on tech-net and tech-kern:
  http://mail-index.netbsd.org/tech-net/2016/03/11/msg005701.html

Revision 1.13 / (download) - annotate - [select for diffs], Fri Mar 4 04:18:44 2016 UTC (8 years, 1 month ago) by ozaki-r
Branch: MAIN
Changes since 1.12: +119 -35 lines
Diff to previous 1.12 (colored)

Improve tests of proxy arp

The tests make it clear how it behaves though, I don't know if the current
behavior is what it should be.

Revision 1.12 / (download) - annotate - [select for diffs], Mon Feb 29 09:35:16 2016 UTC (8 years, 1 month ago) by ozaki-r
Branch: MAIN
Changes since 1.11: +53 -1 lines
Diff to previous 1.11 (colored)

Add tests on activating a new MAC address

Revision 1.11 / (download) - annotate - [select for diffs], Thu Feb 25 03:23:15 2016 UTC (8 years, 1 month ago) by ozaki-r
Branch: MAIN
Changes since 1.10: +112 -6 lines
Diff to previous 1.10 (colored)

Add basic tests for Proxy ARP

The tests don't much enough and need more realitic tests, for example
tests for a setup using ppp found in PR 44032.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Dec 2 06:05:14 2015 UTC (8 years, 4 months ago) by ozaki-r
Branch: MAIN
Changes since 1.9: +5 -3 lines
Diff to previous 1.9 (colored)

Make checks strict

rump.arp should fail with File exists (EEXIST).

Revision 1.9 / (download) - annotate - [select for diffs], Mon Aug 31 08:08:20 2015 UTC (8 years, 7 months ago) by ozaki-r
Branch: MAIN
Changes since 1.8: +7 -14 lines
Diff to previous 1.8 (colored)

Reflect the current ARP cache implementation in tests

net.inet.arp.prune and net.inet.arp.refresh were obsoleted.

Revision 1.8 / (download) - annotate - [select for diffs], Thu Aug 13 10:22:21 2015 UTC (8 years, 8 months ago) by ozaki-r
Branch: MAIN
Changes since 1.7: +3 -4 lines
Diff to previous 1.7 (colored)

Reflect a fix on rt_refcnt

The test was adjusted based on wrong behavior.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Aug 7 05:32:12 2015 UTC (8 years, 8 months ago) by ozaki-r
Branch: MAIN
Changes since 1.6: +10 -1 lines
Diff to previous 1.6 (colored)

Check MAC address of ARP caches additionally

Revision 1.6 / (download) - annotate - [select for diffs], Fri Jul 31 10:16:36 2015 UTC (8 years, 8 months ago) by ozaki-r
Branch: MAIN
Changes since 1.5: +5 -1 lines
Diff to previous 1.5 (colored)

Return 0 explicitly to avoid unexpected failures when $DEBUG=false

Revision 1.5 / (download) - annotate - [select for diffs], Fri Jul 31 02:39:12 2015 UTC (8 years, 8 months ago) by ozaki-r
Branch: MAIN
Changes since 1.4: +48 -1 lines
Diff to previous 1.4 (colored)

Add tests of cache overwriting

Revision 1.4 / (download) - annotate - [select for diffs], Fri Jul 31 02:35:09 2015 UTC (8 years, 8 months ago) by ozaki-r
Branch: MAIN
Changes since 1.3: +12 -1 lines
Diff to previous 1.3 (colored)

Add tests for temp option

Revision 1.3 / (download) - annotate - [select for diffs], Thu Jul 30 08:41:18 2015 UTC (8 years, 8 months ago) by ozaki-r
Branch: MAIN
Changes since 1.2: +8 -1 lines
Diff to previous 1.2 (colored)

Add tests for arp -a option

Revision 1.2 / (download) - annotate - [select for diffs], Thu Jul 30 02:51:05 2015 UTC (8 years, 8 months ago) by ozaki-r
Branch: MAIN
Changes since 1.1: +73 -2 lines
Diff to previous 1.1 (colored)

Add tests for GARP

Revision 1.1 / (download) - annotate - [select for diffs], Wed Jul 29 06:10:10 2015 UTC (8 years, 8 months ago) by ozaki-r
Branch: MAIN

Add tests for ARP

This form allows you to request diff's 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.




CVSweb <webmaster@jp.NetBSD.org>