Code to work with IP networking layers