patch-2.3.37 linux/include/net/ip.h
Next file: linux/include/net/route.h
Previous file: linux/include/net/inetpeer.h
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Thu Jan 6 11:43:46 2000
- Orig file:
v2.3.36/linux/include/net/ip.h
- Orig date:
Tue Nov 23 22:42:21 1999
diff -u --recursive --new-file v2.3.36/linux/include/net/ip.h linux/include/net/ip.h
@@ -96,7 +96,6 @@
extern int ip_fragment(struct sk_buff *skb, int (*out)(struct sk_buff*));
extern int ip_do_nat(struct sk_buff *skb);
extern void ip_send_check(struct iphdr *ip);
-extern int ip_id_count;
extern int ip_queue_xmit(struct sk_buff *skb);
extern void ip_init(void);
extern int ip_build_xmit(struct sock *sk,
@@ -179,6 +178,16 @@
return (sk->protinfo.af_inet.pmtudisc == IP_PMTUDISC_DO ||
(sk->protinfo.af_inet.pmtudisc == IP_PMTUDISC_WANT &&
!(dst->mxlock&(1<<RTAX_MTU))));
+}
+
+extern void __ip_select_ident(struct iphdr *iph, struct dst_entry *dst);
+
+extern __inline__ void ip_select_ident(struct iphdr *iph, struct dst_entry *dst)
+{
+ if (iph->frag_off&__constant_htons(IP_DF))
+ iph->id = 0;
+ else
+ __ip_select_ident(iph, dst);
}
/*
FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen (who was at: [email protected])