x25device.h 348 B

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