Lines Matching refs:xmep
896 struct xid_map_entry *xmep; in xid_map_enter() local
911 xmep = &xid_map[xid_map_next]; in xid_map_enter()
916 xmep->xid = rp->rm_xid; in xid_map_enter()
918 xmep->ipver = 4; in xid_map_enter()
919 memcpy(&xmep->client, &ip->ip_src, sizeof(ip->ip_src)); in xid_map_enter()
920 memcpy(&xmep->server, &ip->ip_dst, sizeof(ip->ip_dst)); in xid_map_enter()
924 xmep->ipver = 6; in xid_map_enter()
925 memcpy(&xmep->client, &ip6->ip6_src, sizeof(ip6->ip6_src)); in xid_map_enter()
926 memcpy(&xmep->server, &ip6->ip6_dst, sizeof(ip6->ip6_dst)); in xid_map_enter()
929 xmep->proc = EXTRACT_32BITS(&rp->rm_call.cb_proc); in xid_map_enter()
930 xmep->vers = EXTRACT_32BITS(&rp->rm_call.cb_vers); in xid_map_enter()
942 struct xid_map_entry *xmep; in xid_map_find() local
953 xmep = &xid_map[i]; in xid_map_find()
955 if (xmep->ipver != IP_V(ip) || xmep->xid != xid) in xid_map_find()
957 switch (xmep->ipver) { in xid_map_find()
959 if (memcmp(&ip->ip_src, &xmep->server, in xid_map_find()
961 memcmp(&ip->ip_dst, &xmep->client, in xid_map_find()
968 if (memcmp(&ip6->ip6_src, &xmep->server, in xid_map_find()
970 memcmp(&ip6->ip6_dst, &xmep->client, in xid_map_find()
983 *proc = xmep->proc; in xid_map_find()
984 *vers = xmep->vers; in xid_map_find()