Getting listening port number while processing request
Teus Benschop <[email protected]> Tue, 5 Sep 2023 14:15:19 +0200
| Newsgroups | gmane.network.net-snmp.devel |
|---|---|
| Message-ID | <CAFueZ4yNPGd-4NQt-+2-ksGuEhE9_NrhTGnr+ZfZUWuxT6Z7Pg@mail.gmail.com> |
Hello, I've been digging around in the library for a while to check out whether the port number that the agent listens on, if it listens on multiple ports, can be retrieved via the API, while the snmpd processes a request via snmpget or snmpset. I could not find a way to display the port number, also not using the various debug tokens. Question: Is there a way to retrieve the port number that a request was received on, or do I need to hack the net-snmp library itself, or is that never possible? With kind regards, Teus Benschop