Skip to content

Handle uppercase MAC address #2

Open
@Livy-Inverse

Description

@Livy-Inverse

This should work:

    a|A)
        second_rev=8;
        ;;
    c|C)
        second_rev=e;
        ;;
    e|E)
        second_rev=c;
        ;;
    *)
        #impossible
        die "MAC address \"${mac}\" is registered to the IEEE database, "\
            "but the first octet (${first}${second}) is regarded as invalid. "\
            "(probably a bug in this script...)"

By the way, why are odd numbers considered invalid? In other word, why the 8th bit of a MAC address cannot be binary 1?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions