diff options
| author | yangwei <[email protected]> | 2024-03-06 19:33:18 +0800 |
|---|---|---|
| committer | yangwei <[email protected]> | 2024-03-06 19:33:18 +0800 |
| commit | c714acbfdaeaea3b86e3daadd64313aafca03e8e (patch) | |
| tree | f8f3200fc418e25703f6a644e0bedf7e49392bed /src/packet_io/sendpacket.c | |
| parent | 087aec0b48165eb74e385cd757735272be768228 (diff) | |
🐞 fix(sapp inject packet): Fix OMPUB-1176v4.3.39
修复注入反向数据包时,链路信息填充错误的bug
Diffstat (limited to 'src/packet_io/sendpacket.c')
| -rw-r--r-- | src/packet_io/sendpacket.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/packet_io/sendpacket.c b/src/packet_io/sendpacket.c index 8abda7c..cc89b09 100644 --- a/src/packet_io/sendpacket.c +++ b/src/packet_io/sendpacket.c @@ -2522,8 +2522,22 @@ static raw_pkt_t *update_raw_pkt(struct streaminfo_private *stream_pr, uchar snd if (stream_pr->polling_inject_context != NULL) { - inject_raw_pkt->meta[0]=stream_pr->polling_inject_context->meta_stream_dir[0]; - inject_raw_pkt->meta[1]=stream_pr->polling_inject_context->meta_stream_dir[1]; + inject_raw_pkt->meta_route_dir[stream_pr->stream_c2s_route_dir]=stream_pr->polling_inject_context->meta_stream_dir[DIR_C2S-1]; + inject_raw_pkt->meta_route_dir[stream_pr->stream_c2s_route_dir^1]=stream_pr->polling_inject_context->meta_stream_dir[DIR_S2C-1]; + +#if 0 + if(snd_dir==stream_pr->stream_c2s_route_dir) + { + inject_raw_pkt->meta_route_dir[snd_dir]=stream_pr->polling_inject_context->meta_stream_dir[DIR_C2S-1]; + inject_raw_pkt->meta_route_dir[snd_dir^1]=stream_pr->polling_inject_context->meta_stream_dir[DIR_S2C-1]; + } + else + { + inject_raw_pkt->meta_route_dir[snd_dir]=stream_pr->polling_inject_context->meta_stream_dir[DIR_S2C-1]; + inject_raw_pkt->meta_route_dir[snd_dir^1]=stream_pr->polling_inject_context->meta_stream_dir[DIR_C2S-1]; + + } +#endif } return inject_raw_pkt; |
