blob: 61771460d65ffbc411ed2446e9ec6f203a065f38 [file] [log] [blame]
/*
* Copyright (c) 2003-2018, Great Software Laboratory Pvt. Ltd.
* Copyright (c) 2017 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef __GTPV2C_H_
#define __GTPV2C_H_
#include <stdint.h>
#include "s11_structs.h"
#define MAX_GTPV2C_UDP_LEN 4096
#define GTP_VERSION_GTPV2C 2
/* GTP Message Type */
#define GTP_CREATE_SESSION_REQ 32
#define GTP_CREATE_SESSION_RSP 33
#define GTP_MODIFY_BEARER_REQ 34
#define GTP_MODIFY_BEARER_RSP 35
#define GTP_DELETE_SESSION_REQ 36
#define GTP_DELETE_SESSION_RSP 37
//S1 Release
#define GTP_RELEASE_BEARER_REQ 170
enum gtpv2c_interfaces {
GTPV2C_IFTYPE_S1U_ENODEB_GTPU = 0,
};
void
set_gtpv2c_header(struct gtpv2c_header *gtpv2c_tx, uint8_t type,
uint32_t teid, uint32_t seq);
#endif /* __GTPV2C_H_ */