- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 72 for ipAddrs (0.18 sec)
-
src/net/iprawsock.go
// BUG(mikio): On Windows, the File method of IPConn is not // implemented. // IPAddr represents the address of an IP end point. type IPAddr struct { IP IP Zone string // IPv6 scoped addressing zone } // Network returns the address's network name, "ip". func (a *IPAddr) Network() string { return "ip" } func (a *IPAddr) String() string { if a == nil { return "<nil>" } ip := ipEmptyString(a.IP)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 7.1K bytes - Viewed (0) -
test/escape_slice.go
} func setupTestData() { resolveIPAddrTests = append(resolveIPAddrTests, []resolveIPAddrTest{ // ERROR "\[\]resolveIPAddrTest{...} does not escape" {"ip", "localhost", &IPAddr{IP: IPv4(127, 0, 0, 1)}, // ERROR "&IPAddr{...} escapes to heap" nil}, {"ip4", "localhost", &IPAddr{IP: IPv4(127, 0, 0, 1)}, // ERROR "&IPAddr{...} escapes to heap" nil},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 18:50:24 UTC 2023 - 3.9K bytes - Viewed (0) -
hack/run-prometheus-on-etcd-scrapes.sh
} trap cleanup_prom EXIT chmod +r "$CONFIG" "$UNPACKDIR" tar xzf "$scrapes_file" -C "$UNPACKDIR" if which ip > /dev/null; then IPADDR=$(ip addr show scope global up | grep -w inet | head -1 | awk '{ print $2 }' | awk -F/ '{ print $1 }') else IPADDR=$(ifconfig | grep -w inet | grep -Fv 127.0.0. | head -1 | awk '{ print $2 }' | awk -F/ '{ print $1 }') fi echo
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 08 20:28:05 UTC 2021 - 2.9K bytes - Viewed (0) -
src/net/addrselect_test.go
"reflect" "testing" ) func TestSortByRFC6724(t *testing.T) { tests := []struct { in []IPAddr srcs []netip.Addr want []IPAddr reverse bool // also test it starting backwards }{ // Examples from RFC 6724 section 10.2: // Prefer matching scope. { in: []IPAddr{ {IP: ParseIP("2001:db8:1::1")}, {IP: ParseIP("198.51.100.121")}, }, srcs: []netip.Addr{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 05 07:16:00 UTC 2022 - 8.5K bytes - Viewed (0) -
src/cmd/fix/netipv6zone_test.go
In: `package main import "net" func f() net.Addr { a := &net.IPAddr{ip1} sub(&net.UDPAddr{ip2, 12345}) c := &net.TCPAddr{IP: ip3, Port: 54321} d := &net.TCPAddr{ip4, 0} p := 1234 e := &net.TCPAddr{ip4, p} return &net.TCPAddr{ip5}, nil } `, Out: `package main import "net" func f() net.Addr { a := &net.IPAddr{IP: ip1} sub(&net.UDPAddr{IP: ip2, Port: 12345})
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 23:34:33 UTC 2016 - 837 bytes - Viewed (0) -
src/net/interface_windows.go
return nil, os.NewSyscallError("sockaddr", err) } switch sa := sa.(type) { case *syscall.SockaddrInet4: ifat = append(ifat, &IPAddr{IP: IPv4(sa.Addr[0], sa.Addr[1], sa.Addr[2], sa.Addr[3])}) case *syscall.SockaddrInet6: ifa := &IPAddr{IP: make(IP, IPv6len)} copy(ifa.IP, sa.Addr[:]) ifat = append(ifat, ifa) } } } } return ifat, nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 15 10:25:02 UTC 2024 - 5.5K bytes - Viewed (0) -
src/net/ipsock.go
// and ipv6only. It returns every address when the filter is nil. // The result contains at least one address when error is nil. func filterAddrList(filter func(IPAddr) bool, ips []IPAddr, inetaddr func(IPAddr) Addr, originalAddr string) (addrList, error) { var addrs addrList for _, ip := range ips { if filter == nil || filter(ip) { addrs = append(addrs, inetaddr(ip)) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 9.4K bytes - Viewed (0) -
security/pkg/server/ca/server_test.go
} mockCertChain := []string{"cert", "cert_chain", "root_cert"} mockIPAddr := &net.IPAddr{IP: net.IPv4(192, 168, 1, 1)} testCerts := map[string]struct { certChain [][]*x509.Certificate caller *security.Caller fakeAuthInfo *mockAuthInfo code codes.Code ipAddr *net.IPAddr }{ // no client certificate is presented "No client certificate": { certChain: nil,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Feb 28 16:41:38 UTC 2024 - 15.8K bytes - Viewed (0) -
src/net/hook.go
testHookDialTCP func(ctx context.Context, net string, laddr, raddr *TCPAddr) (*TCPConn, error) testHookLookupIP = func( ctx context.Context, fn func(context.Context, string, string) ([]IPAddr, error), network string, host string, ) ([]IPAddr, error) { return fn(ctx, network, host) } testPreHookSetKeepAlive = func(*netFD) {} testHookSetKeepAlive = func(KeepAliveConfig) {}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 20 06:04:31 UTC 2024 - 934 bytes - Viewed (0) -
src/cmd/fix/netipv6zone.go
package main import "go/ast" func init() { register(netipv6zoneFix) } var netipv6zoneFix = fix{ name: "netipv6zone", date: "2012-11-26", f: netipv6zone, desc: `Adapt element key to IPAddr, UDPAddr or TCPAddr composite literals. https://codereview.appspot.com/6849045/ `, } func netipv6zone(f *ast.File) bool { if !imports(f, "net") { return false } fixed := false
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 1.3K bytes - Viewed (0)