]> Cypherpunks repositories - gostls13.git/commitdiff
syscall: add if_announce support for netbsd
authorMikio Hara <mikioh.mikioh@gmail.com>
Sun, 24 Feb 2013 03:06:24 +0000 (12:06 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Sun, 24 Feb 2013 03:06:24 +0000 (12:06 +0900)
Update #4866.

R=golang-dev, bradfitz, dave
CC=golang-dev
https://golang.org/cl/7382052

src/pkg/syscall/types_netbsd.go
src/pkg/syscall/zerrors_netbsd_386.go
src/pkg/syscall/zerrors_netbsd_amd64.go
src/pkg/syscall/zerrors_netbsd_arm.go
src/pkg/syscall/ztypes_netbsd_386.go
src/pkg/syscall/ztypes_netbsd_amd64.go
src/pkg/syscall/ztypes_netbsd_arm.go

index 5d3018ee59a51fbc3e4604e33c2ccef6b22e8ba7..4906a99ef69ba409e0eca65d1c05ec68cd24ed61 100644 (file)
@@ -171,11 +171,12 @@ type FdSet C.fd_set
 // Routing and interface messages
 
 const (
-       SizeofIfMsghdr  = C.sizeof_struct_if_msghdr
-       SizeofIfData    = C.sizeof_struct_if_data
-       SizeofIfaMsghdr = C.sizeof_struct_ifa_msghdr
-       SizeofRtMsghdr  = C.sizeof_struct_rt_msghdr
-       SizeofRtMetrics = C.sizeof_struct_rt_metrics
+       SizeofIfMsghdr         = C.sizeof_struct_if_msghdr
+       SizeofIfData           = C.sizeof_struct_if_data
+       SizeofIfaMsghdr        = C.sizeof_struct_ifa_msghdr
+       SizeofIfAnnounceMsghdr = C.sizeof_struct_if_announcemsghdr
+       SizeofRtMsghdr         = C.sizeof_struct_rt_msghdr
+       SizeofRtMetrics        = C.sizeof_struct_rt_metrics
 )
 
 type IfMsghdr C.struct_if_msghdr
@@ -184,6 +185,8 @@ type IfData C.struct_if_data
 
 type IfaMsghdr C.struct_ifa_msghdr
 
+type IfAnnounceMsghdr C.struct_if_announcemsghdr
+
 type RtMsghdr C.struct_rt_msghdr
 
 type RtMetrics C.struct_rt_metrics
index 3a5967c7f02f1c1a25f924109a9a6d08a813493e..68051f9f8af938f2ed8566a84ce79f0ba9bac685 100644 (file)
@@ -572,6 +572,8 @@ const (
        ICANON                            = 0x100
        ICRNL                             = 0x100
        IEXTEN                            = 0x400
+       IFAN_ARRIVAL                      = 0x0
+       IFAN_DEPARTURE                    = 0x1
        IFA_ROUTE                         = 0x1
        IFF_ALLMULTI                      = 0x200
        IFF_BROADCAST                     = 0x2
index 42623f0cb8b8cd80397404d267dee8ef2ffe2cc7..f719528a7f1a761c7fe15e6266d6061f43bd0a0d 100644 (file)
@@ -562,6 +562,8 @@ const (
        ICANON                            = 0x100
        ICRNL                             = 0x100
        IEXTEN                            = 0x400
+       IFAN_ARRIVAL                      = 0x0
+       IFAN_DEPARTURE                    = 0x1
        IFA_ROUTE                         = 0x1
        IFF_ALLMULTI                      = 0x200
        IFF_BROADCAST                     = 0x2
index fa5cbedfa7bb7056947d272a7c79d63128b2bed6..3899f6ba638a9f9515a4017d3e25bbe96b5dbb07 100644 (file)
@@ -562,6 +562,8 @@ const (
        ICANON                            = 0x100
        ICRNL                             = 0x100
        IEXTEN                            = 0x400
+       IFAN_ARRIVAL                      = 0x0
+       IFAN_DEPARTURE                    = 0x1
        IFA_ROUTE                         = 0x1
        IFF_ALLMULTI                      = 0x200
        IFF_BROADCAST                     = 0x2
index 69ed13939d2330e7195ebc1487de36efa6f7defc..dd9cf221a2305a78d10b56608862adf057abe376 100644 (file)
@@ -219,11 +219,12 @@ type FdSet struct {
 }
 
 const (
-       SizeofIfMsghdr  = 0x98
-       SizeofIfData    = 0x84
-       SizeofIfaMsghdr = 0x18
-       SizeofRtMsghdr  = 0x78
-       SizeofRtMetrics = 0x50
+       SizeofIfMsghdr         = 0x98
+       SizeofIfData           = 0x84
+       SizeofIfaMsghdr        = 0x18
+       SizeofIfAnnounceMsghdr = 0x18
+       SizeofRtMsghdr         = 0x78
+       SizeofRtMetrics        = 0x50
 )
 
 type IfMsghdr struct {
@@ -272,6 +273,15 @@ type IfaMsghdr struct {
        Pad_cgo_0 [6]byte
 }
 
+type IfAnnounceMsghdr struct {
+       Msglen  uint16
+       Version uint8
+       Type    uint8
+       Index   uint16
+       Name    [16]int8
+       What    uint16
+}
+
 type RtMsghdr struct {
        Msglen    uint16
        Version   uint8
index b6795ed5f06f7642b22f285a01938c90a884f76c..89d1ef8168d5795271d9adb5e0bfdb2c8ebaf086 100644 (file)
@@ -226,11 +226,12 @@ type FdSet struct {
 }
 
 const (
-       SizeofIfMsghdr  = 0x98
-       SizeofIfData    = 0x88
-       SizeofIfaMsghdr = 0x18
-       SizeofRtMsghdr  = 0x78
-       SizeofRtMetrics = 0x50
+       SizeofIfMsghdr         = 0x98
+       SizeofIfData           = 0x88
+       SizeofIfaMsghdr        = 0x18
+       SizeofIfAnnounceMsghdr = 0x18
+       SizeofRtMsghdr         = 0x78
+       SizeofRtMetrics        = 0x50
 )
 
 type IfMsghdr struct {
@@ -278,6 +279,15 @@ type IfaMsghdr struct {
        Pad_cgo_0 [6]byte
 }
 
+type IfAnnounceMsghdr struct {
+       Msglen  uint16
+       Version uint8
+       Type    uint8
+       Index   uint16
+       Name    [16]int8
+       What    uint16
+}
+
 type RtMsghdr struct {
        Msglen    uint16
        Version   uint8
index 69ed13939d2330e7195ebc1487de36efa6f7defc..dd9cf221a2305a78d10b56608862adf057abe376 100644 (file)
@@ -219,11 +219,12 @@ type FdSet struct {
 }
 
 const (
-       SizeofIfMsghdr  = 0x98
-       SizeofIfData    = 0x84
-       SizeofIfaMsghdr = 0x18
-       SizeofRtMsghdr  = 0x78
-       SizeofRtMetrics = 0x50
+       SizeofIfMsghdr         = 0x98
+       SizeofIfData           = 0x84
+       SizeofIfaMsghdr        = 0x18
+       SizeofIfAnnounceMsghdr = 0x18
+       SizeofRtMsghdr         = 0x78
+       SizeofRtMetrics        = 0x50
 )
 
 type IfMsghdr struct {
@@ -272,6 +273,15 @@ type IfaMsghdr struct {
        Pad_cgo_0 [6]byte
 }
 
+type IfAnnounceMsghdr struct {
+       Msglen  uint16
+       Version uint8
+       Type    uint8
+       Index   uint16
+       Name    [16]int8
+       What    uint16
+}
+
 type RtMsghdr struct {
        Msglen    uint16
        Version   uint8