summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorlijia <[email protected]>2021-11-01 11:36:11 +0800
committerlijia <[email protected]>2021-11-01 11:36:11 +0800
commit46d648bbe09e244fce5ba17558bbc934f124a41e (patch)
tree3777915c4f2f94442ca66de9db98ffe141c8ca67 /test
parentb6f22dc290e710dc22a00200a6fb7cf91ac1f86e (diff)
TSG-8262, 双臂模式I2E, E2I routedir方向值错误.v4.2.59
Diffstat (limited to 'test')
-rw-r--r--test/test_app_sapp.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/test/test_app_sapp.c b/test/test_app_sapp.c
index 822b54a..d5529dd 100644
--- a/test/test_app_sapp.c
+++ b/test/test_app_sapp.c
@@ -685,18 +685,21 @@ char ipv4_pkt_detail_entry(struct streaminfo *pstream,unsigned char routedir, in
if(IPPROTO_TCP == ihdr4->ip_p){
thdr = (struct mesa_tcp_hdr *)((char *)ihdr4 + ihdr4->ip_hl * 4);
- printf("IP pkt: %s:%u --> %s:%u, ipid:%u, proto:%d\n",
+ printf("IP pkt: %s:%u --> %s:%u, ipid:%u, proto:%d, routedir:%d\n",
ip_src_str, ntohs(thdr->th_sport),
ip_dst_str, ntohs(thdr->th_dport),
- ntohs(ihdr4->ip_id), ihdr4->ip_p);
+ ntohs(ihdr4->ip_id), ihdr4->ip_p,
+ routedir);
}else if(IPPROTO_UDP == ihdr4->ip_p){
uhdr = (struct mesa_udp_hdr *)((char *)ihdr4 + ihdr4->ip_hl * 4);
- printf("IP pkt: %s:%u --> %s:%u, ipid:%u, proto:%d\n",
+ printf("IP pkt: %s:%u --> %s:%u, ipid:%u, proto:%d,routedir:%d\n",
ip_src_str, ntohs(uhdr->uh_sport),
ip_dst_str, ntohs(uhdr->uh_dport),
- ntohs(ihdr4->ip_id), ihdr4->ip_p);
+ ntohs(ihdr4->ip_id), ihdr4->ip_p,
+ routedir);
}else{
- printf("IP pkt: %s --> %s, ipid:%u, proto:%d\n", ip_src_str, ip_dst_str, ntohs(ihdr4->ip_id), ihdr4->ip_p);
+ printf("IP pkt: %s --> %s, ipid:%u, proto:%d, routedir:%d\n",
+ ip_src_str, ip_dst_str, ntohs(ihdr4->ip_id), ihdr4->ip_p, routedir);
}
return APP_STATE_GIVEME;
@@ -3323,7 +3326,7 @@ char IPv6_ENTRY(const struct streaminfo *pstream,unsigned char routedir,int thre
inet_ntop(AF_INET6, &ip6h->ip6_src, ips, 128);
inet_ntop(AF_INET6, &ip6h->ip6_dst, ipd, 128);
- printf("recv ip6 pkt, %s --> %s, protocol:%u\n", ips, ipd, ip6h->ip6_nxt_hdr);
+ printf("recv ip6 pkt, %s --> %s, protocol:%u, routedir:%d\n", ips, ipd, ip6h->ip6_nxt_hdr, routedir);
return APP_STATE_GIVEME;
}