Descriptionnet: replace implementatin of file/test parseProcNetIGMP
Changed the internal file type to implement a new interface
called readStringer that bytes.Buffer also implements.
Fixed issue with parseProcNetIGMP incorrectly parsing
/proc/net/igmp and panicing. Added test case to test the
condition. The old version is still there to demonstrate
the problem.
The simplest fix, but providing no testing, is to just
adopt the parsing logic in interface_linux.c. Alternatively
this CL can go in with the _oldParseProcNetIGMP function
removed and the igmp_test.go file named in such a way it
will only run on linux (to late to research that tonight).
Note that for me the net test still fails. The panic was
masking a different failure (the igmp_tet.go failure is
expected):
--- FAIL: TestOldParseProcNetIGMP (0.00 seconds)
igmp_test.go:35: paniced
--- FAIL: TestListenMulticastUDP (0.00 seconds)
multicast_test.go:126: IPv4 multicast interface: <nil>
multicast_test.go:136: IPv4 multicast TTL: 1
multicast_test.go:146: IPv4 multicast loopback: false
multicast_test.go:82: "224.0.0.254:12345" not found in RIB
fixes issue 2826
Patch Set 1 #Patch Set 2 : diff -r f79343c8a479 https://go.googlecode.com/hg/ #Patch Set 3 : diff -r f79343c8a479 https://go.googlecode.com/hg/ #
Total comments: 4
MessagesTotal messages: 6
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||