Skip to content

Commit f41594c

Browse files
Zainullin DamirZainullin Damir
authored andcommitted
Process plugins - Introduce RTSP process plugin
1 parent f461857 commit f41594c

File tree

8 files changed

+483
-544
lines changed

8 files changed

+483
-544
lines changed

src/plugins/process/rtsp/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ project(ipfixprobe-process-rtsp VERSION 1.0.0 DESCRIPTION "ipfixprobe-process-rt
33
add_library(ipfixprobe-process-rtsp MODULE
44
src/rtsp.cpp
55
src/rtsp.hpp
6+
src/rtspContext.hpp
7+
src/rtspFields.hpp
8+
src/rtspExtensionReader.hpp
69
)
710

811
set_target_properties(ipfixprobe-process-rtsp PROPERTIES
@@ -12,7 +15,10 @@ set_target_properties(ipfixprobe-process-rtsp PROPERTIES
1215

1316
target_include_directories(ipfixprobe-process-rtsp PRIVATE
1417
${CMAKE_SOURCE_DIR}/include/
18+
${CMAKE_SOURCE_DIR}/include/ipfixprobe/processPlugin
19+
${CMAKE_SOURCE_DIR}/include/ipfixprobe/pluginFactory
1520
${CMAKE_SOURCE_DIR}/src/plugins/process/common
21+
${adaptmon_SOURCE_DIR}/lib/include/public/
1622
)
1723

1824
if(ENABLE_NEMEA)

src/plugins/process/rtsp/README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# RTSP Plugin
2+
3+
The **RTSP Plugin** parses RTSP traffic and exports relevant fields.
4+
5+
## Features
6+
7+
- Reinserts the flow after accepting a second RTSP request or response.
8+
9+
## Output Fields
10+
11+
| Field Name | Data Type | Description |
12+
| ---------------------------- | ---------- | ---------------------------------------- |
13+
| `RTSP_REQUEST_METHOD` | `string` | Method of the RTSP request |
14+
| `RTSP_REQUEST_AGENT` | `string` | User-Agent header of the RTSP request |
15+
| `RTSP_REQUEST_URI` | `string` | URI of the RTSP request |
16+
| `RTSP_RESPONSE_STATUS_CODE` | `uint16_t` | Status code of the RTSP response |
17+
| `RTSP_RESPONSE_SERVER` | `string` | Server header of the RTSP response |
18+
| `RTSP_RESPONSE_CONTENT_TYPE` | `string` | Content-Type header of the RTSP response |
19+
20+
## Usage
21+
22+
### YAML Configuration
23+
24+
Add the plugin to your ipfixprobe YAML configuration:
25+
26+
```yaml
27+
process_plugins:
28+
- rtsp
29+
```
30+
31+
### CLI Usage
32+
33+
You can also enable the plugin directly from the command line:
34+
35+
`ipfixprobe -p rtsp ...`

0 commit comments

Comments
 (0)