Bug 1220391
Summary: | ipcalc doesn't work for IPv6 | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Nikos Mavrogiannopoulos <nmavrogi> |
Component: | initscripts | Assignee: | Lukáš Nykrýn <lnykryn> |
Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 21 | CC: | jonathan, lnykryn, martin.westermark, zbyszek |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2015-05-18 14:07:44 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1222423 | ||
Bug Blocks: | 883152, 1220694 |
Description
Nikos Mavrogiannopoulos
2015-05-11 13:09:47 UTC
Hmm it looks that -6 only work in combintaion with -c and -h . I will probably just document that other option does not work, but patches are highly appreciated. I need a tool that outputs something like http://jodies.de/ipcalc for IPv6 as well. I've put my "patch" to github: https://github.com/nmav/ipcalc I've made it backwards compatible, and print detailed information by default as well. Consider using that version for initscripts. $ ./ipcalc -i fd0b:a336:4e7d::/48 Full Address: fd0b:a336:4e7d:0000:0000:0000:0000:0000 Address: fd0b:a336:4e7d:: Full Network: fd0b:a336:4e7d:0000:0000:0000:0000:0000 Network: fd0b:a336:4e7d::/48 Address space: Unique Local Unicast Netmask: ffff:ffff:ffff:: = 48 HostMin: fd0b:a336:4e7d:: HostMax: fd0b:a336:4e7d:ffff:ffff:ffff:ffff:ffff Hosts/Net: 2^(80) $ ./ipcalc -bmnp --minaddr --maxaddr --addrspace fd0b:a336:4e7d::/48 NETMASK=ffff:ffff:ffff:: PREFIX=48 NETWORK=fd0b:a336:4e7d:: MINADDR=fd0b:a336:4e7d:: MAXADDR=fd0b:a336:4e7d:ffff:ffff:ffff:ffff:ffff ADDRSPACE="Unique Local Unicast" $ ./ipcalc -c fd0b:a336:4e7d::/48 $ ./ipcalc -4 -c fd0b:a336:4e7d::/48 ipcalc: bad prefix: 48 Thanks! Looks good. I will try to review it and merge those patches in upstream. Not sure if I will make it this week, unfortunately I am a little bit busy with rhel, but I have add it to my todo, so I will not forget. (In reply to Lukáš Nykrýn from comment #4) > Thanks! Looks good. I will try to review it and merge those patches in > upstream. > Not sure if I will make it this week, unfortunately I am a little bit busy > with rhel, but I have add it to my todo, so I will not forget. Wouldn't it make sense to make the github version the upstream one, and simply include it in initscripts? It could allow easier merging of fixes and updated. I could give you access to github repo if you want. I am trying to slowly destroy the initscripts package, so maybe would you be interested in the possibility of creating a new fedora package with your ipcalc? Then I could drop it from initscripts completely and be one more step closer to its elimination. (In reply to Lukáš Nykrýn from comment #6) > I am trying to slowly destroy the initscripts package, so maybe would you be > interested in the possibility of creating a new fedora package with your > ipcalc? If I do it, would you review the new package? > If I do it, would you review the new package?
Yep.
Fix scheduled for f23. |