add some ip address manipulation functions