Lines Matching refs:iph
75 static inline int IP_ECN_set_ce(struct iphdr *iph) in IP_ECN_set_ce() argument
77 u32 check = (__force u32)iph->check; in IP_ECN_set_ce()
78 u32 ecn = (iph->tos + 1) & INET_ECN_MASK; in IP_ECN_set_ce()
97 iph->check = (__force __sum16)(check + (check>=0xFFFF)); in IP_ECN_set_ce()
98 iph->tos |= INET_ECN_CE; in IP_ECN_set_ce()
102 static inline void IP_ECN_clear(struct iphdr *iph) in IP_ECN_clear() argument
104 iph->tos &= ~INET_ECN_MASK; in IP_ECN_clear()
121 static inline int IP6_ECN_set_ce(struct sk_buff *skb, struct ipv6hdr *iph) in IP6_ECN_set_ce() argument
125 if (INET_ECN_is_not_ect(ipv6_get_dsfield(iph))) in IP6_ECN_set_ce()
128 from = *(__be32 *)iph; in IP6_ECN_set_ce()
130 *(__be32 *)iph = to; in IP6_ECN_set_ce()