API for recursive network stacks