Lines Matching refs:iph
74 static inline int IP_ECN_set_ce(struct iphdr *iph) in IP_ECN_set_ce() argument
76 u32 check = (__force u32)iph->check; in IP_ECN_set_ce()
77 u32 ecn = (iph->tos + 1) & INET_ECN_MASK; in IP_ECN_set_ce()
96 iph->check = (__force __sum16)(check + (check>=0xFFFF)); in IP_ECN_set_ce()
97 iph->tos |= INET_ECN_CE; in IP_ECN_set_ce()
101 static inline void IP_ECN_clear(struct iphdr *iph) in IP_ECN_clear() argument
103 iph->tos &= ~INET_ECN_MASK; in IP_ECN_clear()
120 static inline int IP6_ECN_set_ce(struct sk_buff *skb, struct ipv6hdr *iph) in IP6_ECN_set_ce() argument
124 if (INET_ECN_is_not_ect(ipv6_get_dsfield(iph))) in IP6_ECN_set_ce()
127 from = *(__be32 *)iph; in IP6_ECN_set_ce()
129 *(__be32 *)iph = to; in IP6_ECN_set_ce()
135 static inline void IP6_ECN_clear(struct ipv6hdr *iph) in IP6_ECN_clear() argument
137 *(__be32*)iph &= ~htonl(INET_ECN_MASK << 20); in IP6_ECN_clear()