- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 39 for net_len (0.23 sec)
-
common/scripts/kind_provisioner.sh
from ipaddress import ip_network, IPv6Network; from itertools import islice; net = ip_network('$CIDR') net_bits = 128 if type(net) == IPv6Network else 32; net_len = pow(2, net_bits - net.prefixlen) start, end = int(net_len / 4 * 3), net_len if net_len > 2000: start, end = 1000, 2000 [print(str(ip) + "/" + str(ip.max_prefixlen)) for ip in islice(ip_network('$CIDR').hosts(), start, end)] EOF }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 08 19:12:55 UTC 2024 - 17.3K bytes - Viewed (0) -
cmd/metacache-set_gen.go
Anis Eleuch <******@****.***> 1710879792 +0100
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Tue Mar 19 20:23:12 UTC 2024 - 13.8K bytes - Viewed (0) -
src/syscall/syscall_aix.go
} func (sa *RawSockaddrUnix) setLen(n int) { sa.Len = uint8(3 + n) // 2 for Family, Len; 1 for NUL. } func (sa *SockaddrUnix) sockaddr() (unsafe.Pointer, _Socklen, error) { name := sa.Name n := len(name) if n > len(sa.raw.Path) { return nil, 0, EINVAL } sa.raw.Family = AF_UNIX sa.raw.setLen(n) for i := 0; i < n; i++ { sa.raw.Path[i] = uint8(name[i]) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 13:50:55 UTC 2024 - 17.9K bytes - Viewed (0) -
src/runtime/slice.go
// // A new backing store is allocated with space for at least newLen elements. // Existing entries [0, oldLen) are copied over to the new backing store. // Added entries [oldLen, newLen) are not initialized by growslice // (although for pointer-containing element types, they are zeroed). They // must be initialized by the caller. // Trailing entries [newLen, newCap) are zeroed. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 12.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/sockcmsg_zos.go
h.Level = SOL_IP h.Type = IP_PKTINFO h.SetLen(CmsgLen(SizeofInet4Pktinfo)) *(*Inet4Pktinfo)(h.data(0)) = *info return b } // PktInfo6 encodes Inet6Pktinfo into a socket control message of type IPV6_PKTINFO. func PktInfo6(info *Inet6Pktinfo) []byte { b := make([]byte, CmsgSpace(SizeofInet6Pktinfo)) h := (*Cmsghdr)(unsafe.Pointer(&b[0])) h.Level = SOL_IPV6 h.Type = IPV6_PKTINFO h.SetLen(CmsgLen(SizeofInet6Pktinfo))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 16:12:58 UTC 2024 - 1.7K bytes - Viewed (0) -
src/cmd/compile/internal/walk/assign.go
num := ir.NewUnaryExpr(base.Pos, ir.OLEN, l2) // newLen := oldLen + num newLen := typecheck.TempAt(base.Pos, ir.CurFunc, types.Types[types.TINT]) nodes.Append(ir.NewAssignStmt(base.Pos, newLen, ir.NewBinaryExpr(base.Pos, ir.OADD, oldLen, num))) // if uint(newLen) <= uint(oldCap) nif := ir.NewIfStmt(base.Pos, nil, nil, nil) nuint := typecheck.Conv(newLen, types.Types[types.TUINT])
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:09:06 UTC 2024 - 20.3K bytes - Viewed (0) -
src/internal/poll/writev.go
if len(chunk) == 0 { continue } iovecs = append(iovecs, newIovecWithBase(&chunk[0])) if fd.IsStream && len(chunk) > 1<<30 { iovecs[len(iovecs)-1].SetLen(1 << 30) break // continue chunk on next writev } iovecs[len(iovecs)-1].SetLen(len(chunk)) if len(iovecs) == maxVec { break } } if len(iovecs) == 0 { break } if fd.iovecs == nil { fd.iovecs = new([]syscall.Iovec)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 27 18:23:49 UTC 2024 - 1.8K bytes - Viewed (0) -
pkg/proxy/util/nfacct/nfacct_linux.go
// } // // struct nlattr{ // __u16 nla_len: 13 // __u16 nla_type: NFACCT_NAME // char data: dummy-metric\0 // } // // (padding:) // data: \0\0\0 // // struct nlattr{ // __u16 nla_len: 12 // __u16 nla_type: NFACCT_PKTS // __u64: data: 123 // } // // struct nlattr{ // __u16 nla_len: 12
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Apr 27 06:47:50 UTC 2024 - 9.2K bytes - Viewed (0) -
src/internal/coverage/cfile/emit.go
func (s *emitState) openMetaFile(metaHash [16]byte, metaLen uint64) error { // Open meta-outfile for reading to see if it exists. fn := fmt.Sprintf("%s.%x", coverage.MetaFilePref, metaHash) s.mfname = filepath.Join(s.outdir, fn) fi, err := os.Stat(s.mfname) if err != nil || fi.Size() != int64(metaLen) { // We need a new meta-file.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 09:57:47 UTC 2024 - 18.9K bytes - Viewed (0) -
tests/test_path.py
"detail": [ { "loc": ["path", "item_id"], "msg": "ensure this value is less than or equal to 3", "type": "value_error.number.not_le", "ctx": {"limit_value": 3}, } ] } ) def test_path_param_le_3(): response = client.get("/path/param-le/3")
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 34.4K bytes - Viewed (0)