Add some assert() calls to ng_ipaddr library