diff options
| author | yangwei <[email protected]> | 2024-05-23 02:43:50 +0800 |
|---|---|---|
| committer | yangwei <[email protected]> | 2024-05-23 02:43:50 +0800 |
| commit | a47b3b5a6eaf56b38edb31998555c2c62fb17ac2 (patch) | |
| tree | aa47786ab0c1380ad301d0282c6f63a2faa26c83 /src/dealpkt/plug_support.c | |
| parent | 9d75d5eb6898b068904fed3c3c544dece7f5e057 (diff) | |
✨ feat(stream opt): 支持按方向获取会话上的SIDv4.3.56
Diffstat (limited to 'src/dealpkt/plug_support.c')
| -rw-r--r-- | src/dealpkt/plug_support.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/dealpkt/plug_support.c b/src/dealpkt/plug_support.c index a90720e..6358187 100644 --- a/src/dealpkt/plug_support.c +++ b/src/dealpkt/plug_support.c @@ -1998,6 +1998,30 @@ int MESA_get_stream_opt(const struct streaminfo *pstream, enum MESA_stream_opt o }
break;
+ case MSO_STREAM_C2S_SEGMENT_ID_LIST:
+ case MSO_STREAM_S2C_SEGMENT_ID_LIST:
+ {
+ ret = -1;
+ *opt_val_len = 0;
+ void **value = (void **)opt_val;
+ struct rawpkt_metadata *meta = NULL;
+ if (opt == MSO_STREAM_C2S_SEGMENT_ID_LIST)
+ {
+ meta = pstream_pr->polling_inject_context->meta_stream_dir[DIR_C2S - 1];
+ }
+ else
+ {
+ meta = pstream_pr->polling_inject_context->meta_stream_dir[DIR_S2C - 1];
+ }
+ if (meta)
+ {
+ *value = (void *)(&meta->raw_sid_list);
+ *opt_val_len = sizeof(struct segment_id_list);
+ ret = *opt_val_len;
+ }
+ }
+ break;
+
case MSO_IP_TTL_C2S:
if(0 == pstream_pr->ip_ttl_c2s){
ret = -1;
|
