Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for isUsingMPTCPProto (0.88 sec)

  1. src/net/mptcpsock_linux.go

    	return err == syscall.EOPNOTSUPP || err == syscall.ENOPROTOOPT
    }
    
    // isUsingMPTCPProto reports whether the socket protocol is MPTCP.
    //
    // Compared to hasFallenBack method, here only the socket protocol being used is
    // checked: it can be MPTCP but it doesn't mean MPTCP is used on the wire, maybe
    // a fallback to TCP has been done.
    func isUsingMPTCPProto(fd *netFD) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 18:48:34 UTC 2023
    - 4K bytes
    - Viewed (0)
  2. src/net/mptcpsock_linux_test.go

    		ch <- err
    		return
    	}
    
    	if !mptcp {
    		ch <- errors.New("incoming connection is not with MPTCP")
    		return
    	}
    
    	// Also check the method for the older kernels if not tested before
    	if hasSOLMPTCP && !isUsingMPTCPProto(tcp.fd) {
    		ch <- errors.New("incoming connection is not an MPTCP proto")
    		return
    	}
    }
    
    func dialerMPTCP(t *testing.T, addr string, envVar bool) {
    	d := &Dialer{}
    
    	if envVar {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 11 00:36:57 UTC 2023
    - 4.1K bytes
    - Viewed (0)
Back to top