Conversation
sys/include/net/hdlc/fcs.h
Outdated
| @@ -0,0 +1,88 @@ | |||
| /* | |||
| * Copyright (C) 2015 José Ignacio Alamos <[email protected]> | |||
|
I think you're using tabs instead of white spaces. |
|
@OlegHahm do you think this could be merged? These are generic HDLC definitions but are needed for PPP. |
sys/include/net/hdlc/fcs.h
Outdated
| 0x6b46, 0x7acf, 0x4854, 0x59dd, 0x2d62, 0x3ceb, 0x0e70, 0x1ff9, | ||
| 0xf78f, 0xe606, 0xd49d, 0xc514, 0xb1ab, 0xa022, 0x92b9, 0x8330, | ||
| 0x7bc7, 0x6a4e, 0x58d5, 0x495c, 0x3de3, 0x2c6a, 0x1ef1, 0x0f78 | ||
| }; |
There was a problem hiding this comment.
This should be provided externally (i.e. via extern in some C-file), otherwise every file that includes this would need 512b of RAM.
There was a problem hiding this comment.
(and we should maybe quickly move this to a non-table solution, since we usually have more ROM than RAM)
There was a problem hiding this comment.
((but that we can do after this one is merged))
sys/include/net/hdlc/fcs.h
Outdated
| */ | ||
|
|
||
| /** | ||
| * @defgroup net_hdlc_fcs FCS calculation |
There was a problem hiding this comment.
Maybe this can be unified with sys_checksum_crc16_ccitt (I know, most likely different polynomial!) somehow?
There was a problem hiding this comment.
It's a different polynomial (see this). Maybe add another sys_checksum_crc function?
There was a problem hiding this comment.
@miri64 PPP uses CRC-CCITT with 0x8408 and 0xffff as initial value. I just read your implementation and I think it can be used for this case.
I will do some tests, in that case I can drop this file.
Cheers
|
@miri64 are we still on time to merge this? Or should be postponed? Cheers! |
|
@jia200x the release is already feature freezed since yesterday (as announced multiple times on the devel mailinglist) and the release has branched from master. Even if this PR were marked for the release (which it never was apparently) it would now be difficult to get it into the release, if that is what you want, since there needs to be a backport for it. If a maintainer finds time between testing and and bugfixing for the release to review this PR, it might get merged into master, but I would not put hopes into this. But we can merge this into master ASAP, so that it will be in 2017.01 most definitely. |
|
What are the chances for this release? |
|
Really high. I have been working all this weekend on it. I will try to
submit it tomorrow, or tuesday in worst case
El 15 ene. 2017 12:13 PM, "Oleg Hahm" <[email protected]> escribió:
What are the chances for this release?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#5471 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABM8SJOoIjPNAVbeHm5eN-xwzvKCWQ3Rks5rSjeLgaJpZM4IpHBa>
.
|
|
any new here, at least @miri64 comment regarding externalise the table was not addressed yet. |
Hi.
This PR contains the definitions of HDLC header and FCS, required by GNRC PPP.