2015-01-28 18:25:55 -05:00
|
|
|
from liteeth.common import *
|
|
|
|
from liteeth.generic.depacketizer import LiteEthDepacketizer
|
|
|
|
from liteeth.generic.packetizer import LiteEthPacketizer
|
|
|
|
|
|
|
|
class LiteEthUDPDepacketizer(LiteEthDepacketizer):
|
|
|
|
def __init__(self):
|
|
|
|
LiteEthDepacketizer.__init__(self,
|
|
|
|
eth_ipv4_description(8),
|
|
|
|
eth_udp_description(8),
|
|
|
|
udp_header,
|
2015-01-29 18:03:16 -05:00
|
|
|
udp_header_len)
|
2015-01-28 18:25:55 -05:00
|
|
|
|
2015-01-29 18:03:16 -05:00
|
|
|
class LiteEthUDPPacketizer(LiteEthPacketizer):
|
2015-01-28 18:25:55 -05:00
|
|
|
def __init__(self):
|
2015-01-29 18:03:16 -05:00
|
|
|
LiteEthPacketizer.__init__(self,
|
2015-01-28 18:25:55 -05:00
|
|
|
eth_udp_description(8),
|
|
|
|
eth_ipv4_description(8),
|
|
|
|
udp_header,
|
2015-01-29 18:03:16 -05:00
|
|
|
udp_header_len)
|