diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2019-11-07 08:25:24 +0100 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2019-11-28 22:57:22 +0100 |
commit | 153642348febb08d37ba127ad21c9e3835a67791 (patch) | |
tree | 79a5f1ac4e1edcfd68ad2496e28630c696ce48e3 /include/osmocom/gsm | |
parent | 392f607f2d42eb2839ccfc4c1b9e2c7cfaf3bcc2 (diff) |
add all missing OSMO_GSUP_TO_MSGT_*() macros
OSMO_GSUP_TO_MSGT_RESULT() is needed by osmo-hlr for osmo_gsup_req.
The others are added for completeness' sake.
Related: I3a8dff3d4a1cbe10d6ab08257a0138d6b2a082d9
Change-Id: I6e38a3bb8447f8f212f8d6f5b10a5d0df59323d7
Diffstat (limited to 'include/osmocom/gsm')
-rw-r--r-- | include/osmocom/gsm/gsup.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/osmocom/gsm/gsup.h b/include/osmocom/gsm/gsup.h index c883dfb6..285bc0c6 100644 --- a/include/osmocom/gsm/gsup.h +++ b/include/osmocom/gsm/gsup.h @@ -203,7 +203,10 @@ enum osmo_gsup_message_type { #define OSMO_GSUP_IS_MSGT_REQUEST(msgt) (((msgt) & 0b00000011) == 0b00) #define OSMO_GSUP_IS_MSGT_ERROR(msgt) (((msgt) & 0b00000011) == 0b01) +#define OSMO_GSUP_IS_MSGT_RESULT(msgt) (((msgt) & 0b00000011) == 0b10) +#define OSMO_GSUP_TO_MSGT_REQUEST(msgt) (((msgt) & 0b11111100)) #define OSMO_GSUP_TO_MSGT_ERROR(msgt) (((msgt) & 0b11111100) | 0b01) +#define OSMO_GSUP_TO_MSGT_RESULT(msgt) (((msgt) & 0b11111100) | 0b10) extern const struct value_string osmo_gsup_message_type_names[]; static inline const char * |