Fixed printIP function in netFunctions.c and narrowed down the segfault in the packet to a few lines dealing with the icmp struct I created. Those lines are commented out and ping will run as normal, but will get no packets back.