Closed westbywest closed 6 years ago
What was your reason for closing? Is this not actually occurring?
See issue #29. The arithmetic for modulo + offset is presumably by design. Underlying problem affecting me was a discrepancy in order of operations.
https://github.com/pittmesh/ip-calculator/blob/954e2e39cce62a66f687337f42e0d82a8725f6f9/mm-mac2ipv4.sh#L90 https://github.com/pittmesh/ip-calculator/blob/954e2e39cce62a66f687337f42e0d82a8725f6f9/mm-mac2ipv4.sh#L91 The printf lines above already convert hex to decimal. This arithmetic yields incorrect values.