root/net/inet/ipx.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 
   2 /*
   3  *      The following information is in its entirety obtained from:
   4  *
   5  *      Novell 'IPX Router Specification' Version 1.10 
   6  *              Part No. 107-000029-001
   7  *
   8  *      Which is available from ftp.novell.com
   9  */
  10 
  11 #ifndef _IPX_H
  12 #define _IPX_H
  13 
  14 #include <linux/ddi.h>
  15 
  16 typedef struct
  17 {
  18         unsigned long net;
  19         unsigned char  node[6]; 
  20         unsigned short sock;
  21 } ipx_address;
  22 
  23 #define ipx_broadcast_node      "\377\377\377\377\377\377"
  24 
  25 typedef struct ipx_packet
  26 {
  27         unsigned short  ipx_checksum;
  28 #define IPX_NO_CHECKSUM 0xFFFF
  29         unsigned short  ipx_pktsize;
  30         unsigned char   ipx_tctrl;
  31         unsigned char   ipx_type;
  32 #define IPX_TYPE_UNKNOWN        0x00
  33 #define IPX_TYPE_RIP            0x01    /* may also be 0 */
  34 #define IPX_TYPE_SAP            0x04    /* may also be 0 */
  35 #define IPX_TYPE_SPX            0x05    /* Not yet implemented */
  36 #define IPX_TYPE_NCP            0x11    /* $lots for docs on this (SPIT) */
  37 #define IPX_TYPE_PPROP          0x14    /* complicated flood fill brdcast [Not supported] */
  38         ipx_address     ipx_dest __attribute__ ((packed));
  39         ipx_address     ipx_source __attribute__ ((packed));
  40 } ipx_packet;
  41 
  42 
  43 typedef struct ipx_route
  44 {
  45         unsigned long net;
  46         unsigned char router_node[6];
  47         unsigned long router_net;
  48         unsigned short flags;
  49         struct device *dev;
  50 #define IPX_RT_ROUTED   1               /* This isn't a direct route. Send via this if to node router_node */
  51 #define IPX_RT_BLUEBOOK 2               /* Use DIX 8137 frames not IEE802.3 */
  52         struct ipx_route *next;
  53 } ipx_route;
  54 
  55 
  56 typedef struct sock ipx_socket;
  57 
  58 
  59 #include "ipxcall.h"
  60 extern int ipx_rcv(struct sk_buff *skb, struct device *dev, struct packet_type *pt);
  61 
  62 
  63 
  64 #endif

/* [previous][next][first][last][top][bottom][index][help] */