x25device.h 321 B

12345678910111213141516
  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->dev = dev;
  10. skb->pkt_type = PACKET_HOST;
  11. return htons(ETH_P_X25);
  12. }
  13. #endif