Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for GetDestinationPort (0.24 sec)

  1. pilot/test/xdstest/validate.go

    	for _, fc := range l.FilterChains {
    		if fc.GetFilterChainMatch().GetDestinationPort() != nil {
    			destPorts.Insert(fc.GetFilterChainMatch().GetDestinationPort().GetValue())
    		}
    	}
    	for p := range destPorts {
    		hasTLSInspector := false
    		for _, fc := range l.FilterChains {
    			if p == fc.GetFilterChainMatch().GetDestinationPort().GetValue() && fc.GetFilterChainMatch().GetTransportProtocol() != "" {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 17:09:02 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  2. pilot/pkg/networking/core/listenertest/match.go

    						continue
    					}
    					haveType := classifyFilterChain(have)
    					if want.Type != "" && want.Type != haveType {
    						continue
    					}
    					if want.Port != 0 && want.Port != have.GetFilterChainMatch().GetDestinationPort().GetValue() {
    						continue
    					}
    					found++
    					VerifyFilterChain(t, have, want)
    				}
    				if found == 0 {
    					t.Fatalf("No matching chain found for %+v", want)
    				}
    				if found > 1 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  3. pilot/pkg/simulation/traffic.go

    	input Call, hasTLSInspector bool,
    ) (*listener.FilterChain, error) {
    	chains = filter("DestinationPort", chains, func(fc *listener.FilterChainMatch) bool {
    		return fc.GetDestinationPort() == nil
    	}, func(fc *listener.FilterChainMatch) bool {
    		return int(fc.GetDestinationPort().GetValue()) == input.Port
    	})
    	chains = filter("PrefixRanges", chains, func(fc *listener.FilterChainMatch) bool {
    		return fc.GetPrefixRanges() == nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  4. pilot/pkg/networking/core/envoyfilter/listener_patch.go

    	// we will handle this in the proper listener match.
    	if isVirtual && lMatch.GetPortNumber() > 0 && fc.GetFilterChainMatch().GetDestinationPort().GetValue() != lMatch.GetPortNumber() {
    		return false
    	}
    
    	match := lMatch.FilterChain
    	if match == nil {
    		return true
    	}
    	if match.Name != "" {
    		if match.Name != fc.Name {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 17 15:39:29 UTC 2024
    - 26.7K bytes
    - Viewed (0)
  5. pilot/pkg/networking/core/listener_inbound.go

    	}
    
    	// inspectors builds up a map of port -> required inspectors (TLS/HTTP)
    	inspectors := map[int]enabledInspector{}
    	for _, fc := range vi.FilterChains {
    		port := fc.GetFilterChainMatch().GetDestinationPort().GetValue()
    		needsTLS := fc.GetFilterChainMatch().GetTransportProtocol() == xdsfilters.TLSTransportProtocol
    		needHTTP := false
    		for _, ap := range fc.GetFilterChainMatch().GetApplicationProtocols() {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 35.1K bytes
    - Viewed (0)
  6. pilot/pkg/networking/core/listener_test.go

    	for _, l := range listeners {
    		if port == l.Address.GetSocketAddress().GetPortValue() {
    			return true
    		}
    		for _, fc := range l.GetFilterChains() {
    			if fc.GetFilterChainMatch().GetDestinationPort().GetValue() == port {
    				return true
    			}
    		}
    	}
    
    	return false
    }
    
    func findListenerByPort(listeners []*listener.Listener, port uint32) *listener.Listener {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 93.6K bytes
    - Viewed (0)
Back to top