Use unsigned short for both per1 and per2.
Authored by: utunnels 2011-09-26
Parent: [r3473]
Child: [r3475]