root/net/ethernet/pe2.c

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

DEFINITIONS

This source file includes following definitions.
  1. pEII_datalink_header
  2. make_EII_client

   1 #include <linux/netdevice.h>
   2 #include <linux/skbuff.h>
   3 #include <net/datalink.h>
   4 #include <linux/mm.h>
   5 #include <linux/in.h>
   6 
   7 static void
   8 pEII_datalink_header(struct datalink_proto *dl, 
     /* [previous][next][first][last][top][bottom][index][help] */
   9                 struct sk_buff *skb, unsigned char *dest_node)
  10 {
  11         struct device   *dev = skb->dev;
  12         
  13         dev->hard_header(skb, dev, ETH_P_IPX, dest_node, NULL, skb->len);
  14 }
  15 
  16 struct datalink_proto *
  17 make_EII_client(void)
     /* [previous][next][first][last][top][bottom][index][help] */
  18 {
  19         struct datalink_proto   *proto;
  20 
  21         proto = (struct datalink_proto *) kmalloc(sizeof(*proto), GFP_ATOMIC);
  22         if (proto != NULL) {
  23                 proto->type_len = 0;
  24                 proto->header_length = 0;
  25                 proto->datalink_header = pEII_datalink_header;
  26                 proto->string_name = "EtherII";
  27         }
  28 
  29         return proto;
  30 }
  31 

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