Home | History | Annotate | Download | only in tcpdump

Lines Matching defs:ip

44 #include "ip.h"
162 struct ip *ip;
174 switch (IP_V((struct ip *)bp)) {
176 ip = (struct ip *)bp;
177 strlcpy(srcaddr, ipaddr_string(&ip->ip_src), sizeof(srcaddr));
178 strlcpy(dstaddr, ipaddr_string(&ip->ip_dst), sizeof(dstaddr));
864 int ipver; /* IP version (4 or 6) */
866 struct in6_addr client; /* client IP address (net order) */
867 struct in6_addr server; /* server IP address (net order) */
869 struct in_addr client; /* client IP address (net order) */
870 struct in_addr server; /* server IP address (net order) */
892 struct ip *ip = NULL;
898 switch (IP_V((struct ip *)bp)) {
900 ip = (struct ip *)bp;
917 if (ip) {
919 memcpy(&xmep->client, &ip->ip_src, sizeof(ip->ip_src));
920 memcpy(&xmep->server, &ip->ip_dst, sizeof(ip->ip_dst));
944 struct ip *ip = (struct ip *)bp;
955 if (xmep->ipver != IP_V(ip) || xmep->xid != xid)
959 if (memcmp(&ip->ip_src, &xmep->server,
960 sizeof(ip->ip_src)) != 0 ||
961 memcmp(&ip->ip_dst, &xmep->client,
962 sizeof(ip->ip_dst)) != 0) {