File tree Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 5353#define NFS_PROG 100003
5454#define NFS_VER2 2
5555#define NFS_VER3 3
56+ #define NFS_VER4 4
5657#define NFS_V2MAXDATA 8192
5758#define NFS_MAXDGRAMDATA 16384
5859#define NFS_MAXDATA 32768
Original file line number Diff line number Diff line change @@ -571,6 +571,19 @@ nfsreq_noaddr_print(netdissect_options *ndo,
571571 v3 = (GET_BE_U_4 (& rp -> rm_call .cb_vers ) == NFS_VER3 );
572572 proc = GET_BE_U_4 (& rp -> rm_call .cb_proc );
573573
574+ if (GET_BE_U_4 (& rp -> rm_call .cb_vers ) == NFS_VER4 ) {
575+ ND_PRINT (" v4" );
576+ switch (proc ) {
577+ case 0 :
578+ ND_PRINT (" null" );
579+ break ;
580+ case 1 :
581+ ND_PRINT (" compound" );
582+ break ;
583+ }
584+ return ;
585+ }
586+
574587 if (!v3 && proc < NFS_NPROCS )
575588 proc = nfsv3_procid [proc ];
576589
@@ -1539,6 +1552,25 @@ interp_reply(netdissect_options *ndo,
15391552 u_int er ;
15401553 int nfserr = 0 ;
15411554
1555+ if (vers == NFS_VER4 ) {
1556+ ND_PRINT (" v4" );
1557+ switch (proc ) {
1558+ case 0 :
1559+ ND_PRINT (" null" );
1560+ break ;
1561+ case 1 :
1562+ ND_PRINT (" compound" );
1563+ break ;
1564+ }
1565+ dp = parserep (ndo , rp , length , & nfserr );
1566+ if (dp == NULL )
1567+ goto trunc ;
1568+ dp = parsestatus (ndo , dp , & er , & nfserr );
1569+ if (dp == NULL )
1570+ goto trunc ;
1571+ return ;
1572+ }
1573+
15421574 v3 = (vers == NFS_VER3 );
15431575
15441576 if (!v3 && proc < NFS_NPROCS )
You can’t perform that action at this time.
0 commit comments