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

ch8/ch8-mac: Clear Unicast/Multicast bit #101

Open
wants to merge 1 commit into
base: 1st-edition
Choose a base branch
from

Commits on Jan 10, 2023

  1. ch8/ch8-mac: Clear Unicast/Multicast bit

    To match MAC address specification (eg, as summarised at
    https://en.wikipedia.org/wiki/MAC_address#Address_details)
    and Figure 8.4 of the text, clear the LSB of the 1st octet
    when generating the MAC address, rather than setting it.
    Also update check for "is_unicast()" to match.
    
    Equivalent fix (from 2020-08-13) in the ch8-mget example:
    rust-in-action#7 (comment)
    ewenmcneill committed Jan 10, 2023
    Configuration menu
    Copy the full SHA
    5a9a8ab View commit details
    Browse the repository at this point in the history