x25device.h 304 B

123456789101112131415
  1. #ifndef _X25DEVICE_H
  2. #define _X25DEVICE_H
  3. #include <linux/if_ether.h>
  4. #include <linux/if_packet.h>
  5. #include <linux/skbuff.h>
  6. static inline __be16 x25_type_trans(struct sk_buff *skb, struct net_device *dev)
  7. {
  8. skb->mac.raw = skb->data;
  9. skb->pkt_type = PACKET_HOST;
  10. return htons(ETH_P_X25);
  11. }
  12. #endif