Lines Matching defs:ip
80 #include <netinet/ip.h>
135 struct ip *ip;
138 if (mbuf_len(m) < sizeof(*ip)) {
139 m = m_pullup(m, sizeof(*ip));
143 ip = mtod(m, struct ip *);
144 itos = ip->ip_tos;
276 struct ip *ip;
280 if (mbuf_len(m) < sizeof(*ip)) {
281 m = m_pullup(m, sizeof(*ip));
285 ip = mtod(m, struct ip *);
287 ip_ecn_egress(ECN_ALLOWED, &otos8, &ip->ip_tos);
289 ip_ecn_egress(ECN_NOCARE, &otos8, &ip->ip_tos);