Project

General

Profile

Actions

Bug #4481

closed

snoop(1m) does not decode time in GETTIME rpcbind operation

Added by Marcel Telka over 7 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
cmd - userland programs
Start date:
2014-01-14
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

The returned time in the rpcbind GETTIME operation should be decoded. The current code uses getxdr_date() to "decode" the time, but this fails and the returned time is never decoded:

________________________________
   127.0.0.1 -> 127.0.0.1    IPNET src zone 0 dst zone 0
   127.0.0.1 -> 127.0.0.1    IP  D=127.0.0.1 S=127.0.0.1 LEN=56, ID=0, TOS=0x0, TTL=255
   127.0.0.1 -> 127.0.0.1    UDP D=37197 S=111 LEN=36
   127.0.0.1 -> 127.0.0.1    RPC R (#2) XID=3021490624 Success
   127.0.0.1 -> 127.0.0.1    RPCBIND R GETTIME 

The problem is that getxdr_date() uses 8 bytes from the stream for time (4 bytes for sec, 4 bytes for usec) while in the GETTIME operation the time is encoded only in 4 bytes - sec only (see RFC 1833).


Related issues

Related to illumos gate - Bug #4456: snoop(1m) should display remote RPC calls in summary modeResolvedMarcel Telka2014-01-10

Actions
Actions

Also available in: Atom PDF