|
Jacob S. Barrett wrote:
>
> I thought it might be good to repost this with some changes...
>
> Okay a little smaller... Only a 4 byte header...
>
> |0|1|2|3|4|5|6|7|0|1|2|3|4|5|6|7|0|1|2|3|4|5|6|7|0|1|2|3|4|5|6|7|
> -----------------------------------------------------------------
> | 0xF | VER | TOADDR | PORT| FRADDR | PORT| PAYLOADLEN |
> -----------------------------------------------------------------
> / PAYLOAD /
> -----------------------------------------------------------------
> / PAYLOAD / CRC16 |
> -----------------------------------------------------------------
>
> 0-3: The first nibble with help the OS understand that this incoming
> data is
> the LNP protocol.
>
> 4-5: The version number of the protocol we are using. Only gives us 16
> tries to get it right...
Actually, no. On attempt 16, you reserve some more bits further down for
the new version number :-)
Cheers,
Ben.
--
http://www.apache-ssl.org/ben.html
"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there."
- Indira Gandhi
|
|
Message has 1 Reply: | | RE: LNP Repost
|
| Very true, but lets try hard not to add any more bytes to the header. The smaller the better since the packets are probably pretty small. -Jake -----Original Message----- From: Ben Laurie [mailto:ben@algroup.co.uk] Sent: Saturday, April 17, 1999 (...) (26 years ago, 17-Apr-99, to lugnet.robotics.rcx.legos)
|
Message is in Reply To:
| | LNP Repost
|
| I thought it might be good to repost this with some changes... Okay a little smaller... Only a 4 byte header... |0|1|2|3|4|5|6|7|0|1...3|4|5|6|7| ---...--- | 0xF | VER | TOADDR | PORT| FRADDR | PORT| PAYLOADLEN | ---...--- / PAYLOAD / ---...--- / (...) (26 years ago, 16-Apr-99, to lugnet.robotics.rcx.legos)
|
21 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|