Source file src/pkg/net/cgo_linux.go
1 // Copyright 2011 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 5 package net 6 7 /* 8 #include <netdb.h> 9 */ 10 import "C" 11 12 func cgoAddrInfoMask() C.int { 13 return C.AI_CANONNAME | C.AI_V4MAPPED | C.AI_ALL 14 }