Search Options

Results per page
Sort
Preferred Languages
Advance

Results 301 - 310 of 704 for switch_b (0.17 sec)

  1. cmd/net.go

    		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
    			}
    
    			ipList = append(ipList, ip)
    		}
    	}
    
    	return ipList
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jun 19 14:34:00 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  2. cmd/signature-v4-utils.go

    	}
    
    	// Skip if no header was set.
    	if !ok {
    		return true
    	}
    
    	// If x-amz-content-sha256 is set and the value is not
    	// 'UNSIGNED-PAYLOAD' we should validate the content sha256.
    	switch v[0] {
    	case unsignedPayload, unsignedPayloadTrailer:
    		return true
    	case emptySHA256:
    		// some broken clients set empty-sha256
    		// with > 0 content-length in the body,
    		// we should skip such clients and allow
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  3. docs/debugging/pprofgoparser/main.go

    	ret := make(map[time.Duration][]string)
    
    	s := bufio.NewScanner(f)
    	s.Split(bufio.ScanLines)
    
    	var (
    		t            time.Duration
    		skip, record bool
    	)
    
    	for s.Scan() {
    		line := s.Text()
    		switch {
    		case skip && line != "":
    		case skip && line == "":
    			skip = false
    		case record && line == "":
    			stackTrace := bf.String()
    			reset()
    			record = false
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Mar 06 11:43:16 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  4. internal/s3select/jstream/scanner_test.go

    			benchmarkBufioReader(largeInput)
    		}
    	})
    }
    
    func benchmarkBufioReader(b []byte) {
    	br := bufio.NewReader(bytes.NewReader(b))
    loop:
    	for {
    		_, err := br.ReadByte()
    		switch err {
    		case nil:
    			continue loop
    		case io.EOF:
    			break loop
    		default:
    			panic(err)
    		}
    	}
    }
    
    func BenchmarkScanner(b *testing.B) {
    	b.Run("small", func(b *testing.B) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 23 19:35:41 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/pac/PacMac.java

            }
            finally {
                Arrays.fill(dk, 0, dk.length, (byte) 0);
            }
        }
    
    
        private static int mapArcfourMD5KeyUsage ( int keyusage ) {
            int ms_usage = keyusage;
            switch ( ms_usage ) {
            case 3:
                ms_usage = 8;
            case 9:
                ms_usage = 8;
            case 23:
                ms_usage = 13;
            }
            return ms_usage;
        }
    
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 7K bytes
    - Viewed (0)
  6. internal/handlers/forwarder.go

    type headerRewriter struct{}
    
    // Clean up IP in case if it is ipv6 address and it has {zone} information in it, like
    // "[fe80::d806:a55d:eb1b:49cc%vEthernet (vmxnet3 Ethernet Adapter - Virtual Switch)]:64692"
    func ipv6fix(clientIP string) string {
    	return strings.Split(clientIP, "%")[0]
    }
    
    func (rw *headerRewriter) Rewrite(req *http.Request) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 07 05:42:10 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  7. internal/event/target/kafka_scram_client_contrib.go

    import (
    	"crypto/sha512"
    	"strings"
    
    	"github.com/IBM/sarama"
    	"github.com/xdg/scram"
    
    	"github.com/minio/minio/internal/hash/sha256"
    )
    
    func initScramClient(args KafkaArgs, config *sarama.Config) {
    	switch strings.ToLower(args.SASL.Mechanism) {
    	case "sha512":
    		config.Net.SASL.SCRAMClientGeneratorFunc = func() sarama.SCRAMClient { return &XDGSCRAMClient{HashGeneratorFcn: KafkaSHA512} }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Nov 09 04:04:01 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  8. internal/logger/target/kafka/kafka_scram_client_contrib.go

    import (
    	"crypto/sha512"
    	"strings"
    
    	"github.com/IBM/sarama"
    	"github.com/xdg/scram"
    
    	"github.com/minio/minio/internal/hash/sha256"
    )
    
    func initScramClient(cfg Config, config *sarama.Config) {
    	switch strings.ToLower(cfg.SASL.Mechanism) {
    	case "sha512":
    		config.Net.SASL.SCRAMClientGeneratorFunc = func() sarama.SCRAMClient { return &XDGSCRAMClient{HashGeneratorFcn: KafkaSHA512} }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Nov 09 04:04:01 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  9. src/main/java/jcifs/spnego/NegTokenTarg.java

                Enumeration<?> fields = sequence.getObjects();
                while ( fields.hasMoreElements() ) {
                    tagged = (ASN1TaggedObject) fields.nextElement();
                    switch ( tagged.getTagNo() ) {
                    case 0:
                        ASN1Enumerated enumerated = ASN1Enumerated.getInstance(tagged, true);
                        setResult(enumerated.getValue().intValue());
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Mon Jan 04 04:18:31 UTC 2021
    - 5.4K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/Smb2SigningDigest.java

         * 
         */
        public Smb2SigningDigest ( byte[] sessionKey, int dialect, byte[] preauthIntegrityHash ) throws GeneralSecurityException {
            Mac m;
            byte[] signingKey;
            switch ( dialect ) {
            case Smb2Constants.SMB2_DIALECT_0202:
            case Smb2Constants.SMB2_DIALECT_0210:
                m = Mac.getInstance("HmacSHA256");
                signingKey = sessionKey;
                break;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Aug 17 17:34:29 UTC 2021
    - 4.9K bytes
    - Viewed (0)
Back to top