ipaddr: make codes a bit compiler option -m option friendly