aboutsummaryrefslogtreecommitdiff
path: root/packets/messages/types/SvcPacketEntities.go
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2022-11-11 01:15:51 +0300
committerArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2023-09-16 21:39:41 +0300
commit9e02c214abefbd8c23e4ea84ef2e90fb0dfdc61a (patch)
tree4c5f81bccd9babcfd65d5d9f3d56704c9fd4930a /packets/messages/types/SvcPacketEntities.go
parentbetter debugging, still broken (diff)
downloadsdp.go-9e02c214abefbd8c23e4ea84ef2e90fb0dfdc61a.tar.gz
sdp.go-9e02c214abefbd8c23e4ea84ef2e90fb0dfdc61a.tar.bz2
sdp.go-9e02c214abefbd8c23e4ea84ef2e90fb0dfdc61a.zip
fixed net/svc messages, not reading data atm but working
Diffstat (limited to 'packets/messages/types/SvcPacketEntities.go')
-rw-r--r--packets/messages/types/SvcPacketEntities.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/packets/messages/types/SvcPacketEntities.go b/packets/messages/types/SvcPacketEntities.go
index 5fc27db..6621c3a 100644
--- a/packets/messages/types/SvcPacketEntities.go
+++ b/packets/messages/types/SvcPacketEntities.go
@@ -24,13 +24,15 @@ func ParseSvcPacketEntities(reader *bitreader.ReaderType) SvcPacketEntities {
24 baseline := reader.TryReadBool() 24 baseline := reader.TryReadBool()
25 updatedentries := reader.TryReadBits(11) 25 updatedentries := reader.TryReadBits(11)
26 length := reader.TryReadBits(20) 26 length := reader.TryReadBits(20)
27 updatebaseline := reader.TryReadBool()
28 reader.SkipBits(int(length)) // TODO: Read data properly
27 return SvcPacketEntities{ 29 return SvcPacketEntities{
28 MaxEntries: uint16(maxentries), 30 MaxEntries: uint16(maxentries),
29 IsDelta: isdelta, 31 IsDelta: isdelta,
30 DeltaFrom: deltafrom, 32 DeltaFrom: deltafrom,
31 BaseLine: baseline, 33 BaseLine: baseline,
32 UpdatedEntries: uint16(updatedentries), 34 UpdatedEntries: uint16(updatedentries),
33 UpdateBaseline: reader.TryReadBool(), 35 UpdateBaseline: updatebaseline,
34 Data: reader.TryReadBytesToSlice(int(length / 8)), 36 // Data: reader.TryReadBytesToSlice(int(length / 8)),
35 } 37 }
36} 38}