Blame view

include/net/x25device.h 348 Bytes
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1
2
3
4
5
  #ifndef _X25DEVICE_H
  #define _X25DEVICE_H
  
  #include <linux/if_ether.h>
  #include <linux/if_packet.h>
5ebfbc06a   Andrew Hendry   X25: Add if_x25.h...
6
  #include <linux/if_x25.h>
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
7
  #include <linux/skbuff.h>
ab611487d   Alexey Dobriyan   [NET]: __be'ify *...
8
  static inline __be16 x25_type_trans(struct sk_buff *skb, struct net_device *dev)
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
9
  {
9b591cbd4   David S. Miller   [X25]: Restore sk...
10
  	skb->dev = dev;
459a98ed8   Arnaldo Carvalho de Melo   [SK_BUFF]: Introd...
11
  	skb_reset_mac_header(skb);
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
12
13
14
15
16
  	skb->pkt_type = PACKET_HOST;
  	
  	return htons(ETH_P_X25);
  }
  #endif