]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-nfs.c
Add program_name field in the netdissect_options structure
[tcpdump] / print-nfs.c
index 50334d10e5ea78ab0778f0ecaf8ebac64b215d13..7ec799cde14b228be69c7e7730bc927a398c7f2b 100644 (file)
@@ -28,7 +28,7 @@
 #include <stdio.h>
 #include <string.h>
 
-#include "interface.h"
+#include "netdissect.h"
 #include "addrtoname.h"
 #include "extract.h"
 
@@ -932,13 +932,14 @@ xid_map_find(const struct sunrpc_msg *rp, const u_char *bp, uint32_t *proc,
 {
        int i;
        struct xid_map_entry *xmep;
-       uint32_t xid = rp->rm_xid;
+       uint32_t xid;
        const struct ip *ip = (const struct ip *)bp;
 #ifdef INET6
        const struct ip6_hdr *ip6 = (const struct ip6_hdr *)bp;
 #endif
        int cmp;
 
+       UNALIGNED_MEMCPY(&xid, &rp->rm_xid, sizeof(xmep->xid));
        /* Start searching from where we last left off */
        i = xid_map_hint;
        do {