Project

General

Profile

Actions

Bug #6289

closed

strongswan: implement internal state

Added by lynxis 3 months ago. Updated 7 days ago.

Status:
Closed
Priority:
Urgent
Assignee:
Target version:
-
Start date:
12/06/2023
Due date:
% Done:

90%


Description

The strongswan/osmo-epdg need to track the state of all ipsec tunnel.
I've created the skeleton class src/libcharon/plugins/osmo_epdg/osmo_epdg_db.c.

Use strongswan hashtables and refcounting to implement the following state:
- ref to ike_sa_t state
- IMSI
- APN
- assigned IP address


Checklist

  • set APN on UE_create()
  • implement get_subscriber_by_unique_id() using a simple enumerate() based on the hashtable
  • implement set/get for unique_id
Actions #1

Updated by lynxis 20 days ago

  • Status changed from New to In Progress
  • Assignee set to lynxis
Actions #2

Updated by laforge 18 days ago

  • Priority changed from Normal to Urgent
Actions #3

Updated by lynxis 9 days ago

  • % Done changed from 0 to 40

I've implemented a db and ue object.
I need to decode the Tunnel Response and add it to the internal state.

Actions #4

Updated by lynxis 9 days ago

  • % Done changed from 40 to 90

The Tunnel Response is decoded also other phases will use the internal state.
Currently I'm ignoring the APN as it is not used anywhere.

pespin do we need the APN in the Tunnel Request?

Actions #5

Updated by lynxis 9 days ago

  • Description updated (diff)
Actions #6

Updated by lynxis 7 days ago

  • Checklist item set APN on UE_create() added
  • Checklist item implement get_subscriber_by_unique_id() using a simple enumerate() based on the hashtable added
  • Checklist item implement set/get for unique_id added
  • Description updated (diff)
Actions #7

Updated by lynxis 7 days ago

  • Checklist item set APN on UE_create() set to Done
Actions #8

Updated by lynxis 7 days ago

  • Checklist item implement set/get for unique_id set to Done
Actions #9

Updated by lynxis 7 days ago

  • Checklist item implement get_subscriber_by_unique_id() using a simple enumerate() based on the hashtable set to Done
Actions #10

Updated by lynxis 7 days ago

  • Status changed from In Progress to Closed
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)