Allocate ifp before initializing it