Click to See Complete Forum and Search --> : Unix equivalent of linux/if_packet.h


tecknophreak
11-29-2004, 12:15 PM
I've got some linux code which someone will want to port over to unix. However, it contains:

#include <linux/if_packet.h>
#include <linux/if_ether.h>
#include <linux/ip.h>
#include <linux/udp.h>

I'm guessing unix does not include linux headers. ;) I don't have a Unix machine so I was just wondering if the porting just requires changing linux/*.h to unix/*.h.

Stuka
11-29-2004, 08:43 PM
This may very well depend on WHICH Unix you're porting to - AIX, Solaris, HP-UX may all have different include structures (not that I know any of 'em).

tecknophreak
11-29-2004, 08:46 PM
Ahhh, I see, guess I'll have to get a Unix box some day to play with so I know at least one or two things about it. Thanks for the info!