can: raw: raw_setsockopt: limit number of can_filter that can be set
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / include / net / x25device.h
CommitLineData
1da177e4
LT
1#ifndef _X25DEVICE_H
2#define _X25DEVICE_H
3
4#include <linux/if_ether.h>
5#include <linux/if_packet.h>
5ebfbc06 6#include <linux/if_x25.h>
1da177e4
LT
7#include <linux/skbuff.h>
8
ab611487 9static inline __be16 x25_type_trans(struct sk_buff *skb, struct net_device *dev)
1da177e4 10{
9b591cbd 11 skb->dev = dev;
459a98ed 12 skb_reset_mac_header(skb);
1da177e4
LT
13 skb->pkt_type = PACKET_HOST;
14
15 return htons(ETH_P_X25);
16}
17#endif