mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-hnodeb.git
synced 2025-11-03 05:33:32 +00:00
Move Iuh code to its own module
The Iuh code will be further extended next to properly support reconnect, and hnb will also gain proper shutdown support soon. Change-Id: I6e94210ab06a34b70c61bb074c58d7b0f4ee75de
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
noinst_HEADERS = \
|
||||
hnbap.h \
|
||||
hnodeb.h \
|
||||
iuh.h \
|
||||
nas.h \
|
||||
ranap.h \
|
||||
rua.h \
|
||||
|
||||
@@ -36,18 +36,6 @@ enum {
|
||||
};
|
||||
extern const struct log_info hnb_log_info;
|
||||
|
||||
/* 25.467 Section 7.1 */
|
||||
#define IUH_DEFAULT_SCTP_PORT 29169
|
||||
#define RNA_DEFAULT_SCTP_PORT 25471
|
||||
|
||||
#define IUH_PPI_RUA 19
|
||||
#define IUH_PPI_HNBAP 20
|
||||
#define IUH_PPI_SABP 31
|
||||
#define IUH_PPI_RNA 42
|
||||
#define IUH_PPI_PUA 55
|
||||
|
||||
#define IUH_MSGB_SIZE 2048
|
||||
|
||||
struct hnb_chan {
|
||||
int is_ps;
|
||||
uint32_t conn_id;
|
||||
@@ -77,11 +65,9 @@ struct hnb {
|
||||
struct hnb_chan *chan;
|
||||
} cs;
|
||||
};
|
||||
|
||||
struct hnb *hnb_alloc(void *tall_ctx);
|
||||
void hnb_free(struct hnb *hnb);
|
||||
int hnb_connect(struct hnb *hnb);
|
||||
|
||||
int hnb_iuh_send(struct hnb *hnb, struct msgb *msg);
|
||||
|
||||
extern void *tall_hnb_ctx;
|
||||
extern struct hnb *g_hnb;
|
||||
|
||||
41
include/osmocom/hnodeb/iuh.h
Normal file
41
include/osmocom/hnodeb/iuh.h
Normal file
@@ -0,0 +1,41 @@
|
||||
/* (C) 2015 by Daniel Willmann <dwillmann@sysmocom.de>
|
||||
* (C) 2021 by sysmocom - s.f.m.c. GmbH <info@sysmocom.de>
|
||||
* Author: Pau Espin Pedrol <pespin@sysmocom.de>
|
||||
* All Rights Reserved
|
||||
*
|
||||
* 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/msgb.h>
|
||||
|
||||
/* 25.467 Section 7.1 */
|
||||
#define IUH_DEFAULT_SCTP_PORT 29169
|
||||
#define RNA_DEFAULT_SCTP_PORT 25471
|
||||
|
||||
#define IUH_PPI_RUA 19
|
||||
#define IUH_PPI_HNBAP 20
|
||||
#define IUH_PPI_SABP 31
|
||||
#define IUH_PPI_RNA 42
|
||||
#define IUH_PPI_PUA 55
|
||||
|
||||
#define IUH_MSGB_SIZE 2048
|
||||
|
||||
struct hnb;
|
||||
|
||||
void hnb_iuh_alloc(struct hnb *hnb);
|
||||
void hnb_iuh_free(struct hnb *hnb);
|
||||
int hnb_iuh_connect(struct hnb *hnb);
|
||||
int hnb_iuh_send(struct hnb *hnb, struct msgb *msg);
|
||||
Reference in New Issue
Block a user