Commit 665ce2eb authored by Hideaki Yoshifuji's avatar Hideaki Yoshifuji

[IPV6] make several functions static in ip6_tunnel that should be.

parent adf791bd
...@@ -123,7 +123,7 @@ static inline void ip6_tnl_dst_store(struct ip6_tnl *t, struct dst_entry *dst) ...@@ -123,7 +123,7 @@ static inline void ip6_tnl_dst_store(struct ip6_tnl *t, struct dst_entry *dst)
* else %NULL * else %NULL
**/ **/
struct ip6_tnl * static struct ip6_tnl *
ip6ip6_tnl_lookup(struct in6_addr *remote, struct in6_addr *local) ip6ip6_tnl_lookup(struct in6_addr *remote, struct in6_addr *local)
{ {
unsigned h0 = HASH(remote); unsigned h0 = HASH(remote);
...@@ -387,8 +387,9 @@ parse_tlv_tnl_enc_lim(struct sk_buff *skb, __u8 * raw) ...@@ -387,8 +387,9 @@ parse_tlv_tnl_enc_lim(struct sk_buff *skb, __u8 * raw)
* to the specifications in RFC 2473. * to the specifications in RFC 2473.
**/ **/
void ip6ip6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, static void
int type, int code, int offset, __u32 info) ip6ip6_err(struct sk_buff *skb, struct inet6_skb_parm *opt,
int type, int code, int offset, __u32 info)
{ {
struct ipv6hdr *ipv6h = (struct ipv6hdr *) skb->data; struct ipv6hdr *ipv6h = (struct ipv6hdr *) skb->data;
struct ip6_tnl *t; struct ip6_tnl *t;
...@@ -496,7 +497,8 @@ void ip6ip6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, ...@@ -496,7 +497,8 @@ void ip6ip6_err(struct sk_buff *skb, struct inet6_skb_parm *opt,
* Return: 0 * Return: 0
**/ **/
int ip6ip6_rcv(struct sk_buff **pskb, unsigned int *nhoffp) static int
ip6ip6_rcv(struct sk_buff **pskb, unsigned int *nhoffp)
{ {
struct sk_buff *skb = *pskb; struct sk_buff *skb = *pskb;
struct ipv6hdr *ipv6h; struct ipv6hdr *ipv6h;
...@@ -598,7 +600,8 @@ ip6ip6_tnl_addr_conflict(struct ip6_tnl *t, struct ipv6hdr *hdr) ...@@ -598,7 +600,8 @@ ip6ip6_tnl_addr_conflict(struct ip6_tnl *t, struct ipv6hdr *hdr)
* 0 * 0
**/ **/
int ip6ip6_tnl_xmit(struct sk_buff *skb, struct net_device *dev) static int
ip6ip6_tnl_xmit(struct sk_buff *skb, struct net_device *dev)
{ {
struct ip6_tnl *t = (struct ip6_tnl *) dev->priv; struct ip6_tnl *t = (struct ip6_tnl *) dev->priv;
struct net_device_stats *stats = &t->stat; struct net_device_stats *stats = &t->stat;
...@@ -1079,7 +1082,8 @@ ip6ip6_tnl_dev_init(struct net_device *dev) ...@@ -1079,7 +1082,8 @@ ip6ip6_tnl_dev_init(struct net_device *dev)
* Return: 0 * Return: 0
**/ **/
int ip6ip6_fb_tnl_dev_init(struct net_device *dev) static int
ip6ip6_fb_tnl_dev_init(struct net_device *dev)
{ {
struct ip6_tnl *t = dev->priv; struct ip6_tnl *t = dev->priv;
ip6ip6_tnl_dev_init_gen(dev); ip6ip6_tnl_dev_init_gen(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment