[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tcpdump-patches
Subject:    troublesome nfs packets
From:       root () firewall ! f5 ! com (Charlie Root)
Date:       2001-04-27 2:07:25
[Download RAW message or body]

Hello all--

Troubleshooting a mount problem between a netbsd nfs server and a
bsdi 4.X nfs client led to to a coredump.  The access packet of
print-nfs.c causes a problem.  For the time being, I've bandaided
the following patch to make the problem less annoying.  I suspect it's
not quite the correct solution, but it behaves better in *my* (AKA barely
tested) than what's there currently.

*** print-nfs.c	Fri Oct  6 22:53:12 2000
--- print-nfs.c.new	Thu Apr 26 19:58:19 2001
***************
*** 1488,1498 ****
  	case NFSPROC_ACCESS:
  		printf(" access");
  		dp = parserep(rp, length);
! 		if (!(dp = parsestatus(dp, &er)))
  			break;
  		if (vflag)
  			printf(" attr:");
! 		if (!(dp = parse_post_op_attr(dp, vflag)))
  			break;
  		if (!er)
  			printf(" c %04x", (u_int32_t)ntohl(dp[0]));
--- 1488,1498 ----
  	case NFSPROC_ACCESS:
  		printf(" access");
  		dp = parserep(rp, length);
! 		if ((dp != NULL) && (!(dp = parsestatus(dp, &er))))
  			break;
  		if (vflag)
  			printf(" attr:");
! 		if ((dp != NULL) && (!(dp = parse_post_op_attr(dp, vflag))))
  			break;
  		if (!er)
  			printf(" c %04x", (u_int32_t)ntohl(dp[0]));

--Brad

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic