Commit Graph

9 Commits

Author SHA1 Message Date
Harald Welte b674dcf6be Adjust to MNCC v7 introducing sockaddr_storage
It seems that 4 years ago in 2020 we merged Change-Id
Iab17f09380d7cd914cf85746b794c6c04ec7de43 to add MNCCv7 support, but
never actually tested ever since, as it still tries to
unconditionally access the 'ip' and 'port' members of the message,
which no longer exist due to the introduction of sockaddr_storage.

Working with sockaddr_storage is a bit nasty as it contains
double-underscores in the __ss_padding member, which means ctypes/python
will make it a private member that we cannot access.  Work around this
with a small sed-script that removes the underscores from the
clang2py-generated python source code.

Change-Id: I3aa267a866ffaa54e7d71c19231adc78d3831169
2024-03-19 14:17:54 +01:00
Harald Welte 0ccb2f8740 Update MNCC with LLC+HLC support
... as introduced in osmo-msc Change-Id I15f5afcf069ee6c1c4641108ceacc837bee311b5

Change-Id: Ic318656b778ed1ce115d8e60b0dce4ef75ed0a2c
2024-03-19 14:17:54 +01:00
Harald Welte 2df17f1794 update to MNCC V8 support
This updates the mncc.h to V8 with GCR support, as introduced
in Change-ID I705c860e51637b4537cad65a330ecbaaca96dd5b of osmo-msc

Change-Id: Ia27956e42c6c2f494d59b89f42345462c86b10d2
2024-03-19 14:17:54 +01:00
Harald Welte fb3b88409d port over ctypeslib2
After many years without ctypeslib maintenance, there's finally a
ctypeslib2 for python3.x

Instead of the crude gcc2xml hack it uses libclang to generate python
directly from the C.

Change-Id: I9efd56623ebeabef4317356a05484a620a3a91cc
2024-03-19 14:17:54 +01:00
Harald Welte e3d93518bd Initial port from python2 to python3
This is a very crude port, including manual edits to the ctypeslib-generated file.  There's no real clean way to do this, as ctypeslib is
ancient, abandoned and unmaintained.

Change-Id: Ie6ecd37353b35a6ac13c6578585c714c9ab46e06
2024-03-19 14:17:54 +01:00
Pau Espin b73faa4749 Update to MNCC v7 (Support IPv6 addresses)
Change-Id: Iab17f09380d7cd914cf85746b794c6c04ec7de43
2020-09-09 20:11:28 +02:00
Harald Welte c4e12b35c0 update to mncc.h after MNCCv6 update
Change-Id: I9f112a0f76b9cd00d58dc2d5751b031ee056e194
2020-03-06 18:49:35 +01:00
Harald Welte 8ebb6355ef mncc.{h,py}: Add a gsm_mncc_bridge struct
this struct doesn't yet exist in upstream, but it should.
2015-12-05 13:51:37 +01:00
Harald Welte 3d66bfbeee initial checkin of experiments with python and the MNCC interface 2015-12-01 19:07:30 +01:00