[strongSwan-dev] charon mobike route detection

Markus Oreilly moreily at shaw.ca
Wed Mar 3 21:34:27 CET 2010


Greetings, first time on the list, please forgive me if I'm breaking protocol.

I am seeking some help in understanding the code but did not find any faq or document describing what I am looking for.

I am using the charon daemon with the Mobike feature enabled, but am seeing problems with it switching network interfaces (ie. roaming from one interface to another).

For the most part, charon will switch properly from one interface to another when I do an "ifdown" followed by setting a new default route. However, it isn't 100% and after running the switching tests over time, it will eventually either  fail to switch (stays on the downed link), or takes forever to switch over to the new default route.

Can someone explain or point me to the files/functions/threads that deal with link switching? In particular:

a) where is the logic where it monitors for new routes/interfaces?
b) how is this communicated to the "sending" code, are they different threads
c) where/how is the new route detected?

I will note, that I've seen several failures:
i) charon will hang on a "getting address to interface"
ii) charon appears to log errors as it trys to send out packets to the downed interface
iii) ipsec status sometimes will just hang during a transition period, and the only solution is to either wait till it finally returns, or kill it.

I am using release 4.3.6 by the way!

Thanks for any help!



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.strongswan.org/pipermail/dev/attachments/20100303/baeb96a7/attachment.html>


More information about the Dev mailing list