now pktinfo variable in callback is allocated in main and set to zero at the beginning of the callback. Freed at the end of the execution