gprs: Some optimizations and fixes. Preparations for tun tunneling.

Change-Id: Ie19119160b31349a8ced78b9c3412e1712d67427