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 53
53
#define NFS_PROG 100003
54
54
#define NFS_VER2 2
55
55
#define NFS_VER3 3
56
+ #define NFS_VER4 4
56
57
#define NFS_V2MAXDATA 8192
57
58
#define NFS_MAXDGRAMDATA 16384
58
59
#define NFS_MAXDATA 32768
Original file line number Diff line number Diff line change @@ -571,6 +571,19 @@ nfsreq_noaddr_print(netdissect_options *ndo,
571
571
v3 = (GET_BE_U_4 (& rp -> rm_call .cb_vers ) == NFS_VER3 );
572
572
proc = GET_BE_U_4 (& rp -> rm_call .cb_proc );
573
573
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
+
574
587
if (!v3 && proc < NFS_NPROCS )
575
588
proc = nfsv3_procid [proc ];
576
589
@@ -1539,6 +1552,25 @@ interp_reply(netdissect_options *ndo,
1539
1552
u_int er ;
1540
1553
int nfserr = 0 ;
1541
1554
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
+
1542
1574
v3 = (vers == NFS_VER3 );
1543
1575
1544
1576
if (!v3 && proc < NFS_NPROCS )
You can’t perform that action at this time.
0 commit comments