Lines Matching refs:ip
66 #include <netinet/ip.h>
189 struct ip *ip;
203 if (m->m_len < sizeof(struct ip) &&
204 (m = m_pullup(m, sizeof(struct ip))) == NULL)
206 ip = mtod(m, struct ip *);
215 sctp_delayed_cksum(m, (uint32_t)(ip->ip_hl << 2));
317 struct ip *const ip = mtod(m, struct ip *);
378 switch (ip->ip_v) {
385 if ((((ip->ip_hl << 2) != sizeof(struct ip)) &&
387 ((u_short)ntohs(ip->ip_len) > m->m_pkthdr.len)) {
450 switch (ip->ip_v) {
490 switch (ip->ip_v) {
496 if (IN_MULTICAST(ntohl(ip->ip_dst.s_addr)))
498 else if (in_broadcast(ip->ip_dst, m->m_pkthdr.rcvif))
612 if (m->m_len < sizeof (struct ip) &&
613 (m = m_pullup(m, sizeof (struct ip))) == NULL) {