Skip to content

Commit 2ea0b26

Browse files
Zainullin DamirZainullin Damir
authored andcommitted
Process plugins - Introduce SSDP process plugin
1 parent f41594c commit 2ea0b26

File tree

7 files changed

+374
-377
lines changed

7 files changed

+374
-377
lines changed

src/plugins/process/ssdp/CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,21 @@ project(ipfixprobe-process-ssdp VERSION 1.0.0 DESCRIPTION "ipfixprobe-process-ss
33
add_library(ipfixprobe-process-ssdp MODULE
44
src/ssdp.cpp
55
src/ssdp.hpp
6+
src/ssdpContext.hpp
7+
src/ssdpFields.hpp
68
)
79

810
set_target_properties(ipfixprobe-process-ssdp PROPERTIES
911
CXX_VISIBILITY_PRESET hidden
1012
VISIBILITY_INLINES_HIDDEN YES
1113
)
1214

13-
target_include_directories(ipfixprobe-process-ssdp PRIVATE
15+
target_include_directories(ipfixprobe-process-ssdp PRIVATE
1416
${CMAKE_SOURCE_DIR}/include/
17+
${CMAKE_SOURCE_DIR}/include/ipfixprobe/processPlugin
18+
${CMAKE_SOURCE_DIR}/include/ipfixprobe/pluginFactory
19+
${CMAKE_SOURCE_DIR}/src/plugins/process/common
20+
${adaptmon_SOURCE_DIR}/lib/include/public/
1521
)
1622

1723
if(ENABLE_NEMEA)

src/plugins/process/ssdp/README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# SSDP Plugin
2+
3+
Plugin enables detailed analysis of SSDP traffic by extracting key fields from SSDP packets.
4+
5+
## Features
6+
7+
- Detection is based on the expected port (1900).
8+
9+
## Output Fields
10+
11+
| Field Name | Data Type | Description |
12+
| -------------------- | ---------- | ----------------------------------------------------- |
13+
| `SSDP_LOCATION_PORT` | `uint16_t` | Port from SSDP location header |
14+
| `SSDP_NT` | `string` | Type of announced device |
15+
| `SSDP_SERVER` | `string` | Information about the SSDP server (e.g., OS, version) |
16+
| `SSDP_ST` | `string` | What devices are being searched for |
17+
| `SSDP_USER_AGENT` | `string` | Client user agent |
18+
19+
## Usage
20+
21+
### YAML Configuration
22+
23+
Add the plugin to your ipfixprobe YAML configuration:
24+
25+
```yaml
26+
process_plugins:
27+
- ssdp
28+
```
29+
30+
### CLI Usage
31+
32+
You can also enable the plugin directly from the command line:
33+
34+
`ipfixprobe -p ssdp ...`

0 commit comments

Comments
 (0)