diff options
author | Ido Barnea <ibarnea@cisco.com> | 2016-01-14 04:42:05 +0200 |
---|---|---|
committer | Ido Barnea <ibarnea@cisco.com> | 2016-01-19 04:13:53 +0200 |
commit | 62623efc5b700d58335fa994d2e2725863527575 (patch) | |
tree | f3140936cd979c7d609bbe91c539f681ddd8e552 /src/debug.cpp | |
parent | eee866f42bd0fc8472e6295b4f26bd0697e59f1f (diff) |
Adding option to pass NAT info in TCP ACK of first SYN
Diffstat (limited to 'src/debug.cpp')
-rw-r--r-- | src/debug.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/debug.cpp b/src/debug.cpp index e5e207e1..ed4900f9 100644 --- a/src/debug.cpp +++ b/src/debug.cpp @@ -98,9 +98,12 @@ int CTrexDebug::rcv_send_all(int queue_id) { rte_mbuf_t *CTrexDebug::create_test_pkt(int pkt_type) { uint8_t proto; int pkt_size = 0; - // uint8_t dst_mac[6] = {0xd4, 0x8c, 0xb5, 0xc9, 0x54, 0x2b}; - uint8_t dst_mac[6] = {0x79, 0xa2, 0xe6, 0xd5, 0x39, 0x25}; - uint8_t src_mac[6] = {0xa0, 0x36, 0x9f, 0x38, 0xa4, 0x02}; + // ASA 2 + uint8_t dst_mac[6] = {0x74, 0xa2, 0xe6, 0xd5, 0x39, 0x25}; + uint8_t src_mac[6] = {0xa0, 0x36, 0x9f, 0x38, 0xa4, 0x02}; + // ASA 1 + // uint8_t dst_mac[6] = {0xd4, 0x8c, 0xb5, 0xc9, 0x54, 0x2b}; + // uint8_t src_mac[6] = {0xa0, 0x36, 0x9f, 0x38, 0xa4, 0x0}; uint16_t l2_proto = 0x0008; uint8_t ip_header[] = { 0x45,0x02,0x00,0x30, @@ -127,7 +130,7 @@ rte_mbuf_t *CTrexDebug::create_test_pkt(int pkt_type) { 0xe7 }; uint8_t tcp_header[] = {0xab, 0xcd, 0x00, 0x80, // src, dst ports - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // seq num, ack num + 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, // seq num, ack num 0x50, 0x00, 0xff, 0xff, // Header size, flags, window size 0x00, 0x00, 0x00, 0x00, // checksum ,urgent pointer }; |