[DEBUG] ipv4 parsing

If user happen to specify ipv4 in config file with less than three
digit at the last 8bit address space, address parsing not work
correctly.
Make it more readable and remove unused codes
Merge pull request #8 from kyuhojeong/ipv4_split

[DEBUG] ipv4 parsing