anjana_sreekumar@infosys.com | 991c206 | 2020-01-08 11:42:57 +0530 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (c) 2003-2018, Great Software Laboratory Pvt. Ltd. |
| 3 | * Copyright (c) 2017 Intel Corporation |
| 4 | * |
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | * you may not use this file except in compliance with the License. |
| 7 | * You may obtain a copy of the License at |
| 8 | * |
| 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | * |
| 11 | * Unless required by applicable law or agreed to in writing, software |
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | * See the License for the specific language governing permissions and |
| 15 | * limitations under the License. |
| 16 | */ |
| 17 | |
| 18 | #ifndef __GTPV2C_H_ |
| 19 | #define __GTPV2C_H_ |
| 20 | |
| 21 | #include <stdint.h> |
| 22 | |
| 23 | #include "s11_structs.h" |
| 24 | |
| 25 | #define MAX_GTPV2C_UDP_LEN 4096 |
| 26 | |
| 27 | #define GTP_VERSION_GTPV2C 2 |
| 28 | |
| 29 | /* GTP Message Type */ |
| 30 | #define GTP_CREATE_SESSION_REQ 32 |
| 31 | #define GTP_CREATE_SESSION_RSP 33 |
| 32 | #define GTP_MODIFY_BEARER_REQ 34 |
| 33 | #define GTP_MODIFY_BEARER_RSP 35 |
| 34 | #define GTP_DELETE_SESSION_REQ 36 |
| 35 | #define GTP_DELETE_SESSION_RSP 37 |
| 36 | //S1 Release |
| 37 | #define GTP_RELEASE_BEARER_REQ 170 |
| 38 | |
| 39 | enum gtpv2c_interfaces { |
| 40 | GTPV2C_IFTYPE_S1U_ENODEB_GTPU = 0, |
| 41 | }; |
| 42 | |
| 43 | |
| 44 | void |
| 45 | set_gtpv2c_header(struct gtpv2c_header *gtpv2c_tx, uint8_t type, |
| 46 | uint32_t teid, uint32_t seq); |
| 47 | |
| 48 | #endif /* __GTPV2C_H_ */ |