Lines Matching refs:ip
40 #include "ip.h"
205 const struct ip *ip;
210 switch (IP_V((const struct ip *)bp)) {
212 ip = (const struct ip *)bp;
213 strlcpy(srcaddr, ipaddr_string(ndo, &ip->ip_src), sizeof(srcaddr));
214 strlcpy(dstaddr, ipaddr_string(ndo, &ip->ip_dst), sizeof(dstaddr));
869 const struct ip *ip = NULL;
875 switch (IP_V((const struct ip *)bp)) {
877 ip = (const struct ip *)bp;
892 if (ip) {
894 UNALIGNED_MEMCPY(&xmep->client, &ip->ip_src, sizeof(ip->ip_src));
895 UNALIGNED_MEMCPY(&xmep->server, &ip->ip_dst, sizeof(ip->ip_dst));
918 const struct ip *ip = (const struct ip *)bp;
928 if (xmep->ipver != IP_V(ip) || xmep->xid != xid)
932 if (UNALIGNED_MEMCMP(&ip->ip_src, &xmep->server,
933 sizeof(ip->ip_src)) != 0 ||
934 UNALIGNED_MEMCMP(&ip->ip_dst, &xmep->client,
935 sizeof(ip->ip_dst)) != 0) {