Home
last modified time | relevance | path

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

/external/scapy/scapy/
Droute.py39 rtlst = []
41 rtlst.append((ltoa(net),
48 return pretty_list(rtlst,
Droute6.py52 rtlst = []
55rtlst.append(('%s/%i'% (net,msk), gw, (iface if isinstance(iface, six.string_types) else iface.nam…
57 return pretty_list(rtlst,
Dutils.py1383 def pretty_list(rtlst, header, sortBy=0): argument
1388 rtlst.sort(key=lambda x: x[sortBy])
1390 rtlst = header + rtlst
1392 colwidth = [max([len(y) for y in x]) for x in zip(*rtlst)]
1412rtlst = [tuple([_crop(rtlst[j][i], colwidth[i]) for i in range(0, len(rtlst[j]))]) for j in range(…
1414 colwidth = [max([len(y) for y in x]) for x in zip(*rtlst)]
1416 rt = "\n".join([fmt % x for x in rtlst])