forked from acouzens/open5gs
update it
This commit is contained in:
parent
7c6de2e95f
commit
9d2e2d3319
|
@ -26,7 +26,7 @@
|
|||
/*******************************************************************************
|
||||
* This file had been created by gtp_tlv.py script v0.1.0
|
||||
* Please do not modify this file but regenerate it via script.
|
||||
* Created on: 2017-04-03 22:08:53.881395 by acetcom
|
||||
* Created on: 2017-04-03 22:47:53.798904 by acetcom
|
||||
* from 29274-d80.docx
|
||||
******************************************************************************/
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
/*******************************************************************************
|
||||
* This file had been created by gtp_tlv.py script v0.1.0
|
||||
* Please do not modify this file but regenerate it via script.
|
||||
* Created on: 2017-04-03 22:08:53.871041 by acetcom
|
||||
* Created on: 2017-04-03 22:47:53.789060 by acetcom
|
||||
* from 29274-d80.docx
|
||||
******************************************************************************/
|
||||
|
||||
|
@ -722,8 +722,6 @@ typedef struct _gtp_message_t {
|
|||
};
|
||||
} gtp_message_t;
|
||||
|
||||
#define gtp_msg_type(__pk) (((c_uint8_t *)((__pk)->payload))[1])
|
||||
|
||||
CORE_DECLARE(status_t) gtp_parse_msg(
|
||||
gtp_message_t *gtp_message, c_uint8_t type, pkbuf_t *pkbuf);
|
||||
CORE_DECLARE(status_t) gtp_build_msg(
|
||||
|
|
|
@ -364,12 +364,12 @@ status_t gtp_xact_receive(gtp_xact_t *xact,
|
|||
{
|
||||
/* Retransmitted */
|
||||
pkbuf_free(pkbuf);
|
||||
|
||||
return CORE_ERROR;
|
||||
}
|
||||
|
||||
rv = gtp_parse_msg(gtp_message, type, pkbuf);
|
||||
d_assert(rv == CORE_OK, return CORE_ERROR, "parse error");
|
||||
d_assert(rv == CORE_OK,
|
||||
pkbuf_free(pkbuf); return CORE_ERROR, "parse error");
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
|
|
@ -461,9 +461,7 @@ for (k, v) in sorted_msg_list:
|
|||
f.write(" };\n");
|
||||
f.write("} gtp_message_t;\n\n")
|
||||
|
||||
f.write("""#define gtp_msg_type(__pk) (((c_uint8_t *)((__pk)->payload))[1])
|
||||
|
||||
CORE_DECLARE(status_t) gtp_parse_msg(
|
||||
f.write("""CORE_DECLARE(status_t) gtp_parse_msg(
|
||||
gtp_message_t *gtp_message, c_uint8_t type, pkbuf_t *pkbuf);
|
||||
CORE_DECLARE(status_t) gtp_build_msg(
|
||||
pkbuf_t **pkbuf, c_uint8_t type, gtp_message_t *gtp_message);
|
||||
|
|
Loading…
Reference in New Issue