133 #define IP4_HEADER_LEN 20
211 tdata.range(52, 48) = offset(12, 8); }
213 tdata.range(63, 56)); }
326 ap_uint<4> swapNibble(ap_uint<4> nibble) {
327 return (nibble.range(0,3));
330 ap_uint<8> swapByte(ap_uint<8>
byte) {
331 return (
byte.range(0,7));
334 ap_uint<16> swapWord(ap_uint<16> word) {
335 return (word.range(7,0), word.range(15, 8));
338 ap_uint<32> swapDWord(ap_uint<32> dword) {
339 return (dword.range( 7, 0), dword.range(15, 8),
340 dword.range(23,16), dword.range(31, 24));
: A class to access ICMP header fields within data chunks transmitted over an AXI4-Stream interface.
: A generic class used by the Network-Transport-Stack (NTS) to to transfer a chunk of data over an AX...
: A class to access TCP header fields within data chunks transmitted over an AXI4-Stream interface.
: A class to access UDP header fields within data chunks transmitted over an AXI4-Stream interface.
void setTcpDataOff(TcpDataOff offset)
void setTcpAckNum(TcpAckNum num)
void setTcpWindow(TcpWindow win)
void setIcmpType(IcmpType type)
void setTcpCtrlFin(TcpCtrlBit bit)
TcpCtrlBit getTcpCtrlAck()
void setUdpCsum(UdpCsum csum, int Lo=16)
TcpCtrlBit getTcpCtrlSyn()
TcpChecksum getTcpChecksum()
LE_IcmpCode getLE_IcmpCode()
void setTcpCtrlPsh(TcpCtrlBit bit)
UdpPort getUdpDstPort(int Lo=48)
UdpLen getUdpLen(int Lo=0)
LE_IcmpCsum getLE_IcmpCsum()
void setIp4FragOff(Ip4FragOff offset)
TcpCtrlBit getTcpCtrlFin()
void setTcpSeqNum(TcpSeqNum num)
void setIp4Prot(Ip4Prot prot)
void setIp4HdrLen(Ip4HdrLen ihl)
LE_Ip4HdrCsum getLE_Ip4HdrCsum()
void setTcpDstPort(TcpPort port)
void setIcmpCode(IcmpCode code)
Ip4TotalLen getIp4TotalLen()
void setUdpLen(UdpLen len, int Lo=0)
UdpPort getUdpSrcPort(int Lo=32)
void setTcpOptMss(TcpOptMss val)
void setTcpUrgPtr(TcpUrgPtr ptr)
void setIp4HdrCsum(Ip4HdrCsum csum)
UdpCsum getUdpCsum(int Lo=16)
LE_Ip4Prot getLE_Ip4Prot()
void setTcpCtrlSyn(TcpCtrlBit bit)
void setUdpSrcPort(UdpPort port, int Lo=32)
void setTcpChecksum(TcpChecksum csum)
void setIp4DstAddr(Ip4Addr addr)
void setTcpCtrlUrg(TcpCtrlBit bit)
void setIp4TotalLen(Ip4TotalLen len)
TcpCtrlBit getTcpCtrlPsh()
TcpDataOff getTcpDataOff()
Ip4FragOff getIp4FragOff()
Ip4Version getIp4Version()
void setIcmpCsum(IcmpCsum csum)
void setTcpOptKind(TcpOptKind val)
TcpOptKind getTcpOptKind()
void setIp4Flags(Ip4Flags flags)
LE_TcpPort getLE_TcpDstPort()
TcpCtrlBit getTcpCtrlUrg()
void setIp4Version(Ip4Version ver)
LE_Ip4Addr getLE_Ip4DstAddr()
void setTcpSrcPort(TcpPort port)
void setIp4Ident(Ip4Ident id)
LE_TcpPort getLE_TcpSrcPort()
void setTcpCtrlAck(TcpCtrlBit bit)
LE_IcmpType getLE_IcmpType()
void setIp4ToS(Ip4ToS tos)
void setIp4SrcAddr(Ip4Addr addr)
void setIp4TtL(Ip4TtL ttl)
TcpCtrlBit getTcpCtrlRst()
AxisIp4(const AxisIp4 &axisRaw)
LE_Ip4Addr getLE_Ip4SrcAddr()
Ip4HdrCsum getIp4HdrCsum()
void setUdpDstPort(UdpPort port, int Lo=48)
AxisIp4(LE_tData tdata, LE_tKeep tkeep, LE_tLast tlast)
void setTcpCtrlRst(TcpCtrlBit bit)
LE_tKeep getLE_TKeep(int leHi=64/8-1, int leLo=0) const
LE_tData getLE_TData(int leHi=64 -1, int leLo=0) const
LE_tLast getLE_TLast() const
ap_uint< 32 > LE_Ip4DstAddr
ap_uint< 32 > LE_Ip4SrcAddr
ap_uint< 16 > LE_IcmpCsum
ap_uint< 4 > LE_Ip4HdrLen
ap_uint< 4 > LE_Ip4Version
ap_uint< 16 > LE_Ip4HdrCsum
ap_uint< 16 > LE_Ip4TotalLen
ap_uint< 16 > Ip4TotalLen
ap_uint< 32 > LE_Ip4Address
ap_uint< 16 > TcpChecksum