Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2015-12-18 | test-ranap.c: Further WIP, it now actually compiles | Harald Welte | 1 | -63/+82 | |
2015-12-18 | RANAP: Split FormatInformationParameter / SDUParameterItem | Harald Welte | 10 | -213/+294 | |
The definition of the above data types as per 3GPP specs results in a SEQUENCE_OF() an anonymous structure, which is slightly inconvenient to use. So let's split the SEQUENCE OF part and the actual definition of the item in separate types. | |||||
2015-12-18 | test-ranap.c: More WIP code for convoluted RANAP message encoding | Harald Welte | 1 | -31/+283 | |
2015-12-17 | hnb-test: Add an option to transmit multiple UE register/deregister msgs | Daniel Willmann | 2 | -0/+33 | |
2015-12-17 | Enable vty command to output talloc report | Daniel Willmann | 1 | -0/+10 | |
I don't think I can print this into a string and thus output it via VTY. In that case it might be smarte to do in a signal handler | |||||
2015-12-17 | hnbgw_hnbap: Initialize return value and always return something | Daniel Willmann | 1 | -2/+4 | |
2015-12-17 | hnbap: Free ASN.1 components after they are no longer needed | Daniel Willmann | 2 | -7/+20 | |
2015-12-17 | hnb-test: Handle closed connections correctly | Daniel Willmann | 1 | -1/+11 | |
2015-12-17 | hnb-test: Send UE de-register after receiving the UE registration accept | Daniel Willmann | 2 | -0/+34 | |
2015-12-17 | hnb-test.c: Remove pdus.h include as it is not used | Daniel Willmann | 1 | -2/+0 | |
The messages are constructed so no need to include the binary asn1 data. | |||||
2015-12-17 | hnb-test: Add HNBAP category and reduce MAIN loglevel to INFO | Daniel Willmann | 2 | -2/+8 | |
2015-12-17 | hnbgw: Change logging priorities and add HNBAP category | Daniel Willmann | 4 | -10/+16 | |
Log hnbap messages to the HNBAP category. Change MAIN category to only log INFO and above and change SCTP notification message to debug. | |||||
2015-12-17 | hnbgw_hnbap: Process UEDeRegister and try to free correct UE | Daniel Willmann | 1 | -0/+24 | |
2015-12-17 | hnbgw: Handle closed connections correctly | Daniel Willmann | 1 | -1/+12 | |
We still need to clean up the HNB data structures after the connection is closed | |||||
2015-12-17 | hnbgw: Lower level of SCTP notif. msg to debug and set default log level to info | Daniel Willmann | 1 | -2/+2 | |
2015-12-16 | ranap_common: Add function to wrap IEs into a RANAP_ProtocolIE_FieldPair_t | Harald Welte | 2 | -4/+37 | |
The FieldPair is a strange construct of RANAP Radio Access Bearer assignment, where certain IEs appear in pairs. | |||||
2015-12-16 | hnbap_common: Fix copy+paste mistake (use hnbap msgb allocator) | Harald Welte | 1 | -1/+1 | |
2015-12-16 | WIP: add some early code for generating required RANAP messages | Harald Welte | 1 | -0/+207 | |
2015-12-16 | Add ranap_generate_outcome() function | Harald Welte | 2 | -3/+33 | |
Ranap has not only successsful and unsuccessful outcome, but also an unqualified general 'outcome'. | |||||
2015-12-16 | {hnbap,rua,ranap}_common.c: Reduce code duplicatioon | Harald Welte | 3 | -127/+83 | |
There used to be a lot of code duplication between the code to generate initiating, successfulOutcome and unsuccessfulOutcome messages. Try to reduce that by callign a generic function. | |||||
2015-12-16 | {rua,hnbap,ranap}_common: Add missing encoding functions | Harald Welte | 6 | -67/+107 | |
We used to only have those generator functions that we needed for the existing hnbgw code; Implement the missing encoders | |||||
2015-12-16 | hnbgw: Use the now-compiling RANAP encoder+decoder code | Harald Welte | 2 | -487/+3 | |
So far, we copy-pasted/cherry-picked individual encoder/decoder functions as the overall ranap_{encode,decode} didn't compile yet. As the latter is now finally compiling, we can remove those copies and link in ranap_{encode,decode}.o | |||||
2015-12-16 | One further RANAP hacking session | Harald Welte | 175 | -2241/+4680 | |
This is not development, it is random trial and error hacking. I really hate the fact that we have no useful asn.1 code generator and need to work with hacks like asn1tostruct.py and asn1c without information object classes :/ This commit is a one-day-long iteration of trial+error, manually editing and adding the .asn source of RANAP until we get something that in the end at least compiles and links. Do I trust the resulting code? No. But we have no alternative :( | |||||
2015-12-16 | RANAP: Add more types/IEs to RANAP-PDU.asn and re-generate C | Harald Welte | 83 | -25/+6008 | |
As asn1c cannot understand information object classes, we cannot compile RANAP-PDU-Contents.asn but instead need to manually add the respective infrmation elements to RANAP-PDU.asn. | |||||
2015-12-16 | Re-add the 'regen' targets lost in the automake transition | Harald Welte | 3 | -0/+23 | |
This might need a lot of cleanup for out-of-source-tree builds and the like, but let's not spend time on this now. The old Makefile also didn't support that. But loosing the ability to regenerate the C source is not an option either. | |||||
2015-12-16 | rename ASN_MODULE_FILES to ASN_MODULE_SOURCES | Harald Welte | 3 | -6/+6 | |
... brings us closer to the Makefile.am.sampl generated by asn1c, facilitating copy+paste. | |||||
2015-12-15 | Autotoolize the build | Daniel Willmann | 10 | -178/+128 | |
Use Autoconf/make for building and autotest for tests | |||||
2015-12-14 | hnb-test: Parse UE register accept | Daniel Willmann | 1 | -0/+27 | |
2015-12-14 | asn1helpers: Fix 24 bit conversion function and use it in hnbgw_hnbap | Daniel Willmann | 2 | -4/+4 | |
The 32 bit int needs to be shifted left one byte so the correct bytes end up at the beginning of the bit string buffer. | |||||
2015-12-14 | hnb-test: Send UE register request | Daniel Willmann | 1 | -1/+32 | |
2015-12-14 | hnb-test: Send HNB register request and parse the accept | Daniel Willmann | 2 | -1/+55 | |
2015-12-14 | hnb-test: setsockopt SCTP_EVENTS is needed to get the sctp_sndrcvinfo | Daniel Willmann | 1 | -1/+14 | |
2015-12-14 | asn1helpers: Add 28 bit conversion function and use it for Cell ID | Daniel Willmann | 3 | -4/+18 | |
The padding bits in the bit string are at the end and the byte-order is MSB-first. This means the number needs to be shifted left so the padding bits are the least significant. | |||||
2015-12-07 | tests/hnb-test: Generate the HNBAP registration request from ASN.1 | Daniel Willmann | 1 | -3/+39 | |
2015-12-07 | hnbap_common: Add function to HNBAP generate initiating message | Daniel Willmann | 2 | -15/+23 | |
An earlier version was commented out, this function now works like hnbap_generate_successful_outcome() | |||||
2015-12-07 | asn1helpers: Add helper to convert u8/u16 to OCTET_STRING | Daniel Willmann | 2 | -0/+15 | |
2015-12-03 | hnb-test: Send hard-coded HNB register request for now | Daniel Willmann | 1 | -0/+21 | |
2015-12-03 | tests: Add hnb-test to connect to hnbgw and tests its functions | Daniel Willmann | 3 | -1/+256 | |
Only connects currently | |||||
2015-12-02 | hnbgw: Add VTY commands to show info about connected HNBs and UEs | Daniel Willmann | 1 | -0/+43 | |
2015-11-30 | test-helpers: Also print out hexdump of encoded bit string | Daniel Willmann | 1 | -0/+7 | |
2015-11-30 | asn1helpers, test-helpers: Use ntoh/hton* to convert integers | Daniel Willmann | 3 | -14/+21 | |
Since the asn1_u32/24_to_bitstring functions need to change the source variable change the signature to clarify that the uint32_t * will be modified. | |||||
2015-11-30 | test-hnbap: Check CID and Identity Info as well | Daniel Willmann | 1 | -0/+5 | |
2015-11-30 | test-hnbap: Use different types for UE request and accept IEs | Daniel Willmann | 1 | -9/+10 | |
2015-11-27 | asn1helpers: Fix asn1str_to_uX functions | Daniel Willmann | 1 | -6/+8 | |
The values are stored big-endian so convert them | |||||
2015-11-27 | test-hnbap: Test decoding of the hnbap registration request | Daniel Willmann | 1 | -0/+50 | |
The 16-bit values are not decoded correctly | |||||
2015-11-24 | tests/test-hnbap: Decode HNBAP UE Register accept as well | Daniel Willmann | 1 | -1/+23 | |
2015-11-24 | tests: Add test-hnbap to test en-/decoding of HNBAP messages | Daniel Willmann | 2 | -1/+110 | |
Decode a HNBAP UE register request and check the result. | |||||
2015-11-23 | tests: Test cropping of string still is NULL-terminated | Daniel Willmann | 1 | -0/+9 | |
2015-11-23 | asn1helpers: Ensure that string is NULL-terminated | Daniel Willmann | 1 | -2/+2 | |
The buf in an OCTET_STRING_t is not (necessarily) NULL-terminated, so make sure there is a terminating NULL byte at the end in the resulting string. | |||||
2015-11-23 | tests: Test asn1_strncpy function | Daniel Willmann | 1 | -0/+15 | |