示例#1
0
def GetMulticastMacFromIPv6(ip):
    return MacAddressBase(integer=(0x333300000000
                                   | (ip.getnum() & 0xFFFFFFFF)))
示例#2
0
def GetMulticastMacFromIPv4(ip):
    return MacAddressBase(integer=(0x01005E000000
                                   | (ip.getnum() & 0x007FFFFF)))
示例#3
0
def GetQuiesceDstMac(tc, pkt):
    return MacAddressBase(integer=(0x00eeff000005))
示例#4
0
def GetMACAddrForValidation(testcase, args):
    if testcase.module.name != "LEARN_INVALID_MACADDR":
        return testcase.config.localmapping.VNIC.MACAddr
    # return invalid macaddr
    return MacAddressBase(integer=0)
示例#5
0
def GetQuiesceSrcMac(tc, pkt):
    return MacAddressBase(integer=(0x00eeff000004))