Skip to content
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

Closed
herwinw opened this issue Aug 2, 2018 · 15 comments
Closed

Incorrect type for MIP6-Home-Link-Prefix #2269

herwinw opened this issue Aug 2, 2018 · 15 comments

Comments

@herwinw
Copy link
Contributor

herwinw commented Aug 2, 2018

Issue type

  • Defect - Non compliance with a standards document, or incorrect API usage.

Defect/Feature description

The dictionaries list MIP6-Home-Link-Prefix as type ipv6prefix, 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.

alandekok added a commit that referenced this issue Aug 2, 2018
@arr2036
Copy link
Member

arr2036 commented Aug 2, 2018

Wow. That's just garbage.

@herwinw
Copy link
Contributor Author

herwinw commented Aug 2, 2018

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

@alandekok
Copy link
Member

Wireshark copies the FreeRADIUS dictionaries. :(

ghost pushed a commit to wireshark/wireshark that referenced this issue Aug 3, 2018
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>
ghost pushed a commit to wireshark/wireshark that referenced this issue Aug 3, 2018
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
ghost pushed a commit to wireshark/wireshark that referenced this issue Aug 3, 2018
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
ghost pushed a commit to wireshark/wireshark that referenced this issue Aug 3, 2018
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
@guyharris
Copy link

Wireshark copies the FreeRADIUS dictionaries.

$ 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.

@alandekok
Copy link
Member

alandekok commented Aug 3, 2018 via email

@infrastation
Copy link

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).

@alandekok
Copy link
Member

I've pushed a fix for MIP6-Feature-Vector

@infrastation
Copy link

Thank you!

@herwinw
Copy link
Contributor Author

herwinw commented Aug 6, 2018

Notify to @guyharris You might want to import that change in Wireshark as well

@guyharris
Copy link

I've pushed a fix for MIP6-Feature-Vector

It doesn't appear to have shown up in https://github.com/FreeRADIUS/freeradius-server.git yet.

@herwinw
Copy link
Contributor Author

herwinw commented Aug 6, 2018

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

e4f385f

@guyharris
Copy link

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?

@alandekok
Copy link
Member

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.

@guyharris
Copy link

My $0.02 is that wireshark should be grabbing the dictionaries from the v3.0.x branch. That's stable.

OK, I've picked up the dictionary.rfc5447 file from that branch.

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.

So is the syntax of dictionary files changing?

@arr2036
Copy link
Member

arr2036 commented Aug 6, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants