IPPORT_RESERVED and IPPORT_USERRESERVED are defined in <netinet/in.h>.