Staging
v0.5.1
https://github.com/torvalds/linux
Raw File
Tip revision: b6fd41e29dea9c6753b1843a77e50433e6123bcb authored by Linus Torvalds on 12 September 2011, 21:02:02 UTC
Linux 3.1-rc6
Tip revision: b6fd41e
gre.h
#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(const struct gre_protocol *proto, u8 version);
int gre_del_protocol(const struct gre_protocol *proto, u8 version);

#endif
back to top