Browse Source

ipv6: fix multicast socket options on freebsd/arm

The ARM EABI requires 8-byte stack alignment.

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

+ 4 - 2
ipv6/zsys_freebsd_arm.go

@@ -68,8 +68,8 @@ const (
 	sysSizeofIPv6Mtuinfo     = 0x20
 
 	sysSizeofIPv6Mreq       = 0x14
-	sysSizeofGroupReq       = 0x84
-	sysSizeofGroupSourceReq = 0x104
+	sysSizeofGroupReq       = 0x88
+	sysSizeofGroupSourceReq = 0x108
 
 	sysSizeofICMPv6Filter = 0x20
 )
@@ -108,11 +108,13 @@ type sysIPv6Mreq struct {
 
 type sysGroupReq struct {
 	Interface uint32
+	Pad_cgo_0 [4]byte
 	Group     sysSockaddrStorage
 }
 
 type sysGroupSourceReq struct {
 	Interface uint32
+	Pad_cgo_0 [4]byte
 	Group     sysSockaddrStorage
 	Source    sysSockaddrStorage
 }