Ensure all pdus use pointer to header
All checks were successful
Run Tests / Test (push) Successful in 20s
Benchmark BufferPool / RunBenchmarks (push) Successful in 23s

This commit is contained in:
2024-07-24 19:22:41 +02:00
parent 14c861ccb4
commit 2453d639ff
6 changed files with 13 additions and 13 deletions

View File

@@ -2,7 +2,7 @@ package pdu
type ( type (
BIND struct { BIND struct {
header PDU_HEADER header *PDU_HEADER
system_id string system_id string
password string password string
system_type string system_type string
@@ -12,7 +12,7 @@ type (
address_range string address_range string
} }
BIND_RESP struct { BIND_RESP struct {
header PDU_HEADER header *PDU_HEADER
system_id string system_id string
sc_interface_version byte sc_interface_version byte
} }
@@ -36,9 +36,9 @@ type (
} }
UNBIND struct { UNBIND struct {
PDU_HEADER header *PDU_HEADER
} }
UNBIND_RESP struct { UNBIND_RESP struct {
PDU_HEADER header *PDU_HEADER
} }
) )

View File

@@ -2,7 +2,7 @@ package pdu
type ( type (
CANCEL_SM struct { CANCEL_SM struct {
header PDU_HEADER header *PDU_HEADER
service_type string service_type string
message_id string message_id string
source_addr_ton byte source_addr_ton byte
@@ -13,6 +13,6 @@ type (
destination_addr string destination_addr string
} }
CANCEL_SM_RESP struct { CANCEL_SM_RESP struct {
header PDU_HEADER header *PDU_HEADER
} }
) )

View File

@@ -2,11 +2,11 @@ package pdu
type ( type (
DELIVER_SM struct { DELIVER_SM struct {
header PDU_HEADER header *PDU_HEADER
SUBMIT_SM SUBMIT_SM
} }
DELIVER_SM_RESP struct { DELIVER_SM_RESP struct {
header PDU_HEADER header *PDU_HEADER
SUBMIT_SM_RESP SUBMIT_SM_RESP
} }
) )

View File

@@ -2,9 +2,9 @@ package pdu
type ( type (
ENQUIRE_LINK struct { ENQUIRE_LINK struct {
header PDU_HEADER header *PDU_HEADER
} }
ENQUIRE_LINK_RESP struct { ENQUIRE_LINK_RESP struct {
header PDU_HEADER header *PDU_HEADER
} }
) )

View File

@@ -22,7 +22,7 @@ type (
} }
GENERIC_NACK struct { GENERIC_NACK struct {
header PDU_HEADER header *PDU_HEADER
} }
) )

View File

@@ -9,7 +9,7 @@ import (
type ( type (
SUBMIT_SM struct { SUBMIT_SM struct {
header PDU_HEADER header *PDU_HEADER
service_type string service_type string
source_addr_ton byte source_addr_ton byte
source_addr_npi byte source_addr_npi byte
@@ -58,7 +58,7 @@ type (
// ussd_service_op byte // ussd_service_op byte
} }
SUBMIT_SM_RESP struct { SUBMIT_SM_RESP struct {
header PDU_HEADER header *PDU_HEADER
message_id string message_id string
} }
SUBMIT_MULTI struct{} SUBMIT_MULTI struct{}