x25device.h 355 B

1234567891011121314151617
  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 unsigned short x25_type_trans(struct sk_buff *skb,
  7. struct net_device *dev)
  8. {
  9. skb->mac.raw = skb->data;
  10. skb->input_dev = skb->dev = dev;
  11. skb->pkt_type = PACKET_HOST;
  12. return htons(ETH_P_X25);
  13. }
  14. #endif