update it

This commit is contained in:
Sukchan Lee 2017-04-03 22:48:37 +09:00
parent 7c6de2e95f
commit 9d2e2d3319
4 changed files with 5 additions and 9 deletions

View File

@ -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
******************************************************************************/

View File

@ -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(

View File

@ -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;
}

View File

@ -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);