[OpenAFS-devel] When is it an AFS operation?

Ken Hornstein kenh@cmf.nrl.navy.mil
Wed, 24 Oct 2001 14:25:44 -0400


>How can one determine, by looking at the Rx header in a packet, if the
>payload (AFS portion of the packet) contains an operation and its args?
>
>My inclination, so far, is to say:
>
>    If the packet is of Rx type RX_PACKET_TYPE_DATA and has the
>    RX_CLIENT_INITIATED flag set, then it contains an operation and args.
>
>And to relegate all other packets to a bin where I believe that they do
>not contain operations and arguments.

You also need to make sure that the sequence number is "1".  At least,
that's the algorithm I used for the code in tcpdump, and it seems to
work fairly well.

--Ken