Fix serialization of SAP in DataHeader
This commit is contained in:
parent
f4fff47365
commit
d782d04296
1 changed files with 1 additions and 1 deletions
|
@ -222,7 +222,7 @@ func (h *DataHeader) Bytes() ([]byte, error) {
|
||||||
if h.HeaderCompression {
|
if h.HeaderCompression {
|
||||||
data[0] |= B00100000
|
data[0] |= B00100000
|
||||||
}
|
}
|
||||||
data[1] = (h.ServiceAccessPoint & B00001111)
|
data[1] = (h.ServiceAccessPoint << 4) & B11110000
|
||||||
data[2] = uint8(h.DstID >> 16)
|
data[2] = uint8(h.DstID >> 16)
|
||||||
data[3] = uint8(h.DstID >> 8)
|
data[3] = uint8(h.DstID >> 8)
|
||||||
data[4] = uint8(h.DstID)
|
data[4] = uint8(h.DstID)
|
||||||
|
|
Loading…
Add table
Reference in a new issue