- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 625 for addr (0.17 sec)
-
cmd/net.go
logger.FatalIf(err, "Unable to get IP addresses of this host") for _, interf := range ifs { addrs, err := interf.Addrs() if err != nil { continue } if runtime.GOOS == "windows" && interf.Flags&net.FlagUp == 0 { continue } for _, addr := range addrs { var ip net.IP switch v := addr.(type) { case *net.IPNet: ip = v.IP case *net.IPAddr: ip = v.IP }
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Tue Mar 26 15:00:38 GMT 2024 - 9.3K bytes - Viewed (0) -
src/cmd/asm/internal/asm/asm.go
p.errorf("%s: expected immediate constant; found %s", op, obj.Dconv(prog, addr)) } return addr.Offset } // getRegister checks that addr represents a register and returns its value. func (p *Parser) getRegister(prog *obj.Prog, op obj.As, addr *obj.Addr) int16 { if addr.Type != obj.TYPE_REG || addr.Offset != 0 || addr.Name != 0 || addr.Index != 0 {
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Wed Feb 21 14:34:57 GMT 2024 - 25.3K bytes - Viewed (0) -
internal/handlers/proxy.go
raddr, _, _ := net.SplitHostPort(addr) if raddr == "" { return addr } return raddr } // GetSourceIP retrieves the IP from the request headers // and falls back to r.RemoteAddr when necessary. func GetSourceIP(r *http.Request) string { addr := GetSourceIPRaw(r) if strings.ContainsRune(addr, ':') { return "[" + addr + "]" } return addr
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Fri Dec 22 00:56:55 GMT 2023 - 5.1K bytes - Viewed (0) -
cni/pkg/ipset/nldeps_unspecified.go
return errors.New("not implemented on this platform") } func (m *realDeps) clearEntriesWithIP(name string, ip netip.Addr) error { return errors.New("not implemented on this platform") } func (m *realDeps) listEntriesByIP(name string) ([]netip.Addr, error) { return []netip.Addr{}, errors.New("not implemented on this platform")
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Tue Apr 30 22:24:38 GMT 2024 - 1.8K bytes - Viewed (0) -
istioctl/pkg/writer/envoy/configdump/endpoint.go
} func retrieveEndpointAddress(ep *endpoint.LbEndpoint) string { addr := ep.GetEndpoint().GetAddress() if addr := addr.GetSocketAddress(); addr != nil { return addr.Address + ":" + strconv.Itoa(int(addr.GetPortValue())) } if addr := addr.GetPipe(); addr != nil { return addr.GetPath() } if internal := addr.GetEnvoyInternalAddress(); internal != nil { switch an := internal.GetAddressNameSpecifier().(type) {
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Sun Apr 21 17:42:54 GMT 2024 - 5.6K bytes - Viewed (0) -
cni/pkg/ipset/nldeps_mock.go
return args.Error(0) } func (m *MockedIpsetDeps) clearEntriesWithIP(name string, ip netip.Addr) error { args := m.Called(name, ip) return args.Error(0) } func (m *MockedIpsetDeps) listEntriesByIP(name string) ([]netip.Addr, error) { args := m.Called(name) return args.Get(0).([]netip.Addr), args.Error(1)
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Tue Apr 30 22:24:38 GMT 2024 - 1.8K bytes - Viewed (0) -
internal/http/listener.go
} return nil } // Addr - net.Listener interface compatible method returns net.Addr. In case of multiple TCP listeners, it returns '0.0.0.0' as IP address. func (listener *httpListener) Addr() (addr net.Addr) { addr = listener.tcpListeners[0].Addr() if len(listener.tcpListeners) == 1 { return addr } tcpAddr := addr.(*net.TCPAddr) if ip := net.ParseIP("0.0.0.0"); ip != nil {
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Fri Mar 01 16:00:42 GMT 2024 - 5.8K bytes - Viewed (0) -
src/cmd/asm/internal/asm/parse.go
p.addr = p.addr[0:0] p.isJump = p.arch.IsJump(word) for _, op := range operands { addr := p.address(op) if !p.isJump && addr.Reg < 0 { // Jumps refer to PC, a pseudo. p.errorf("illegal use of pseudo-register in %s", word) } p.addr = append(p.addr, addr) } if p.isJump { p.asmJump(op, cond, p.addr) return } p.asmInstruction(op, cond, p.addr)
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Wed Feb 21 14:34:57 GMT 2024 - 36.9K bytes - Viewed (0) -
cni/pkg/ipset/ipset.go
destroySet(name string) error addIP(name string, ip netip.Addr, ipProto uint8, comment string, replace bool) error deleteIP(name string, ip netip.Addr, ipProto uint8) error flush(name string) error clearEntriesWithComment(name string, comment string) error clearEntriesWithIP(name string, ip netip.Addr) error listEntriesByIP(name string) ([]netip.Addr, error) }
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Tue Apr 30 22:24:38 GMT 2024 - 3.9K bytes - Viewed (0) -
cni/pkg/nodeagent/net_test.go
ObjectMeta: metav1.ObjectMeta{ Name: "foo", Namespace: "bar", UID: "123", }, Spec: corev1.PodSpec{ServiceAccountName: "sa"}, } // this is usually called after add. so manually add the pod uid for now fakens := newFakeNs(123) closed := fakens.closed workload := WorkloadInfo{ Workload: podToWorkload(pod), Netns: fakens, }
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Tue Apr 30 22:24:38 GMT 2024 - 16.4K bytes - Viewed (0)