Ported remaining netns.sh
- Ported remaining netns.sh tests - Begin work on generic implementation of bind interface
This commit is contained in:
parent
e1227d3af4
commit
fa399a91d5
13 changed files with 194 additions and 28 deletions
|
|
@ -168,7 +168,7 @@ func (end *Endpoint) DstIP() net.IP {
|
|||
}
|
||||
}
|
||||
|
||||
func (end *Endpoint) SrcToBytes() []byte {
|
||||
func (end *Endpoint) DstToBytes() []byte {
|
||||
ptr := unsafe.Pointer(&end.src)
|
||||
arr := (*[unix.SizeofSockaddrInet6]byte)(ptr)
|
||||
return arr[:]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue