diff options
| author | fumingwei <[email protected]> | 2021-08-27 14:54:07 +0800 |
|---|---|---|
| committer | fumingwei <[email protected]> | 2021-08-27 16:42:55 +0800 |
| commit | 5718d879f3b37d1e90b8f9834b3837137fb69766 (patch) | |
| tree | c2babf95befd57bc34566cb72a5773ed0fca915a /common | |
| parent | 534a9de16d1052561db032f8edf388e18cd841b5 (diff) | |
bugfix:TSG-6638根据拦截成功的第一个数据包矫正kni传输给tfe的timestamp相关数值v21.08.02
Diffstat (limited to 'common')
| -rw-r--r-- | common/include/kni_utils.h | 1 | ||||
| -rw-r--r-- | common/src/kni_utils.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/common/include/kni_utils.h b/common/include/kni_utils.h index 5004fc0..52b3c87 100644 --- a/common/include/kni_utils.h +++ b/common/include/kni_utils.h @@ -63,6 +63,7 @@ struct kni_tcpopt_info{ uint8_t ts_set; uint8_t sack; uint32_t ts_value; + uint32_t ts_ecr; }; //field_stat diff --git a/common/src/kni_utils.cpp b/common/src/kni_utils.cpp index 676735f..b4288e4 100644 --- a/common/src/kni_utils.cpp +++ b/common/src/kni_utils.cpp @@ -206,6 +206,7 @@ void kni_get_tcpopt(struct kni_tcpopt_info *tcpopt, struct tcphdr* tcphdr,int tc if ((opsize == TCPOLEN_TIMESTAMP)){ tcpopt->ts_set = 1; tcpopt->ts_value = *(uint32_t*)ptr; + tcpopt->ts_ecr = *(uint32_t*)(ptr + 4); } break; case TCPOPT_SACK_PERMITTED: |
