aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2021-01-25 17:02:25 +0100
committerdaniel <dwillmann@sysmocom.de>2021-02-12 14:19:20 +0000
commit1ff86f7cec32d39b84effa896569f8fc7ca703d2 (patch)
tree85bf72a3c478b7e0b793bda5e68ce49265b34513 /include
parentae9899561c56ae071b45713ad186585d2379dd6e (diff)
bssgp_bvc_fsm: Set/get maximum BSSGP PDU length
Add functions to get/set the maximum supported BSSGP PDU size by the NS layer. IPv4 and IPv6 should not matter since we can just enable IP fragmentation and send NS PDUs up to 2**16 + bytes. Frame relay does not support fragmentation and this is the reason we need to be aware of the maximum PDU size. Luckily with 1600 bytes the MTU in frame relay can hold a regular IP packet including NS/BSSGP overhead. On the NS layer this corresponds to the size of an NS SDU in NS-UNITDATA (3GPP TS 48.016 Ch. 9.2.10) Change-Id: I9bb82ead27366b7370c9ff968e03ca2113ec11f0 Related: OS#4889
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/gprs/bssgp_bvc_fsm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/osmocom/gprs/bssgp_bvc_fsm.h b/include/osmocom/gprs/bssgp_bvc_fsm.h
index e69c2051..824cdecb 100644
--- a/include/osmocom/gprs/bssgp_bvc_fsm.h
+++ b/include/osmocom/gprs/bssgp_bvc_fsm.h
@@ -64,3 +64,6 @@ uint8_t bssgp_bvc_fsm_get_block_cause(struct osmo_fsm_inst *fi);
uint32_t bssgp_bvc_get_features_advertised(struct osmo_fsm_inst *fi);
uint32_t bssgp_bvc_get_features_received(struct osmo_fsm_inst *fi);
uint32_t bssgp_bvc_get_features_negotiated(struct osmo_fsm_inst *fi);
+
+void bssgp_bvc_fsm_set_max_pdu_len(struct osmo_fsm_inst *fi, uint16_t max_pdu_len);
+uint16_t bssgp_bvc_fsm_get_max_pdu_len(const struct osmo_fsm_inst *fi); \ No newline at end of file