x/net/internal/icmp: add ParseIPv4Header
This CL adds ParseIPv4Header for parsing an IPv4 header in ICMP error message. We cannot use ipv4.ParseHeader for it because they are different things processed by either ip_input or icmp_input. LGTM=iant R=iant CC=golang-codereviews https://golang.org/cl/184850043
Showing
internal/icmp/ipv4.go
0 → 100644
internal/icmp/ipv4_test.go
0 → 100644
internal/icmp/sys_freebsd.go
0 → 100644
Please
register
or
sign in
to comment