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


Keyword substitution: kv
Default branch: MAIN


Revision 1.23.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:05:30 2020 UTC (4 years, 10 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23: +14 -8 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.24: download - view: text, markup, annotated - select for diffs
Tue Jun 11 08:34:01 2019 UTC (5 years, 8 months ago) by gson
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, netbsd-9-base, netbsd-9-4-RELEASE, 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-1-RELEASE, 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
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +14 -8 lines
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 - view: text, markup, annotated - select for diffs
Tue Apr 10 06:54:37 2018 UTC (6 years, 10 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1
Diff to: previous 1.17.6.1: preferred, colored; branchpoint 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17.6.1: +3 -3 lines
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 - view: text, markup, annotated - select for diffs
Mon Apr 9 13:34:10 2018 UTC (6 years, 10 months ago) by bouyer
Branches: netbsd-8
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +23 -9 lines
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 - view: text, markup, annotated - select for diffs
Fri Mar 30 06:20:16 2018 UTC (6 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17: +23 -9 lines
Resolve conflicts between branch and HEAD

Revision 1.23: download - view: text, markup, annotated - select for diffs
Mon Mar 26 09:11:15 2018 UTC (6 years, 10 months ago) by roy
Branches: 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
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +11 -8 lines
Handle errors better.
Fix test for checking we sent all the data we asked to.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Sat Mar 24 15:51:57 2018 UTC (6 years, 10 months ago) by roy
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +4 -2 lines
Allow a valid sendto .... duh

Revision 1.21: download - view: text, markup, annotated - select for diffs
Sat Mar 24 00:06:32 2018 UTC (6 years, 10 months ago) by kamil
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -3 lines
Fix a printf(3)-like format in ATF ICMP t_ping.c

Use %zd for ssize_t, instead of %d.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Fri Mar 23 10:05:45 2018 UTC (6 years, 10 months ago) by roy
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +10 -7 lines
Note value received. Harden another sendto for ENOBUFS.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Thu Mar 22 17:27:34 2018 UTC (6 years, 10 months ago) by roy
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +10 -4 lines
Handle ENOBUFS in sendto

Revision 1.18: download - view: text, markup, annotated - select for diffs
Thu Mar 22 17:16:05 2018 UTC (6 years, 10 months ago) by roy
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +3 -3 lines
Handle ENOBUFS in recv

Revision 1.16.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 20 06:58:00 2017 UTC (7 years, 10 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.16: preferred, colored; next MAIN 1.17: preferred, colored
Changes since revision 1.16: +3 -3 lines
Sync with HEAD

Revision 1.17: download - view: text, markup, annotated - select for diffs
Fri Jan 13 21:30:42 2017 UTC (8 years, 1 month ago) by christos
Branches: 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
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -3 lines
Don't play with "../.." in includes for h_macros.h; deal with it centrally.
Minor fixes.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Thu Feb 26 13:06:10 2015 UTC (9 years, 11 months ago) by martin
Branches: 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
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +4 -4 lines
Bump timeout to 20 seconds for slower machines.

Revision 1.14.2.1: download - view: text, markup, annotated - select for diffs
Tue Oct 30 19:00:06 2012 UTC (12 years, 3 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14: +12 -3 lines
sync with head

Revision 1.15: download - view: text, markup, annotated - select for diffs
Tue Sep 4 22:31:58 2012 UTC (12 years, 5 months ago) by alnsn
Branches: 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
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +12 -3 lines
Replace usleep(500000) with a synchronization over a pipe.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun Jun 26 13:15:22 2011 UTC (13 years, 7 months ago) by christos
Branches: 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
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +3 -2 lines
fix fallout from including signal.h from rump_syscallargs.h

Revision 1.13: download - view: text, markup, annotated - select for diffs
Wed Jan 5 14:43:40 2011 UTC (14 years, 1 month ago) by martin
Branches: MAIN
CVS tags: cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +4 -4 lines
Use raw buffer size (not aligned value) to limit packet size

Revision 1.12: download - view: text, markup, annotated - select for diffs
Wed Jan 5 14:08:12 2011 UTC (14 years, 1 month ago) by martin
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +7 -4 lines
Fix alignment of sndbuf (sparc64 got a SIGBUS in this test)

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sun Nov 7 17:51:21 2010 UTC (14 years, 3 months ago) by jmmv
Branches: MAIN
CVS tags: matt-mips64-premerge-20101231
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -7 lines
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 - view: text, markup, annotated - select for diffs
Wed Nov 3 21:44:46 2010 UTC (14 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -3 lines
make that u_int, because it is passed as a socket option.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed Nov 3 16:10:24 2010 UTC (14 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +5 -5 lines
add Makefile.inc everywhere so that we can set WARNS=4 by default. Amazing
how many bugs this found :-)

Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu Aug 26 17:24:14 2010 UTC (14 years, 5 months ago) by pooka
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +3 -3 lines
setsockopt() wants int instead of size_t.  Should fix this on LP64.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon Aug 23 10:49:27 2010 UTC (14 years, 5 months ago) by pooka
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +4 -2 lines
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 - view: text, markup, annotated - select for diffs
Wed Aug 18 21:23:48 2010 UTC (14 years, 5 months ago) by pooka
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -2 lines
.. put a timeout here just in case the receive does not increase
the counter.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Wed Aug 18 21:22:34 2010 UTC (14 years, 5 months ago) by pooka
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +124 -2 lines
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 - view: text, markup, annotated - select for diffs
Wed Aug 18 17:49:03 2010 UTC (14 years, 5 months ago) by pooka
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +5 -5 lines
send pings in ascending order

Revision 1.3: download - view: text, markup, annotated - select for diffs
Wed Aug 18 16:39:22 2010 UTC (14 years, 5 months ago) by pooka
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +164 -38 lines
Add a two-way floodping test and a test which sends icmp echos with
various sizes.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Aug 17 15:51:11 2010 UTC (14 years, 6 months ago) by pooka
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +81 -3 lines
add a test which floodpings another host

Revision 1.1: download - view: text, markup, annotated - select for diffs
Mon Aug 9 15:08:43 2010 UTC (14 years, 6 months ago) by pooka
Branches: MAIN
test that kernel reponds to ping

Diff request

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

Log view options

CVSweb <webmaster@jp.NetBSD.org>