Or you can make it shorter this way:
alias hex2ip { return $longip($base($1,16,10)) } alias ip2hex { return $base($longip($1),10,16) }