mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-upf.git
synced 2025-10-23 08:12:03 +00:00
46 lines
1.4 KiB
C
46 lines
1.4 KiB
C
/* (C) 2021-2022 by sysmocom - s.f.m.c. GmbH <info@sysmocom.de>
|
|
* All Rights Reserved
|
|
*
|
|
* Author: Neels Hofmeyr <nhofmeyr@sysmocom.de>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU Affero General Public License as published by
|
|
* the Free Software Foundation; either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU Affero General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/lienses/>.
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <osmocom/core/linuxlist.h>
|
|
|
|
struct osmo_pfcp_msg;
|
|
struct osmo_pfcp_endpoint;
|
|
struct osmo_sockaddr;
|
|
|
|
#define UP_USE_MSG_RX "msg-rx"
|
|
#define UP_USE_MSG_TX "msg-tx"
|
|
|
|
struct up_endpoint {
|
|
struct osmo_pfcp_endpoint *pfcp_ep;
|
|
|
|
struct llist_head peers;
|
|
|
|
uint64_t next_seid_state;
|
|
uint32_t next_teid_state;
|
|
};
|
|
|
|
struct up_endpoint *up_endpoint_init(void *ctx, const struct osmo_sockaddr *local_addr);
|
|
void up_endpoint_free(struct up_endpoint **ep);
|
|
|
|
uint64_t up_endpoint_next_seid(struct up_endpoint *ep);
|
|
uint32_t up_endpoint_next_teid(struct up_endpoint *ep);
|