Searched refs:ulbit (Results 1 – 2 of 2) sorted by relevance
/external/scapy/scapy/ |
D | utils6.py | 195 def in6_mactoifaceid(mac, ulbit=None): argument 207 if ulbit is None or not (ulbit == 0 or ulbit == 1): 208 ulbit = [1,'-',0][first & 0x02] 209 ulbit *= 2 210 first = "%.02x" % ((first & 0xFD) | ulbit) 227 ulbit = 2*[1,'-',0][first & 0x02] 228 first = struct.pack("B", ((first & 0xFD) | ulbit))
|
/external/scapy/test/ |
D | regression.uts | 1796 in6_mactoifaceid("FD:00:00:00:00:00", ulbit=0) == 'FD00:00FF:FE00:0000' 1799 in6_mactoifaceid("FD:00:00:00:00:00", ulbit=1) == 'FF00:00FF:FE00:0000' 1808 in6_mactoifaceid("FF:00:00:00:00:00", ulbit=1) == 'FF00:00FF:FE00:0000' 1811 in6_mactoifaceid("FF:00:00:00:00:00", ulbit=0) == 'FD00:00FF:FE00:0000' 1816 in6_ifaceidtomac(in6_mactoifaceid("FD:00:00:00:00:00", ulbit=0)) == 'ff:00:00:00:00:00' 1819 in6_ifaceidtomac(in6_mactoifaceid("FD:00:00:00:00:00", ulbit=1)) == 'fd:00:00:00:00:00' 1828 in6_ifaceidtomac(in6_mactoifaceid("FF:00:00:00:00:00", ulbit=1)) == 'fd:00:00:00:00:00' 1831 in6_ifaceidtomac(in6_mactoifaceid("FF:00:00:00:00:00", ulbit=0)) == 'ff:00:00:00:00:00' 1835 in6_addrtomac("FE80::" + in6_mactoifaceid("FD:00:00:00:00:00", ulbit=0)) == 'ff:00:00:00:00:00' 1838 in6_addrtomac("FE80::" + in6_mactoifaceid("FD:00:00:00:00:00", ulbit=1)) == 'fd:00:00:00:00:00' [all …]
|