81 #define TCP_HEADER_LEN 20
127 #define TCP_OPT_KIND_EOL 0
128 #define TCP_OPT_KIND_NOP 1
129 #define TCP_OPT_KIND_MSS 2
130 #define TCP_OPT_KIND_WSS 3
131 #define TCP_OPT_KIND_SACK 4
219 ap_uint<16> swapWord(ap_uint<16> inpWord) {
220 return (inpWord.range(7,0), inpWord.range(15, 8));
223 ap_uint<32> swapDWord(ap_uint<32> inpDWord) {
224 return (inpDWord.range( 7, 0), inpDWord.range(15, 8),
225 inpDWord.range(23,16), inpDWord.range(31, 24));
: A generic class used by the Network-Transport-Stack (NTS) to to transfer a chunk of data over an AX...
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
LE_TcpPort getLE_TcpDstPort()
AxisTcp(LE_tData tdata, LE_tKeep tkeep, LE_tLast tlast)
void setTcpOptMss(TcpOptMss val)
void setTcpCtrlFin(TcpCtrlBit bit)
AxisTcp(const AxisTcp &axisTcp)
void setTcpUrgPtr(TcpUrgPtr ptr)
void setTcpCtrlPsh(TcpCtrlBit bit)
void setTcpCtrlUrg(TcpCtrlBit bit)
TcpCtrlBit getTcpCtrlFin()
TcpChecksum getTcpChecksum()
void setTcpSrcPort(TcpPort port)
void setTcpDataOff(TcpDataOff offset)
LE_TcpPort getLE_TcpSrcPort()
void setTcpSeqNum(TcpSeqNum num)
void setTcpDstPort(TcpPort port)
void setTcpOptKind(TcpOptKind val)
TcpCtrlBit getTcpCtrlUrg()
TcpCtrlBit getTcpCtrlRst()
TcpCtrlBit getTcpCtrlPsh()
void setTcpChecksum(TcpChecksum csum)
TcpCtrlBit getTcpCtrlAck()
void setTcpCtrlSyn(TcpCtrlBit bit)
void setTcpCtrlRst(TcpCtrlBit bit)
TcpOptKind getTcpOptKind()
TcpDataOff getTcpDataOff()
TcpCtrlBit getTcpCtrlSyn()
void setTcpAckNum(TcpAckNum num)
void setTcpWindow(TcpWindow win)
void setTcpCtrlAck(TcpCtrlBit bit)
ap_uint< 4 > LE_TcpDataOff
ap_uint< 16 > LE_TcpDstPort
ap_uint< 32 > LE_TcpAckNum
ap_uint< 6 > LE_TcpCtrlBits
ap_uint< 16 > LE_TcpUrgPtr
ap_uint< 16 > LE_TcpSrcPort
ap_uint< 32 > LE_TcpSeqNum
ap_uint< 3 > LE_TcpResBits
ap_uint< 16 > LE_TcpChecksum
ap_uint< 16 > LE_TcpWindow
ap_uint< 16 > TcpChecksum