The first field of a MAC Control frame isn't the "pause" field, it's the
authorGuy Harris <guy@alum.mit.edu>
Sat, 31 Oct 2009 19:44:17 +0000 (19:44 -0000)
committerGuy Harris <guy@alum.mit.edu>
Sat, 31 Oct 2009 19:44:17 +0000 (19:44 -0000)
commita212873733aab871c72a60cdc248b6c0222995c9
treeec436dca97c7ed15955e5eb6ef1a080052b3d504
parent6b3f4e5a153aa25fcc1ab2063e4435e94517bae3
The first field of a MAC Control frame isn't the "pause" field, it's the
opcode; an opcode of 0x0001 means PAUSE.  Dissect the opcode field even
if it's not a PAUSE frame.

The second field of a PAUSE frame isn't the "quanta" field, it's the
pause_time field; it's in *units* of quanta.

Don't fetch fields until we need them (so we don't throw an exception if
they're missing until we actually look at them).

Clean up indentation.

svn path=/trunk/; revision=30785
epan/dissectors/packet-maccontrol.c