Fix input packet
This commit is contained in:
parent
73f8c6542b
commit
fa73d0f1ae
1 changed files with 1 additions and 1 deletions
|
|
@ -328,7 +328,7 @@ func (device *Device) InputPacket(destination []byte, packetSlices [][]byte) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
elem := device.NewOutboundElement()
|
elem := device.NewOutboundElement()
|
||||||
packet := elem.buffer[MessageTransportHeaderSize:]
|
packet := elem.buffer[MessageEncapsulatingTransportSize+MessageTransportHeaderSize:]
|
||||||
var n int
|
var n int
|
||||||
for _, packetSlice := range packetSlices {
|
for _, packetSlice := range packetSlices {
|
||||||
n += copy(packet[n:], packetSlice)
|
n += copy(packet[n:], packetSlice)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue