patch-2.1.124 linux/include/net/ip.h
Next file: linux/include/net/ip_autofw.h
Previous file: linux/include/linux/sysctl.h
Back to the patch index
Back to the overall index
- Lines: 37
- Date:
Sun Oct 4 12:17:49 1998
- Orig file:
v2.1.123/linux/include/net/ip.h
- Orig date:
Fri Jul 31 17:11:10 1998
diff -u --recursive --new-file v2.1.123/linux/include/net/ip.h linux/include/net/ip.h
@@ -166,7 +166,7 @@
ip_finish_output(skb);
}
-static __inline__
+extern __inline__
int ip_decrease_ttl(struct iphdr *iph)
{
u16 check = iph->check;
@@ -177,6 +177,14 @@
return --iph->ttl;
}
+extern __inline__
+int ip_dont_fragment(struct sock *sk, struct dst_entry *dst)
+{
+ return (sk->ip_pmtudisc == IP_PMTUDISC_DO ||
+ (sk->ip_pmtudisc == IP_PMTUDISC_WANT &&
+ !(dst->mxlock&(1<<RTAX_MTU))));
+}
+
/*
* Map a multicast IP onto multicast MAC for type ethernet.
*/
@@ -233,7 +241,10 @@
extern int ip_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen);
extern int ip_ra_control(struct sock *sk, unsigned char on, void (*destructor)(struct sock *));
-extern int ipv4_backlog_rcv(struct sock *sk, struct sk_buff *skb);
-
+extern int ip_recv_error(struct sock *sk, struct msghdr *msg, int len);
+extern void ip_icmp_error(struct sock *sk, struct sk_buff *skb, int err,
+ u16 port, u32 info, u8 *payload);
+extern void ip_local_error(struct sock *sk, int err, u32 daddr, u16 dport,
+ u32 info);
#endif /* _IP_H */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov