aboutsummaryrefslogtreecommitdiff
path: root/pfinet/linux-src/include/net/ip.h
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2016-01-02 18:38:31 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2016-01-02 18:48:57 +0100
commit05e6878c8767cf7006675d5e5a646b2f74aa88c7 (patch)
tree3cba4a57d98573761d4538f6a24f1be1c2b2c197 /pfinet/linux-src/include/net/ip.h
parent5714421bb1d066abebc7e993bdf06e655b879b3a (diff)
downloadhurd-05e6878c8767cf7006675d5e5a646b2f74aa88c7.tar.gz
hurd-05e6878c8767cf7006675d5e5a646b2f74aa88c7.tar.bz2
hurd-05e6878c8767cf7006675d5e5a646b2f74aa88c7.zip
allow pfinet to link using -O0
This fixes a long list of undefined references when compiling with -O0 by using static instead of extern in header files.
Diffstat (limited to 'pfinet/linux-src/include/net/ip.h')
-rw-r--r--pfinet/linux-src/include/net/ip.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/pfinet/linux-src/include/net/ip.h b/pfinet/linux-src/include/net/ip.h
index 1a6cb610..1519ea0f 100644
--- a/pfinet/linux-src/include/net/ip.h
+++ b/pfinet/linux-src/include/net/ip.h
@@ -137,7 +137,7 @@ extern struct linux_mib net_statistics;
extern int sysctl_local_port_range[2];
-extern __inline__ int ip_finish_output(struct sk_buff *skb)
+static __inline__ int ip_finish_output(struct sk_buff *skb)
{
struct dst_entry *dst = skb->dst;
struct device *dev = dst->dev;
@@ -159,7 +159,7 @@ extern __inline__ int ip_finish_output(struct sk_buff *skb)
return -EINVAL;
}
-extern __inline__ void ip_send(struct sk_buff *skb)
+static __inline__ void ip_send(struct sk_buff *skb)
{
if (skb->len > skb->dst->pmtu)
ip_fragment(skb, __ip_finish_output);
@@ -167,7 +167,7 @@ extern __inline__ void ip_send(struct sk_buff *skb)
ip_finish_output(skb);
}
-extern __inline__
+static __inline__
int ip_decrease_ttl(struct iphdr *iph)
{
u16 check = iph->check;
@@ -178,7 +178,7 @@ int ip_decrease_ttl(struct iphdr *iph)
return --iph->ttl;
}
-extern __inline__
+static __inline__
int ip_dont_fragment(struct sock *sk, struct dst_entry *dst)
{
return (sk->ip_pmtudisc == IP_PMTUDISC_DO ||
@@ -190,7 +190,7 @@ int ip_dont_fragment(struct sock *sk, struct dst_entry *dst)
* Map a multicast IP onto multicast MAC for type ethernet.
*/
-extern __inline__ void ip_eth_mc_map(u32 addr, char *buf)
+static __inline__ void ip_eth_mc_map(u32 addr, char *buf)
{
addr=ntohl(addr);
buf[0]=0x01;
@@ -210,7 +210,7 @@ extern __inline__ void ip_eth_mc_map(u32 addr, char *buf)
* multicast packets.
*/
-extern __inline__ void ip_tr_mc_map(u32 addr, char *buf)
+static __inline__ void ip_tr_mc_map(u32 addr, char *buf)
{
buf[0]=0xC0;
buf[1]=0x00;