libosmo-sigtran 2.1.0.140-12dd
Osmocom SIGTRAN library
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
ss7_vty.h
Go to the documentation of this file.
1#pragma once
2
3/* Internal header used by libosmo-sccp, not available publicly for lib users */
4
5#include <stdbool.h>
6#include <stdint.h>
7
8#include <osmocom/vty/vty.h>
9
10#include <osmocom/netif/stream.h>
12
13#include "ss7_instance.h"
14
18};
19
20extern void *g_ctx;
21extern const struct value_string ipproto_vals[];
22
23#define CS7_STR "ITU-T Signaling System 7\n"
24#define PC_STR "Point Code\n"
25#define INST_STR "An instance of the SS7 stack\n"
26
27#define XUA_VAR_STR "(sua|m3ua|ipa)"
28
29#define XUA_VAR_HELP_STR \
30 "SCCP User Adaptation\n" \
31 "MTP3 User Adaptation\n" \
32 "IPA Multiplex (SCCP Lite)\n"
33
34#define IPPROTO_VAR_STR "(sctp|tcp)"
35#define IPPROTO_VAR_HELP_STR \
36 "SCTP (Stream Control Transmission Protocol)\n" \
37 "TCP (Transmission Control Protocol)\n"
38
39#define QOS_CLASS_RANGE_STR "<0-7>"
40#define QOS_CLASS_RANGE_HELP_STR "QoS Class\n"
41#define QOS_CLASS_VAR_STR "(" QOS_CLASS_RANGE_STR "|default)"
42#define QOS_CLASS_VAR_HELP_STR \
43 QOS_CLASS_RANGE_HELP_STR \
44 "Default QoS Class (0)\n"
45
46int parse_trans_proto(const char *protocol);
47enum osmo_ss7_asp_protocol parse_asp_proto(const char *protocol);
48
49/* ss7_asp_vty.c */
50void ss7_vty_init_node_asp(void);
51void ss7_vty_write_one_asp(struct vty *vty, struct osmo_ss7_asp *asp, bool show_dyn_config);
52int ss7_vty_node_asp_go_parent(struct vty *vty);
53
54/* ss7_as_vty.c */
55void ss7_vty_init_node_as(void);
56void ss7_vty_write_one_as(struct vty *vty, struct osmo_ss7_as *as, bool show_dyn_config);
57int ss7_vty_node_as_go_parent(struct vty *vty);
58
59/* ss7_xua_srv_vty.c */
60void ss7_vty_init_node_oxs(void);
61void ss7_vty_init_show_oxs(void);
62void ss7_vty_write_one_oxs(struct vty *vty, struct osmo_xua_server *xs);
63int ss7_vty_node_oxs_go_parent(struct vty *vty);
osmo_ss7_asp_protocol
Definition: osmo_ss7.h:157
void * g_ctx
Definition: ss7_vty.c:80
void ss7_vty_init_show_oxs(void)
Definition: ss7_xua_srv_vty.c:331
int ss7_vty_node_asp_go_parent(struct vty *vty)
Definition: ss7_asp_vty.c:1284
void ss7_vty_init_node_asp(void)
Definition: ss7_asp_vty.c:1313
void ss7_vty_write_one_as(struct vty *vty, struct osmo_ss7_as *as, bool show_dyn_config)
Definition: ss7_as_vty.c:398
void ss7_vty_init_node_oxs(void)
Definition: ss7_xua_srv_vty.c:337
enum osmo_ss7_asp_protocol parse_asp_proto(const char *protocol)
Definition: ss7_vty.c:70
int parse_trans_proto(const char *protocol)
Definition: ss7_vty.c:65
int ss7_vty_node_as_go_parent(struct vty *vty)
Definition: ss7_as_vty.c:579
cs7_role_t
Definition: ss7_vty.h:15
@ CS7_ROLE_ASP
Definition: ss7_vty.h:17
@ CS7_ROLE_SG
Definition: ss7_vty.h:16
void ss7_vty_write_one_oxs(struct vty *vty, struct osmo_xua_server *xs)
Definition: ss7_xua_srv_vty.c:213
void ss7_vty_init_node_as(void)
Definition: ss7_as_vty.c:587
void ss7_vty_write_one_asp(struct vty *vty, struct osmo_ss7_asp *asp, bool show_dyn_config)
Definition: ss7_asp_vty.c:1205
int ss7_vty_node_oxs_go_parent(struct vty *vty)
Definition: ss7_xua_srv_vty.c:317
const struct value_string ipproto_vals[]
Definition: ss7_vty.c:59
Definition: ss7_as.h:74
Definition: ss7_asp.h:42
Definition: ss7_xua_srv.h:22