Lines Matching full:outer

63  *                      Outer Hdr at                 Inner Hdr at
71 * ECN field in the outer header to ECT(0).
72 * otherwise, copy the ECN field to the outer header.
74 * (E) if the ECN field in the outer header is set to CE and the ECN
77 * and the ECN field in the outer header is set to CE, then copy CE to
81 * (I) set the ECN field to not-ECT in the outer header.
83 * (E) if the ECN field in the outer header is set to CE, drop the packet.
91 * modify outer ECN (TOS) field on ingress operation (tunnel encapsulation).
94 ip_ecn_ingress(int mode, uint8_t *outer, const uint8_t *inner) in ip_ecn_ingress() argument
97 if (!outer || !inner) in ip_ecn_ingress()
100 *outer = *inner; in ip_ecn_ingress()
105 * to the outer. otherwise, copy the ECN field. in ip_ecn_ingress()
108 *outer &= ~IPTOS_ECN_ECT1; in ip_ecn_ingress()
112 * limited-functionality: set not-ECT to the outer in ip_ecn_ingress()
114 *outer &= ~IPTOS_ECN_MASK; in ip_ecn_ingress()
126 ip_ecn_egress(int mode, const uint8_t *outer, uint8_t *inner) in ip_ecn_egress() argument
129 if (!outer || !inner) in ip_ecn_egress()
135 * full-functionality: if the outer is CE and the inner is in ip_ecn_egress()
138 if ((*outer & IPTOS_ECN_MASK) == IPTOS_ECN_CE) { in ip_ecn_egress()
146 * limited-functionality: if the outer is CE, should drop it. in ip_ecn_egress()
149 if ((*outer & IPTOS_ECN_MASK) == IPTOS_ECN_CE) in ip_ecn_egress()
160 ip6_ecn_ingress(int mode, uint32_t *outer, const uint32_t *inner) in ip6_ecn_ingress() argument
164 if (!outer || !inner) in ip6_ecn_ingress()
169 *outer &= ~htonl(0xff << 20); in ip6_ecn_ingress()
170 *outer |= htonl((uint32_t)outer8 << 20); in ip6_ecn_ingress()
174 ip6_ecn_egress(int mode, const uint32_t *outer, uint32_t *inner) in ip6_ecn_egress() argument
178 if (!outer || !inner) in ip6_ecn_egress()
181 outer8 = (ntohl(*outer) >> 20) & 0xff; in ip6_ecn_egress()