aboutsummaryrefslogtreecommitdiffstats
path: root/src/gprs/gprs_sndcp_xid.c
AgeCommit message (Collapse)AuthorFilesLines
2018-11-15use enums consistently instead of falling back to intStefan Sperling1-49/+128
The two existing enums defined in gprs_sndcp_xid.h, for protocol and data compression algorithm numbers respectively, were assigned to 'int' variables when their values were copied to other structures. This prevented the compiler from checking the enum value coverage during switch statements and also tripped up Coverity scans looking for enum value mismatch problems. So instead of copying enums to ints, make use of the enums throughout. Structures which can contain values from both enums now use a union of both, forcing us to be very explicit about which set of values we are dealing with. Change-Id: I3771a5c59f4e6fee24083b3c914965baf192cbd7 Depends: If6f3598cd6da4643ff2214e21c0d21f6eff0eb67 Depends: I8444c1ed052707c76a979fb06cb018ac678defa7 Related: CID#149102
2018-11-12fix bogus assertion in encode_comp_field()Stefan Sperling1-1/+1
Fix an obvious logic bug in an assertion in encode_comp_field(). Found by: Neels Change-Id: If6f3598cd6da4643ff2214e21c0d21f6eff0eb67
2017-09-06move include/openbsc to include/osmocom/sgsnNeels Hofmeyr1-4/+4
Change-Id: I281ef585fffc2644682c8282224fb1c2da5ca795
2017-08-27move openbsc/* to repos rootNeels Hofmeyr1-0/+1822
This is the first step in creating this repository from the legacy openbsc.git. Like all other Osmocom repositories, keep the autoconf and automake files in the repository root. openbsc.git has been the sole exception, which ends now. Change-Id: I9c6f2a448d9cb1cc088cf1cf6918b69d7e69b4e7