diff options
author | 2022-01-31 16:55:36 -0600 | |
---|---|---|
committer | 2022-02-01 20:16:42 +0100 | |
commit | a702597e228006460b1b9f01fb9d8cc12327132f (patch) | |
tree | 1fb3df08ceb5b5f1388b69fc38cea896b7557de1 /tun/netstack/examples/http_server.go | |
parent | version: bump snapshot (diff) | |
download | wireguard-go-a702597e228006460b1b9f01fb9d8cc12327132f.tar.xz wireguard-go-a702597e228006460b1b9f01fb9d8cc12327132f.zip |
tun/netstack: implement ICMP ping
Provide a PacketConn interface for netstack's ICMP endpoint; netstack
currently only provides EchoRequest/EchoResponse ICMP support, so this
code exposes only an interface for doing ping.
Currently is missing:
- Write deadlines
- Context support
Signed-off-by: Thomas Ptacek <thomas@sockpuppet.org>
[Jason: rework structure, match std go interfaces, add example code]
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'tun/netstack/examples/http_server.go')
0 files changed, 0 insertions, 0 deletions