summaryrefslogtreecommitdiff
path: root/driver/gre.h
blob: 2ca7f749990dd27d8c07a6ace9d9bc36f7ae752b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef __LINUX_GRE_H
#define __LINUX_GRE_H

#include <linux/skbuff.h>

#define GREPROTO_CISCO	0
#define GREPROTO_PPTP		1
#define GREPROTO_MAX		2

struct gre_protocol {
	int		(*handler)(struct sk_buff *skb);
	void	(*err_handler)(struct sk_buff *skb, u32 info);
};

int gre_add_protocol(struct gre_protocol *proto, u8 version);
int gre_del_protocol(struct gre_protocol *proto, u8 version);

#endif