Discussion:
[strongSwan] Davici parsing of terminating an IKE connection
rajeev nohria
2018-06-26 09:06:21 UTC
Permalink
Scenario: Strongswan has established multiple IKE connections with
different peers.

Lets say we have three different connections. Out of those we plan to
delete two connections via initiating using davici terminate command.

Question: Is there way to know when we parse response from Davici that
which conenction is deleted? If yes what parameter of davici we get
information? i see reqcb() parse the davici reponse.

Thanks,
Rajeev
Tobias Brunner
2018-06-26 12:00:14 UTC
Permalink
Post by rajeev nohria
Question: Is there way to know when we parse response from Davici that
which conenction is deleted? If yes what parameter of davici we get
information? i see reqcb() parse the davici reponse.
Two things: 1. Requests queued on the same connection are processed
sequentially. 2. You can pass user data when queuing a request that's
later passed to the callback.

Regards,
Tobias
rajeev nohria
2018-06-27 05:03:13 UTC
Permalink
Thanks a lot..
Rajeev
Post by Tobias Brunner
Post by rajeev nohria
Question: Is there way to know when we parse response from Davici that
which conenction is deleted? If yes what parameter of davici we get
information? i see reqcb() parse the davici reponse.
Two things: 1. Requests queued on the same connection are processed
sequentially. 2. You can pass user data when queuing a request that's
later passed to the callback.
Regards,
Tobias
rajeev nohria
2018-08-07 18:49:41 UTC
Permalink
Let me know if I am incorrect , user_data is the last parameter in the
davici_queue?


1) Now Is it right practice to add few more elements in tester stucture to
passed in call back function? These additional elements can be used to
mange the response of deleting the connections.

2) If there are many davici requests are happening in parallel , For each
request does davici make copy of user_Data, or it is overwritten with last
call of tester structure information.

3) Is there any limit of size of data can be added?

Thanks,
Rajeev
Post by Tobias Brunner
Post by rajeev nohria
Question: Is there way to know when we parse response from Davici that
which conenction is deleted? If yes what parameter of davici we get
information? i see reqcb() parse the davici reponse.
Two things: 1. Requests queued on the same connection are processed
sequentially. 2. You can pass user data when queuing a request that's
later passed to the callback.
Regards,
Tobias
Loading...