added code to open raw sockets for all ethernet ports