The NetBSD Project

CVS log for src/tests/net/icmp/t_ping.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.23.2.1 / (download) - annotate - [select for diffs], Mon Apr 13 08:05:30 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.23: +14 -8 lines
Diff to previous 1.23 (colored) next main 1.24 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.24 / (download) - annotate - [select for diffs], Tue Jun 11 08:34:01 2019 UTC (4 years, 10 months ago) by gson
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, 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, 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, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, HEAD
Changes since 1.23: +14 -8 lines
Diff to previous 1.23 (colored)

In the "got %d/%d" message printed at the end of the pingsize test,
make the latter number show the actual number of ICMP packets the test
attempted to send.  Thus, the two numbers can now be meaningfully
compared, and their difference indicates the number of packets lost.

Revision 1.17.6.2 / (download) - annotate - [select for diffs], Tue Apr 10 06:54:37 2018 UTC (6 years ago) by martin
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.17.6.1: +3 -3 lines
Diff to previous 1.17.6.1 (colored) to branchpoint 1.17 (colored) next main 1.18 (colored)

Additionally pull up the following revision for ticket #724:

	tests/net/icmp/t_ping.c	1.21

Fix a printf(3)-like format in ATF ICMP t_ping.c

Revision 1.17.6.1 / (download) - annotate - [select for diffs], Mon Apr 9 13:34:10 2018 UTC (6 years ago) by bouyer
Branch: netbsd-8
Changes since 1.17: +23 -9 lines
Diff to previous 1.17 (colored)

Pull up following revision(s) (requested by roy in ticket #724):
	tests/net/icmp/t_ping.c: revision 1.19
	sys/netinet6/raw_ip6.c: revision 1.166
	sys/netinet6/ip6_input.c: revision 1.195
	sys/net/raw_usrreq.c: revision 1.59
	sys/sys/socketvar.h: revision 1.151
	sys/kern/uipc_socket2.c: revision 1.128
	tests/lib/libc/sys/t_recvmmsg.c: revision 1.2
	lib/libc/sys/recv.2: revision 1.38
	sys/net/rtsock.c: revision 1.239
	sys/netinet/udp_usrreq.c: revision 1.246
	sys/netinet6/icmp6.c: revision 1.224
	tests/net/icmp/t_ping.c: revision 1.20
	sys/netipsec/keysock.c: revision 1.63
	sys/netinet/raw_ip.c: revision 1.172
	sys/kern/uipc_socket.c: revision 1.260
	tests/net/icmp/t_ping.c: revision 1.22
	sys/kern/uipc_socket.c: revision 1.261
	tests/net/icmp/t_ping.c: revision 1.23
	sys/netinet/ip_mroute.c: revision 1.155
	sbin/route/route.c: revision 1.159
	sys/netinet6/ip6_mroute.c: revision 1.123
	sys/netatalk/ddp_input.c: revision 1.31
	sys/netcan/can.c: revision 1.3
	sys/kern/uipc_usrreq.c: revision 1.184
	sys/netinet6/udp6_usrreq.c: revision 1.138
	tests/net/icmp/t_ping.c: revision 1.18
socket: report receive buffer overflows
Add soroverflow() which increments the overflow counter, sets so_error
to ENOBUFS and wakes the receive socket up.
Replace all code that manually increments this counter with soroverflow().
Add soroverflow() to raw_input().
This allows userland to detect route(4) overflows so it can re-sync
with the current state.
socket: clear error even when peeking
The error has already been reported and it's pointless requiring another
recv(2) call just to clear it.
socket: remove now incorrect comment that so_error is only udp
As it can be affected by route(4) sockets which are raw.
rtsock: log dropped messages that we cannot report to userland
Handle ENOBUFS when receiving messages.
Don't send messages if the receiver has died.
Sprinkle more soroverflow().
Handle ENOBUFS in recv
Handle ENOBUFS in sendto
Note value received. Harden another sendto for ENOBUFS.
Handle the routing socket overflowing gracefully.
Allow a valid sendto .... duh
Handle errors better.
Fix test for checking we sent all the data we asked to.

Revision 1.17.12.1 / (download) - annotate - [select for diffs], Fri Mar 30 06:20:16 2018 UTC (6 years ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.17: +23 -9 lines
Diff to previous 1.17 (colored) next main 1.18 (colored)

Resolve conflicts between branch and HEAD

Revision 1.23 / (download) - annotate - [select for diffs], Mon Mar 26 09:11:15 2018 UTC (6 years ago) by roy
Branch: MAIN
CVS Tags: phil-wifi-base, phil-wifi-20190609, 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, pgoyette-compat-0330
Branch point for: phil-wifi
Changes since 1.22: +11 -8 lines
Diff to previous 1.22 (colored)

Handle errors better.
Fix test for checking we sent all the data we asked to.

Revision 1.22 / (download) - annotate - [select for diffs], Sat Mar 24 15:51:57 2018 UTC (6 years ago) by roy
Branch: MAIN
Changes since 1.21: +4 -2 lines
Diff to previous 1.21 (colored)

Allow a valid sendto .... duh

Revision 1.21 / (download) - annotate - [select for diffs], Sat Mar 24 00:06:32 2018 UTC (6 years ago) by kamil
Branch: MAIN
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

Fix a printf(3)-like format in ATF ICMP t_ping.c

Use %zd for ssize_t, instead of %d.

Revision 1.20 / (download) - annotate - [select for diffs], Fri Mar 23 10:05:45 2018 UTC (6 years ago) by roy
Branch: MAIN
Changes since 1.19: +10 -7 lines
Diff to previous 1.19 (colored)

Note value received. Harden another sendto for ENOBUFS.

Revision 1.19 / (download) - annotate - [select for diffs], Thu Mar 22 17:27:34 2018 UTC (6 years ago) by roy
Branch: MAIN
Changes since 1.18: +10 -4 lines
Diff to previous 1.18 (colored)

Handle ENOBUFS in sendto

Revision 1.18 / (download) - annotate - [select for diffs], Thu Mar 22 17:16:05 2018 UTC (6 years ago) by roy
Branch: MAIN
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

Handle ENOBUFS in recv

Revision 1.16.2.1 / (download) - annotate - [select for diffs], Mon Mar 20 06:58:00 2017 UTC (7 years, 1 month ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored) next main 1.17 (colored)

Sync with HEAD

Revision 1.17 / (download) - annotate - [select for diffs], Fri Jan 13 21:30:42 2017 UTC (7 years, 3 months ago) by christos
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-compat-base, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, matt-nb8-mediatek-base, matt-nb8-mediatek, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: pgoyette-compat, netbsd-8
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

Don't play with "../.." in includes for h_macros.h; deal with it centrally.
Minor fixes.

Revision 1.16 / (download) - annotate - [select for diffs], Thu Feb 26 13:06:10 2015 UTC (9 years, 1 month ago) by martin
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.15: +4 -4 lines
Diff to previous 1.15 (colored)

Bump timeout to 20 seconds for slower machines.

Revision 1.14.2.1 / (download) - annotate - [select for diffs], Tue Oct 30 19:00:06 2012 UTC (11 years, 5 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.14: +12 -3 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

sync with head

Revision 1.15 / (download) - annotate - [select for diffs], Tue Sep 4 22:31:58 2012 UTC (11 years, 7 months ago) by alnsn
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, agc-symver-base, agc-symver
Changes since 1.14: +12 -3 lines
Diff to previous 1.14 (colored)

Replace usleep(500000) with a synchronization over a pipe.

Revision 1.14 / (download) - annotate - [select for diffs], Sun Jun 26 13:15:22 2011 UTC (12 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Branch point for: yamt-pagecache
Changes since 1.13: +3 -2 lines
Diff to previous 1.13 (colored)

fix fallout from including signal.h from rump_syscallargs.h

Revision 1.13 / (download) - annotate - [select for diffs], Wed Jan 5 14:43:40 2011 UTC (13 years, 3 months ago) by martin
Branch: MAIN
CVS Tags: cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.12: +4 -4 lines
Diff to previous 1.12 (colored)

Use raw buffer size (not aligned value) to limit packet size

Revision 1.12 / (download) - annotate - [select for diffs], Wed Jan 5 14:08:12 2011 UTC (13 years, 3 months ago) by martin
Branch: MAIN
Changes since 1.11: +7 -4 lines
Diff to previous 1.11 (colored)

Fix alignment of sndbuf (sparc64 got a SIGBUS in this test)

Revision 1.11 / (download) - annotate - [select for diffs], Sun Nov 7 17:51:21 2010 UTC (13 years, 5 months ago) by jmmv
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231
Changes since 1.10: +2 -7 lines
Diff to previous 1.10 (colored)

Adjusts tests after import of atf-0.12:

- The use.fs property is gone.
- Mark the tests/fs/t_create:attrs test as broken when using the default
  unprivileged-user:_atf setting.  This probably deserves a fix somehow
  but I'm not sure at this point.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Nov 3 21:44:46 2010 UTC (13 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

make that u_int, because it is passed as a socket option.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Nov 3 16:10:24 2010 UTC (13 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.8: +5 -5 lines
Diff to previous 1.8 (colored)

add Makefile.inc everywhere so that we can set WARNS=4 by default. Amazing
how many bugs this found :-)

Revision 1.8 / (download) - annotate - [select for diffs], Thu Aug 26 17:24:14 2010 UTC (13 years, 7 months ago) by pooka
Branch: MAIN
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

setsockopt() wants int instead of size_t.  Should fix this on LP64.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Aug 23 10:49:27 2010 UTC (13 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.6: +4 -2 lines
Diff to previous 1.6 (colored)

Add a delay between startup of pinger and pingee here too.

XXX: there's apparently some race condition which appears to trigger
if a broadcast arp arrives around the same time as the arpwhohas
is sent.  This causes original packet to never be sent by the
arpwhohas requestor.  If this rings a bell to someone, please let
me know.

Revision 1.6 / (download) - annotate - [select for diffs], Wed Aug 18 21:23:48 2010 UTC (13 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.5: +3 -2 lines
Diff to previous 1.5 (colored)

.. put a timeout here just in case the receive does not increase
the counter.

Revision 1.5 / (download) - annotate - [select for diffs], Wed Aug 18 21:22:34 2010 UTC (13 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.4: +124 -2 lines
Diff to previous 1.4 (colored)

Add a test for the "ping of death".  Declare the test a success
when the receiver increases the "ip toolong" stat counter.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Aug 18 17:49:03 2010 UTC (13 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.3: +5 -5 lines
Diff to previous 1.3 (colored)

send pings in ascending order

Revision 1.3 / (download) - annotate - [select for diffs], Wed Aug 18 16:39:22 2010 UTC (13 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.2: +164 -38 lines
Diff to previous 1.2 (colored)

Add a two-way floodping test and a test which sends icmp echos with
various sizes.

Revision 1.2 / (download) - annotate - [select for diffs], Tue Aug 17 15:51:11 2010 UTC (13 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.1: +81 -3 lines
Diff to previous 1.1 (colored)

add a test which floodpings another host

Revision 1.1 / (download) - annotate - [select for diffs], Mon Aug 9 15:08:43 2010 UTC (13 years, 8 months ago) by pooka
Branch: MAIN

test that kernel reponds to ping

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>