Skip to content
This repository was archived by the owner on Sep 17, 2021. It is now read-only.

modulo order of operations error in mm-mac2ipv4.sh #29

@westbywest

Description

@westbywest

ip2=$(expr $ip2 % 32 + 96)

The javascript ipcalc script computes this as arr[0] %= 32 + 96;
To have the same order of operations, shell script usage would have to be ip2=$(expr $ip2 % $(expr 32 + 96))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions