diff options
author | Nathan Neulinger <nneul@umr.edu> | 2001-03-26 15:27:55 +0000 |
---|---|---|
committer | Nathan Neulinger <nneul@umr.edu> | 2001-03-26 15:27:55 +0000 |
commit | 6f5497ef8a43a5c24e5b146f668c23605872c4bf (patch) | |
tree | 8379ad68554e9df56bba437ea7375feb18859516 /packet-afs-macros.h | |
parent | 92e96d7e9f05ca1d54bde175fa1a0601b63c7e14 (diff) | |
download | wireshark-6f5497ef8a43a5c24e5b146f668c23605872c4bf.tar.gz wireshark-6f5497ef8a43a5c24e5b146f668c23605872c4bf.tar.bz2 wireshark-6f5497ef8a43a5c24e5b146f668c23605872c4bf.zip |
misc afs/rx updates - more dissection, etc.
svn path=/trunk/; revision=3190
Diffstat (limited to 'packet-afs-macros.h')
-rw-r--r-- | packet-afs-macros.h | 66 |
1 files changed, 64 insertions, 2 deletions
diff --git a/packet-afs-macros.h b/packet-afs-macros.h index 6d88af76e5..e9c50afaa5 100644 --- a/packet-afs-macros.h +++ b/packet-afs-macros.h @@ -8,7 +8,7 @@ * Portions based on information/specs retrieved from the OpenAFS sources at * www.openafs.org, Copyright IBM. * - * $Id: packet-afs-macros.h,v 1.6 2001/03/23 21:42:37 nneul Exp $ + * $Id: packet-afs-macros.h,v 1.7 2001/03/26 15:27:55 nneul Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -376,6 +376,68 @@ #define OUT_BOS_STATUS() \ SKIP(10 * 4); +/* output a ubik interface addr array */ +#define OUT_UBIK_InterfaceAddrs() \ + { \ + unsigned int i,j,seen_null=0; \ + for (i=0; i<255; i++) { \ + j = GETINT(); \ + if ( j != 0 ) { \ + OUT_IP(hf_afs_ubik_interface); \ + seen_null = 0; \ + } else { \ + if ( ! seen_null ) { \ + TRUNC(4); \ + proto_tree_add_text(tree, NullTVB,curoffset,END_OF_FRAME, \ + "Null Interface Addresses"); \ + seen_null = 1; \ + } \ + curoffset += 4; \ + }\ + } \ + } + +#define OUT_UBIK_DebugOld() \ + { \ + OUT_DATE(hf_afs_ubik_now); \ + OUT_DATE(hf_afs_ubik_lastyestime); \ + OUT_IP(hf_afs_ubik_lastyeshost); \ + OUT_UINT(hf_afs_ubik_lastyesstate); \ + OUT_DATE(hf_afs_ubik_lastyesclaim); \ + OUT_IP(hf_afs_ubik_lowesthost); \ + OUT_DATE(hf_afs_ubik_lowesttime); \ + OUT_IP(hf_afs_ubik_synchost); \ + OUT_DATE(hf_afs_ubik_synctime); \ + OUT_UBIKVERSION("Sync Version"); \ + OUT_UBIKVERSION("Sync TID"); \ + OUT_UINT(hf_afs_ubik_amsyncsite); \ + OUT_DATE(hf_afs_ubik_syncsiteuntil); \ + OUT_UINT(hf_afs_ubik_nservers); \ + OUT_UINT(hf_afs_ubik_lockedpages); \ + OUT_UINT(hf_afs_ubik_writelockedpages); \ + OUT_UBIKVERSION("Local Version"); \ + OUT_UINT(hf_afs_ubik_activewrite); \ + OUT_UINT(hf_afs_ubik_tidcounter); \ + OUT_UINT(hf_afs_ubik_anyreadlocks); \ + OUT_UINT(hf_afs_ubik_anywritelocks); \ + OUT_UINT(hf_afs_ubik_recoverystate); \ + OUT_UINT(hf_afs_ubik_currenttrans); \ + OUT_UINT(hf_afs_ubik_writetrans); \ + OUT_DATE(hf_afs_ubik_epochtime); \ + } + +#define OUT_UBIK_SDebugOld() \ + { \ + OUT_IP(hf_afs_ubik_addr); \ + OUT_DATE(hf_afs_ubik_lastvotetime); \ + OUT_DATE(hf_afs_ubik_lastbeaconsent); \ + OUT_UINT(hf_afs_ubik_lastvote); \ + OUT_UBIKVERSION("Remote Version"); \ + OUT_UINT(hf_afs_ubik_currentdb); \ + OUT_UINT(hf_afs_ubik_beaconsincedown); \ + OUT_UINT(hf_afs_ubik_up); \ + } + /* Skip a certain number of bytes */ #define SKIP(bytes) \ TRUNC(bytes) \ @@ -447,7 +509,7 @@ curoffset += 4; \ tv.tv_sec = epoch; \ tv.tv_usec = 0; \ - ti = proto_tree_add_text(tree, NullTVB, curoffset, 3*4, \ + ti = proto_tree_add_text(tree, NullTVB, curoffset-8, 8, \ "UBIK Version (%s): %u.%u", label, epoch, counter ); \ save = tree; \ tree = proto_item_add_subtree(ti, ett_afs_ubikver); \ |