diff options
| author | yangwei <[email protected]> | 2023-07-23 23:13:11 +0800 |
|---|---|---|
| committer | yangwei <[email protected]> | 2023-07-24 00:14:45 +0800 |
| commit | 71a6040f8a59a77535130337b8c7b1eb5fd2672f (patch) | |
| tree | 72c3cd07a1b7381efe962040cfce83de83635a86 /src | |
| parent | 0c02227c588f7cd074891a78237335eb86aa78bf (diff) | |
Diffstat (limited to 'src')
| -rw-r--r-- | src/MESA_jump_layer.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/MESA_jump_layer.cpp b/src/MESA_jump_layer.cpp index f91f1c0..c24a4f0 100644 --- a/src/MESA_jump_layer.cpp +++ b/src/MESA_jump_layer.cpp @@ -211,7 +211,11 @@ static int __mjl_gtp_calc_gtp_hdr_len(const struct gtp_hdr *gtph) return -1; } - if(gtph->len > 1460) + if(gtph->msg_type != 0xFF){ + return -1; + } + + if(ntohs(gtph->len) > 1460 || ntohs(gtph->len) < 40) { return -1; } |
