ip.h (96916090f488986a4ebb8e9ffa6a3b50881d5ccd) ip.h (0bbeafd0118fc3ae54990064760c889d41dc21d6)
1/*
2 * INET An implementation of the TCP/IP protocol suite for the LINUX
3 * operating system. INET is implemented using the BSD Socket
4 * interface as the means of communication with the user level.
5 *
6 * Definitions for the IP module.
7 *
8 * Version: @(#)ip.h 1.0.2 05/07/93

--- 196 unchanged lines hidden (view full) ---

205 return --iph->ttl;
206}
207
208static inline
209int ip_dont_fragment(struct sock *sk, struct dst_entry *dst)
210{
211 return (inet_sk(sk)->pmtudisc == IP_PMTUDISC_DO ||
212 (inet_sk(sk)->pmtudisc == IP_PMTUDISC_WANT &&
1/*
2 * INET An implementation of the TCP/IP protocol suite for the LINUX
3 * operating system. INET is implemented using the BSD Socket
4 * interface as the means of communication with the user level.
5 *
6 * Definitions for the IP module.
7 *
8 * Version: @(#)ip.h 1.0.2 05/07/93

--- 196 unchanged lines hidden (view full) ---

205 return --iph->ttl;
206}
207
208static inline
209int ip_dont_fragment(struct sock *sk, struct dst_entry *dst)
210{
211 return (inet_sk(sk)->pmtudisc == IP_PMTUDISC_DO ||
212 (inet_sk(sk)->pmtudisc == IP_PMTUDISC_WANT &&
213 !(dst_metric(dst, RTAX_LOCK)&(1<<RTAX_MTU))));
213 !(dst_metric_locked(dst, RTAX_MTU))));
214}
215
216extern void __ip_select_ident(struct iphdr *iph, struct dst_entry *dst, int more);
217
218static inline void ip_select_ident(struct iphdr *iph, struct dst_entry *dst, struct sock *sk)
219{
220 if (iph->frag_off & htons(IP_DF)) {
221 /* This is only to work around buggy Windows95/2000

--- 173 unchanged lines hidden ---
214}
215
216extern void __ip_select_ident(struct iphdr *iph, struct dst_entry *dst, int more);
217
218static inline void ip_select_ident(struct iphdr *iph, struct dst_entry *dst, struct sock *sk)
219{
220 if (iph->frag_off & htons(IP_DF)) {
221 /* This is only to work around buggy Windows95/2000

--- 173 unchanged lines hidden ---