TIPC_MAX_PORT
u32 remaining = (TIPC_MAX_PORT - TIPC_MIN_PORT) + 1;
if ((portid < TIPC_MIN_PORT) || (portid > TIPC_MAX_PORT))