Hi Wojciech,
On Fri, Feb 11, 2022 at 12:48:35PM +0000, Drewek, Wojciech wrote:
I have one question. The new cmd should be allowed to send echo request only to the peers stored in the kernel space (PDP contexts) or the userspace daemon has its own list of peers and any request should be allowed to be send?
I think we can expect userspace to know the peers (after all, it has created those sessions and knows about the peer IP addresses), so we don't have to verify in the kernel if it is a "valid" peer or not.
So a pure "send GTP ECHO req to given IP" and a corresponding "received GTP ECHO resp from given IP" (with relevant parameters) without tracking any state in the kernel should be sufficient.