added packet processing function prototypes.