pktgen: Fix unsigned function that is returning negative vals