Mikio Hara | b1072ec | 2014-09-18 20:22:18 +0900 | [diff] [blame] | 1 | // Copyright 2014 The Go Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
Russ Cox | 5f55cee | 2021-02-19 18:54:43 -0500 | [diff] [blame] | 5 | //go:build ignore |
Mikio Hara | b1072ec | 2014-09-18 20:22:18 +0900 | [diff] [blame] | 6 | |
| 7 | // +godefs map struct_in_addr [4]byte /* in_addr */ |
| 8 | |
| 9 | package ipv4 |
| 10 | |
| 11 | /* |
| 12 | #include <netinet/in.h> |
| 13 | */ |
| 14 | import "C" |
| 15 | |
| 16 | const ( |
Mikio Hara | a14f429 | 2016-10-07 12:20:41 +0900 | [diff] [blame] | 17 | sizeofIPMreq = C.sizeof_struct_ip_mreq |
Mikio Hara | b1072ec | 2014-09-18 20:22:18 +0900 | [diff] [blame] | 18 | ) |
| 19 | |
Mikio Hara | a14f429 | 2016-10-07 12:20:41 +0900 | [diff] [blame] | 20 | type ipMreq C.struct_ip_mreq |