Home
last modified time | relevance | path

Searched refs:pfxlen (Results 1 – 3 of 3) sorted by relevance

/external/iproute2/ip/
Difcfg68 pfxlen=
72 pfxlen=${1#*/}
83 if [ "$pfxlen" != "" -a "$pfxlen" != "32" ]; then
93 if [ "$pfxlen" = "" ]; then
95 pfxlen=$?
97 pfx="$ipaddr/$pfxlen"
/external/scapy/scapy/
Dfields.py1393 def _numbytes(self, pfxlen): argument
1395 return ((pfxlen + (wbits - 1)) // wbits) * self.wordbytes
1399 [pfx,pfxlen]= x.split('/')
1401 return (pfx, int(pfxlen))
1406 (pfx,pfxlen)= x
1407 return "%s/%i" % (pfx,pfxlen)
1411 (pfx,pfxlen)= x
1413 return (s[:self._numbytes(pfxlen)], pfxlen)
1417 (s,pfxlen)= x
1421 return (self.ntoa(s), pfxlen)
[all …]
/external/scapy/scapy/contrib/
Disis.py480 IPPrefixField("pfx", None, wordbytes=1, length_from=lambda x: x.pfxlen),
541 IP6PrefixField("pfx", None, wordbytes=1, length_from=lambda x: x.pfxlen),