Skip to content

Commit

Permalink
Enum was used after all. Restore it and namespace it with GLUSTER_ to…
Browse files Browse the repository at this point in the history
… avoid the

collision.


git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@52144 f5534014-38df-0310-8fa8-9805f1628bb7
  • Loading branch information
eapache committed Sep 19, 2013
1 parent b538e68 commit ac51bb1
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 9 deletions.
14 changes: 14 additions & 0 deletions epan/dissectors/packet-gluster.h
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,20 @@ enum gf_fop_procnum {
GFS3_OP_MAXVALUE
};

/* dir-entry types from libglusterfs/src/compat.h */
enum gluster_entry_types {
GLUSTER_DT_UNKNOWN = 0,
GLUSTER_DT_FIFO = 1,
GLUSTER_DT_CHR = 2,
GLUSTER_DT_DIR = 4,
GLUSTER_DT_BLK = 6,
GLUSTER_DT_REG = 8,
GLUSTER_DT_LNK = 10,
GLUSTER_DT_SOCK = 12,
GLUSTER_DT_WHT = 14
};


/* LOCKING operators come from libglusterfs/src/glusterfs.h */

/* based on original enum glusterfs_lk_cmds_t */
Expand Down
18 changes: 9 additions & 9 deletions epan/dissectors/packet-glusterfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -2030,15 +2030,15 @@ static value_string_ext glusterfs3_1_fop_proc_vals_ext = VALUE_STRING_EXT_INIT(g

/* dir-entry types */
static const value_string glusterfs_entry_type_names[] = {
{ DT_UNKNOWN, "DT_UNKNOWN" },
{ DT_FIFO, "DT_FIFO" },
{ DT_CHR, "DT_CHR" },
{ DT_DIR, "DT_DIR" },
{ DT_BLK, "DT_BLK" },
{ DT_REG, "DT_REG" },
{ DT_LNK, "DT_LNK" },
{ DT_SOCK, "DT_SOCK" },
{ DT_WHT, "DT_WHT" },
{ GLUSTER_DT_UNKNOWN, "DT_UNKNOWN" },
{ GLUSTER_DT_FIFO, "DT_FIFO" },
{ GLUSTER_DT_CHR, "DT_CHR" },
{ GLUSTER_DT_DIR, "DT_DIR" },
{ GLUSTER_DT_BLK, "DT_BLK" },
{ GLUSTER_DT_REG, "DT_REG" },
{ GLUSTER_DT_LNK, "DT_LNK" },
{ GLUSTER_DT_SOCK, "DT_SOCK" },
{ GLUSTER_DT_WHT, "DT_WHT" },
{ 0, NULL }
};
static value_string_ext glusterfs_entry_type_names_ext = VALUE_STRING_EXT_INIT(glusterfs_entry_type_names);
Expand Down

0 comments on commit ac51bb1

Please sign in to comment.