in reply to Increment MAC address
As for a solution: try turning the hexadicimal string into a number, increment, and convert it back to a hex string:
$next = sprintf "%012x", hex($ip)+1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Increment MAC address
by BrowserUk (Patriarch) on Jun 19, 2005 at 11:26 UTC | |
by ikegami (Patriarch) on Jun 19, 2005 at 16:31 UTC | |
by BrowserUk (Patriarch) on Jun 19, 2005 at 17:03 UTC |