Hi,

> 1. How does the stack know of the change in the IP address?

The IKEv2 daemon listens to netlink notification messages sent by the
Linux kernel.

> 2. Does the stack listen to such events from the kernel? If yes, could
> you point us to the location in the stack that listens to kernel for
> such events?

Charon listens for notifications from the kernel in the receive_events()
function found in kernel_netlink_net.c. There it handles
link/address/route changes. If something changes, it finally calls
fire_roam_job() to update existing IKE_SAs.

Regards
Martin

_______________________________________________
Users mailing list
Users@lists.strongswan.org
https://lists.strongswan.org/mailman/listinfo/users

Reply via email to