/external/linux-kselftest/tools/testing/selftests/bpf/ |
test_lpm_map.c | 248 key->prefixlen = value[keysize]; 260 key->prefixlen = 8 * keysize; 284 key->prefixlen = list->n_bits; 297 key->prefixlen = 8 * keysize; 355 key_ipv4->prefixlen = 16; 360 key_ipv4->prefixlen = 24; 365 key_ipv4->prefixlen = 24; 370 key_ipv4->prefixlen = 24; 375 key_ipv4->prefixlen = 23; 380 key_ipv6->prefixlen = 64 [all...] |
/frameworks/base/services/net/java/android/net/ip/ |
InterfaceController.java | 129 public boolean addAddress(InetAddress ip, int prefixLen) { 131 mNetd.interfaceAddAddress(mIfName, ip.getHostAddress(), prefixLen); 133 logError("failed to add %s/%d: %s", ip, prefixLen, e); 139 public boolean removeAddress(InetAddress ip, int prefixLen) { 141 mNetd.interfaceDelAddress(mIfName, ip.getHostAddress(), prefixLen); 143 logError("failed to remove %s/%d: %s", ip, prefixLen, e);
|
/prebuilts/go/darwin-x86/doc/codewalk/ |
markov.go | 74 // A prefix is a string of prefixLen words joined with spaces. 78 prefixLen int 81 // NewChain returns a new Chain with prefixes of prefixLen words. 82 func NewChain(prefixLen int) *Chain { 83 return &Chain{make(map[string][]string), prefixLen} 90 p := make(Prefix, c.prefixLen) 104 p := make(Prefix, c.prefixLen) 121 prefixLen := flag.Int("prefix", 2, "prefix length in words") 126 c := NewChain(*prefixLen) // Initialize a new Chain.
|
/prebuilts/go/linux-x86/doc/codewalk/ |
markov.go | 74 // A prefix is a string of prefixLen words joined with spaces. 78 prefixLen int 81 // NewChain returns a new Chain with prefixes of prefixLen words. 82 func NewChain(prefixLen int) *Chain { 83 return &Chain{make(map[string][]string), prefixLen} 90 p := make(Prefix, c.prefixLen) 104 p := make(Prefix, c.prefixLen) 121 prefixLen := flag.Int("prefix", 2, "prefix length in words") 126 c := NewChain(*prefixLen) // Initialize a new Chain.
|
/external/python/cpython3/Lib/unittest/ |
util.py | 18 def _shorten(s, prefixlen, suffixlen): 19 skip = len(s) - prefixlen - suffixlen 21 s = '%s[%d chars]%s' % (s[:prefixlen], skip, s[len(s) - suffixlen:]) 31 prefixlen = len(prefix) 34 (maxlen - prefixlen + _MIN_BEGIN_LEN + _PLACEHOLDER_LEN) 37 (maxlen - prefixlen) < _MAX_LENGTH 39 return tuple(prefix + s[prefixlen:] for s in args) 42 return tuple(prefix + _shorten(s[prefixlen:], _MIN_DIFF_LEN, _MIN_END_LEN)
|
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/Opal/OpalPasswordDxe/ |
OpalHiiCallbacks.c | 37 UINTN PrefixLen;
47 PrefixLen = StrLen(Prefix);
54 VarNameLen = PrefixLen + NameLen;
61 CopyMem(VarName, Prefix, PrefixLen * sizeof(CHAR16));
63 CopyMem(VarName + PrefixLen, Dev->Name16, NameLen * sizeof(CHAR16));
|
/external/webrtc/webrtc/base/ |
ifaddrs-android.cc | 86 int make_prefixes(struct ifaddrs* ifaddr, int family, int prefixlen) { 93 if (prefixlen > 32) { 94 prefixlen = 32; 102 if (prefixlen > 128) { 103 prefixlen = 128; 109 for (int i = 0; i < (prefixlen / 8); i++) { 113 remainder <<= (8 - prefixlen % 8);
|
/device/google/cuttlefish_common/common/vsoc/lib/ |
ril_region_view.cpp | 29 snprintf(buffer, sizeof(buffer), "%s/%d", data().ipaddr, data().prefixlen);
|
/external/icu/icu4c/source/test/intltest/ |
tsdtfmsy.h | 39 UBool UnicodeStringsArePrefixes(int32_t count, int32_t prefixLen, const UnicodeString *prefixArray, const UnicodeString *baseArray);
|
/external/wpa_supplicant_8/src/ap/ |
dhcp_snoop.c | 40 int res, msgtype = 0, prefixlen = 32; local 79 prefixlen--; 104 prefixlen); 118 prefixlen, sta->addr);
|
/prebuilts/go/darwin-x86/src/vendor/golang_org/x/net/lif/ |
address.go | 23 PrefixLen int // address prefix length 32 PrefixLen int // address prefix length 76 a := &Inet4Addr{PrefixLen: l} 80 a := &Inet6Addr{PrefixLen: l, ZoneID: int(nativeEndian.Uint32(lifr.Lifru[24:28]))}
|
/prebuilts/go/linux-x86/src/vendor/golang_org/x/net/lif/ |
address.go | 23 PrefixLen int // address prefix length 32 PrefixLen int // address prefix length 76 a := &Inet4Addr{PrefixLen: l} 80 a := &Inet6Addr{PrefixLen: l, ZoneID: int(nativeEndian.Uint32(lifr.Lifru[24:28]))}
|
/system/core/libnetutils/include/netutils/ |
ifc.h | 46 int prefixlen); 48 int prefixlen);
|
/external/icu/icu4c/source/test/cintltst/ |
nfsprep.c | 177 const char **prefix, int32_t *prefixLen, 197 *prefixLen = i; 200 if((findStringIndex(special_prefixes,UPRV_LENGTHOF(special_prefixes), *prefix, *prefixLen-1) != -1) && (*suffix != NULL)){ 214 int32_t prefixLen=0, suffixLen=0; 233 getPrefixSuffix(src, srcLength, &prefix, &prefixLen, &suffix, &suffixLen, status); 236 pLen = nfs4_prepare(prefix, prefixLen, p, pCapacity, NFS4_MIXED_PREP_PREFIX, parseError, status); 244 pLen = nfs4_prepare(prefix, prefixLen, p, pLen, NFS4_MIXED_PREP_PREFIX, parseError, status);
|
/system/netd/server/ |
NetdConstants.cpp | 85 int parsePrefix(const char *prefix, uint8_t *family, void *address, int size, uint8_t *prefixlen) { 86 if (!prefix || !family || !address || !prefixlen) { 103 *prefixlen = templen; 125 if (*prefixlen > 32) { 134 if (*prefixlen > 128) {
|
/prebuilts/go/darwin-x86/src/net/ |
interface_test.go | 200 prefixLen, maxPrefixLen := ifa.Mask.Size() 202 if 0 >= prefixLen || prefixLen > 8*IPv4len || maxPrefixLen != 8*IPv4len { 203 return nil, fmt.Errorf("unexpected prefix length: %d/%d for %#v", prefixLen, maxPrefixLen, ifa) 205 if ifa.IP.IsLoopback() && (prefixLen != 8 && prefixLen != 8*IPv4len) { // see RFC 1122 206 return nil, fmt.Errorf("unexpected prefix length: %d/%d for %#v", prefixLen, maxPrefixLen, ifa) 211 if 0 >= prefixLen || prefixLen > 8*IPv6len || maxPrefixLen != 8*IPv6len { 212 return nil, fmt.Errorf("unexpected prefix length: %d/%d for %#v", prefixLen, maxPrefixLen, ifa [all...] |
interface_solaris.go | 92 mask = CIDRMask(a.PrefixLen, 8*IPv4len) 96 mask = CIDRMask(a.PrefixLen, 8*IPv6len)
|
/prebuilts/go/linux-x86/src/net/ |
interface_test.go | 200 prefixLen, maxPrefixLen := ifa.Mask.Size() 202 if 0 >= prefixLen || prefixLen > 8*IPv4len || maxPrefixLen != 8*IPv4len { 203 return nil, fmt.Errorf("unexpected prefix length: %d/%d for %#v", prefixLen, maxPrefixLen, ifa) 205 if ifa.IP.IsLoopback() && (prefixLen != 8 && prefixLen != 8*IPv4len) { // see RFC 1122 206 return nil, fmt.Errorf("unexpected prefix length: %d/%d for %#v", prefixLen, maxPrefixLen, ifa) 211 if 0 >= prefixLen || prefixLen > 8*IPv6len || maxPrefixLen != 8*IPv6len { 212 return nil, fmt.Errorf("unexpected prefix length: %d/%d for %#v", prefixLen, maxPrefixLen, ifa [all...] |
interface_solaris.go | 92 mask = CIDRMask(a.PrefixLen, 8*IPv4len) 96 mask = CIDRMask(a.PrefixLen, 8*IPv6len)
|
/system/core/libnetutils/ |
ifc_utils.c | 257 int prefixlen) { 316 req.r.ifa_prefixlen = prefixlen; 332 ((struct in_addr *)addr)->s_addr |= htonl((1<<(32-prefixlen))-1); 365 int ifc_add_address(const char *name, const char *address, int prefixlen) { 366 return ifc_act_on_address(RTM_NEWADDR, name, address, prefixlen); 369 int ifc_del_address(const char *name, const char * address, int prefixlen) { 370 return ifc_act_on_address(RTM_DELADDR, name, address, prefixlen); 378 unsigned int prefixlen; local 389 rawaddrstr, &prefixlen, ifname) == 3) { 410 ret = ifc_del_address(ifname, addrstr, prefixlen); [all...] |
/device/google/cuttlefish_common/common/vsoc/shm/ |
ril_layout.h | 34 uint32_t prefixlen; member in struct:vsoc::layout::ril::RilLayout
|
/external/android-clat/ |
clatd.conf | 9 # other addresses in the prefix of length ipv4_local prefixlen that contains
|
config.h | 45 in_addr_t config_select_ipv4_address(const struct in_addr *ip, int16_t prefixlen);
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/number/ |
CurrencySpacingEnabledModifier.java | 92 public static int applyCurrencySpacing(NumberStringBuilder output, int prefixStart, int prefixLen, int suffixStart, 95 boolean hasPrefix = (prefixLen > 0); 97 boolean hasNumber = (suffixStart - prefixStart - prefixLen > 0); // could be empty string 99 length += applyCurrencySpacingAffix(output, prefixStart + prefixLen, PREFIX, symbols);
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/ |
CurrencySpacingEnabledModifier.java | 90 public static int applyCurrencySpacing(NumberStringBuilder output, int prefixStart, int prefixLen, int suffixStart, 93 boolean hasPrefix = (prefixLen > 0); 95 boolean hasNumber = (suffixStart - prefixStart - prefixLen > 0); // could be empty string 97 length += applyCurrencySpacingAffix(output, prefixStart + prefixLen, PREFIX, symbols);
|