Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Titan » RAW coder: length field with offset
RAW coder: length field with offset [message #1769212] Thu, 27 July 2017 19:56 Go to next message
Harald Welte is currently offline Harald WelteFriend
Messages: 48
Registered: July 2017
Location: Berlin, Germany
Member

In some protocols, such as 3GPP TS 44.060 there are variable-length fields + a length field. However, the special aspect is that the length field doesn't encode the number of octets within the field, but the mumber of octets - 3, or something like that.

so something like

type Foo {
    uint8_t foo_len,
    octetstring foo
} with {
    variant (foo_len) "LENGTHTO(foo)-3"
}; 

would be semantically required. I suppose it is not possible to express this with the TITAN RAW codec?
Re: RAW coder: length field with offset [message #1769369 is a reply to message #1769212] Mon, 31 July 2017 06:16 Go to previous messageGo to next message
Elemer Lelik is currently offline Elemer LelikFriend
Messages: 807
Registered: January 2015
Senior Member
Hi Harald,

we are looking into this; let me come back to you.

Best regards
Elemer
Re: RAW coder: length field with offset [message #1772550 is a reply to message #1769369] Tue, 12 September 2017 09:30 Go to previous messageGo to next message
Elemer Lelik is currently offline Elemer LelikFriend
Messages: 807
Registered: January 2015
Senior Member
Hi Harald,

this has been implemented, see

https://bugs.eclipse.org/bugs/show_bug.cgi?id=522154


BR

Elemer


Re: RAW coder: length field with offset [message #1772608 is a reply to message #1772550] Wed, 13 September 2017 04:04 Go to previous message
Harald Welte is currently offline Harald WelteFriend
Messages: 48
Registered: July 2017
Location: Berlin, Germany
Member

Thanks a lot for your excellent support!
Previous Topic:Test port for serial communication
Next Topic:IPL4 port dynamic error
Goto Forum:
  


Current Time: Thu Sep 20 01:13:29 GMT 2018

Powered by FUDForum. Page generated in 0.02225 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top