xref: /openbmc/linux/drivers/net/appletalk/ipddp.h (revision b8d312aa)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  *	ipddp.h: Header for IP-over-DDP driver for Linux.
4  */
5 
6 #ifndef __LINUX_IPDDP_H
7 #define __LINUX_IPDDP_H
8 
9 #ifdef __KERNEL__
10 
11 #define SIOCADDIPDDPRT   (SIOCDEVPRIVATE)
12 #define SIOCDELIPDDPRT   (SIOCDEVPRIVATE+1)
13 #define SIOCFINDIPDDPRT  (SIOCDEVPRIVATE+2)
14 
15 struct ipddp_route
16 {
17         struct net_device *dev;             /* Carrier device */
18         __be32 ip;                       /* IP address */
19         struct atalk_addr at;              /* Gateway appletalk address */
20         int flags;
21         struct ipddp_route *next;
22 };
23 
24 #define IPDDP_ENCAP	1
25 #define IPDDP_DECAP	2
26 
27 #endif	/* __KERNEL__ */
28 #endif	/* __LINUX_IPDDP_H */
29