NetAddr: add hash, fix enum size