New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect type for MIP6-Home-Link-Prefix #2269
Comments
Wow. That's just garbage. |
Well, wireshark uses the ipv6prefix-format for this attribute as well, so I guess most of the world has got it wrong. Not really surprising |
Wireshark copies the FreeRADIUS dictionaries. :( |
Pick up the current version ("current" as in "picked up from a recent checkout of the FreeRADIUS/freeradius-server repository on GitHub") of dictionary.rfc5447. See FreeRADIUS/freeradius-server#2269 and some of the discussion in the-tcpdump-group/tcpdump#636 Change-Id: Ib21838684ac250ff1f02fcea6c1e5ca865b4b6ff Reviewed-on: https://code.wireshark.org/review/28935 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Pick up the current version ("current" as in "picked up from a recent checkout of the FreeRADIUS/freeradius-server repository on GitHub") of dictionary.rfc5447. See FreeRADIUS/freeradius-server#2269 and some of the discussion in the-tcpdump-group/tcpdump#636 Change-Id: Ib21838684ac250ff1f02fcea6c1e5ca865b4b6ff Reviewed-on: https://code.wireshark.org/review/28935 Reviewed-by: Guy Harris <guy@alum.mit.edu> (cherry picked from commit 7b6181a) Reviewed-on: https://code.wireshark.org/review/28936
Pick up the current version ("current" as in "picked up from a recent checkout of the FreeRADIUS/freeradius-server repository on GitHub") of dictionary.rfc5447. See FreeRADIUS/freeradius-server#2269 and some of the discussion in the-tcpdump-group/tcpdump#636 Change-Id: Ib21838684ac250ff1f02fcea6c1e5ca865b4b6ff Reviewed-on: https://code.wireshark.org/review/28935 Reviewed-by: Guy Harris <guy@alum.mit.edu> (cherry picked from commit 7b6181a) Reviewed-on: https://code.wireshark.org/review/28937
Pick up the current version ("current" as in "picked up from a recent checkout of the FreeRADIUS/freeradius-server repository on GitHub") of dictionary.rfc5447. See FreeRADIUS/freeradius-server#2269 and some of the discussion in the-tcpdump-group/tcpdump#636 Change-Id: Ib21838684ac250ff1f02fcea6c1e5ca865b4b6ff Reviewed-on: https://code.wireshark.org/review/28935 Reviewed-by: Guy Harris <guy@alum.mit.edu> (cherry picked from commit 7b6181a) Reviewed-on: https://code.wireshark.org/review/28938
The alternative would be worse. As noted above, Wireshark's picked up the change, and it's been backported to the Wireshark 2.6, 2.4, and 2.2 branches, so the next 2.6.x, 2.4.x, and 2.2.x releases should have the fix. |
On Aug 3, 2018, at 12:38 AM, Guy Harris ***@***.***> wrote:
Wireshark copies the FreeRADIUS dictionaries.
Yup. My unhappy face was not about the copying, but about the propagation of the error.
$ wc -l radius/dictionary.* | tail -1
23669 total
The alternative would be worse.
As noted above, Wireshark's picked up the change, and it's been backported to the Wireshark 2.6, 2.4, and 2.2 branches, so the next 2.6.x, 2.4.x, and 2.2.x releases should have the fix.
Thanks.
Some other projects copy the FR dictionaries, make local changes, and then never send the changes back. That behaviour should be discouraged.
|
Besides that, RFC 5447 defines MIP6-Feature-Vector as Unsigned64, not OctetString. Both attributes from RFC 5447 have incorrect types in the registry (already reported). |
I've pushed a fix for MIP6-Feature-Vector |
Thank you! |
Notify to @guyharris You might want to import that change in Wireshark as well |
It doesn't appear to have shown up in https://github.com/FreeRADIUS/freeradius-server.git yet. |
It is available in the 3.0-branch |
I.e., the master branch doesn't have the latest version of the code or dictionaries? So from which branch should I be picking up dictionaries? master, or a release branch? |
I've just pushed it to the master branch. My $0.02 is that wireshark should be grabbing the dictionaries from the v3.0.x branch. That's stable. The master branch is being actively developed, and we're re-working much of the architecture. Including how dictionaries are handled, parsed, and what data types are allowed. I don't think Wireshark wants to keep updating their code to stay in sync with a moving target. So the v3.0.x branch is the best choice for now. |
OK, I've picked up the dictionary.rfc5447 file from that branch.
So is the syntax of dictionary files changing? |
So is the syntax of dictionary files changing?
It's being extended.
Keywords are being added to specify complex structural attributes, i.e. those containing multiple fixed fields and variable fields.
Keywords are being added to allow "foreign" attributes i.e. DHCP in RADIUS.
Some dictionary files will also be qualified with protocol blocks, specifying global options for the attributes, and indicating which protocol they belong to.
The majority of keywords will be consistent with v3.0.x, but many files will be moved/reorganised.
As of v4.0.x FreeRADIUS is not a RADIUS server, it's a multi-protocol policy server which implements RADIUS.
|
Issue type
Defect/Feature description
The dictionaries list
MIP6-Home-Link-Prefix
as typeipv6prefix
, just as e.g.Framed-IPv6-Prefix
. However, there is a subtle difference in the RFCs here.Framed-IPv6-Prefix
has a payload of 1 reserved bytes (always 0x00), 1 byte for prefix-length (range 0x00-0x7f) and 0-16 bytes for the address (bytes outside the address mask may be omitted).MIP6-Home-Link-Prefix
does not have the reserved byte, and always uses 16 bytes for the address.The text was updated successfully, but these errors were encountered: