[COSMETIC] ether address zero truncate
Oscar Fudd <[email protected]>
| Newsgroups | gmane.linux.network.bridge.ebtables.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi! I just started using ebtables, and it's a great program! I'm noticing a small problem though... # ebtables -L --Lc --Ln Bridge table: filter Bridge chain: INPUT, entries: 0, policy: ACCEPT Bridge chain: FORWARD, entries: 0, policy: ACCEPT Bridge chain: OUTPUT, entries: 0, policy: ACCEPT Bridge chain: newaccounting, entries: 64, policy: ACCEPT -s 0:d0:b7:b8:38:2d -j ACCEPT -s 0:3:47:6e:86:e2 -j ACCEPT The ether_ntoa() function (used by ebtables) doesn't print leading zeroes. Other commands do. (arp -an, brctl showmacs ...) As a result, my perl program can't compare the output of these commands as easily as expected, and the columns don't line up when showing the rules. Would it be a good idea to add leading zeroes? Thanks! -- Oscar Fudd <[email protected]> ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf