haiku/headers/private/net/protocols.h
David Reid d69c1d7983 Move errno.h to it's correct place
Adjust Errors.h to use errno.h for the posix error codes
add first stab at limits.h, albeit not using the gcc headers at
present for intel.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@88 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-11 20:39:30 +00:00

49 lines
1.0 KiB
C

/* protocols.h
* The various protocols we're likely to come across as
* they're identified in the type fields of packets...
*/
#include "netinet/in.h"
#ifndef OBOS_PROTOCOLS_H
#define OBOS_PROTOCOLS_H
/* define some protocol numbers unique to ethernet */
enum {
ETHER_IPV4 = 0x0800,
ETHER_ARP = 0x0806,
ETHER_RARP = 0x8035,
ETHER_ATALK = 0x809b, /* Appletalk */
ETHER_SNMP = 0x814c, /* SNMP */
ETHER_IPV6 = 0x86dd, /* IPv6 */
ETHER_PPPOE_DISC = 0x8863, /* PPPoE Discovery */
ETHER_PPPOE_SESS = 0x8864 /* PPPoE Session */
};
/* these are used when assigning slots in the protocol table, so they
* should tie in with IP numbers wherever possible, with other
* protocols fitting in.
* These are used in the module definitions.
*/
enum {
NS_IPV4 = IPPROTO_IP,
NS_ICMP = IPPROTO_ICMP,
NS_IGMP = IPPROTO_IGMP,
NS_TCP = IPPROTO_TCP,
NS_UDP = IPPROTO_UDP,
NS_ETHER=200,
NS_IPV6,
NS_ATALK,
NS_ARP,
NS_RARP,
NS_PPPOE,
NS_SERIAL,
NS_LOOP,
NS_SOCKET,
NS_ROUTE
};
#endif /* OBOS_PROTOCOLS_H */