Contributing to strongswan-epdg gitea repo

Hi,

I have fork of the repo here - GitHub - herlesupreeth/strongswan-epdg at fix_dns_parse which add logic of parsing DNS, P-CSCF sent by the EPC and use it rather than using hardcoded values.

Can you please let me know how I can contribute my patches to ims-volte-vowifi/strongswan-epdg: The strongswan IPsec implementation with plugins/modifications to enable its use as ePDG for VoWiFi in the 3GPP EPC (Evolved Packet Core) - Osmocom gitea repo?

Is the procedure same as mentioned here - Gerrit - Cellular Network Infrastructure - Open Source Mobile Communications?

Many thanks,
Supreeth

Hi Supreeth,

For that project we don’t have a gerrit repo setup, only the gitea one, so you need to create a user in https://gitea.osmocom.org , fork the repo and submit a PR in there against the forked repo.

You probably want to assign lynxis to review it.

Hi @herlesupreeth
could you try out my pco2 branch?

My branch is missing some of the pco_length check, which yours does.

Further my commits " ikev2: ike_config: fill attribute also as initiator" needs to be replaced with a solution which doesn’t require modifying the strongswan.
The PR has some alternative ideas how to get the attributes of the phone ikev2: ike_config: fill attribute also as responder by lynxis · Pull Request #2396 · strongswan/strongswan · GitHub

Your commit “osmo-epdg: use lock while getting attributes” seems to create a deadlock. Do you checked if ref counting should be done on the attribute object?

Would be also great to use a pco.h similar to my branch and IPv6 PCOs would be good.

I don’t know how we merge both branches into a single one.

Best,
lynxis

Thank you for the reply @lynxis . I tried your branch and I think there is an issue in parsing/embedding multiple entries in DNS IPv4 address and also P-CSCF address

Following is the print I see from the tool - GitHub - fasferraz/SWu-IKEv2: IKEv2/IPSec SWu Client Dialer

IPV4 ADDRESS ['192.168.100.2']
DNS IPV4 ADDRESS ['8.8.4.4', '32.1.72.96']
P-CSCF IPV4 ADDRESS ['0.0.0.0']
IPV6 ADDRESS []
DNS IPV6 ADDRESS ['2001:4860:4860::8844', 'ac16:15::']

while my EPC is configured with

    dns:
      - 8.8.8.8
      - 8.8.4.4
      - 2001:4860:4860::8888
      - 2001:4860:4860::8844
    p-cscf:
      - 172.22.0.21

Your commit “osmo-epdg: use lock while getting attributes” seems to create a deadlock. Do you checked if ref counting should be done on the attribute object?

I havent checked it. But, I have tested with the SWu-IKEv2 client and I haven’t observed any deadlock.

Would be also great to use a pco.h similar to my branch and IPv6 PCOs would be good.

I agree too.

I don’t know how we merge both branches into a single one.

All I care is fix getting merged upstream and not remain in the forked branch :slight_smile: . In that regard, I dont mind if you use any part of the patch however you deem correct and necessary. Let me know if you want me to contribute in any other way.

Regards,
Supreeth