Browse Source

ipv4: fix multicast socket options on freebsd/arm

The ARM EABI requires 8-byte stack alignment.

Change-Id: Ibbfbce6aa9ff998dfd6f56217e323045a7057913
Reviewed-on: https://go-review.googlesource.com/11393
Reviewed-by: Andrew Gerrand <adg@golang.org>
Mikio Hara 10 years ago
parent
commit
c135eec0b6
1 changed files with 4 additions and 2 deletions
  1. 4 2
      ipv4/zsys_freebsd_arm.go

+ 4 - 2
ipv4/zsys_freebsd_arm.go

@@ -44,8 +44,8 @@ const (
 	sysSizeofIPMreq         = 0x8
 	sysSizeofIPMreq         = 0x8
 	sysSizeofIPMreqn        = 0xc
 	sysSizeofIPMreqn        = 0xc
 	sysSizeofIPMreqSource   = 0xc
 	sysSizeofIPMreqSource   = 0xc
-	sysSizeofGroupReq       = 0x84
-	sysSizeofGroupSourceReq = 0x104
+	sysSizeofGroupReq       = 0x88
+	sysSizeofGroupSourceReq = 0x108
 )
 )
 
 
 type sysSockaddrStorage struct {
 type sysSockaddrStorage struct {
@@ -83,11 +83,13 @@ type sysIPMreqSource struct {
 
 
 type sysGroupReq struct {
 type sysGroupReq struct {
 	Interface uint32
 	Interface uint32
+	Pad_cgo_0 [4]byte
 	Group     sysSockaddrStorage
 	Group     sysSockaddrStorage
 }
 }
 
 
 type sysGroupSourceReq struct {
 type sysGroupSourceReq struct {
 	Interface uint32
 	Interface uint32
+	Pad_cgo_0 [4]byte
 	Group     sysSockaddrStorage
 	Group     sysSockaddrStorage
 	Source    sysSockaddrStorage
 	Source    sysSockaddrStorage
 }
 }