]> Cypherpunks repositories - gostls13.git/commit
net, syscall: more accurate parsers for routing messages on BSD variants
authorMikio Hara <mikioh.mikioh@gmail.com>
Tue, 10 Feb 2015 03:24:11 +0000 (12:24 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Fri, 20 Feb 2015 04:33:28 +0000 (04:33 +0000)
commit69275eef5e6dfa837202323223f39bc24f2695ac
tree8de42524a5561ff84b7e3a54da8f72eb3d870a09
parent668762c5709b61e0b442b02c81489a7fdf6f9b19
net, syscall: more accurate parsers for routing messages on BSD variants

This changes fixes two issues with regard to handling routing messages
as follows:
- Misparsing on platforms (such as FreeBSD) supporting multiple
  architectures in the same kernel (kern.supported_archs="amd64 i386")
- Misparsing with unimplemented messages such as route, interface
  address state notifications

To fix those issues, this change implements all the required socket
address parsers, adds a processor architecture identifying function to
FreeBSD and tests.

Fixes #9707.
Fixes #8203.

Change-Id: I7ed7b4a0b6f10f54b29edc681a2f35603f2d8d45
Reviewed-on: https://go-review.googlesource.com/4330
Reviewed-by: Ian Lance Taylor <iant@golang.org>
14 files changed:
src/net/interface_bsd.go
src/net/interface_darwin.go
src/net/interface_freebsd.go
src/syscall/route_bsd.go
src/syscall/route_bsd_test.go [new file with mode: 0644]
src/syscall/route_darwin.go
src/syscall/route_dragonfly.go
src/syscall/route_freebsd.go
src/syscall/route_freebsd_32bit.go
src/syscall/route_freebsd_64bit.go
src/syscall/route_ifma_test.go [new file with mode: 0644]
src/syscall/route_netbsd.go
src/syscall/route_noifma_test.go [new file with mode: 0644]
src/syscall/route_openbsd.go