diff options
author | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2011-12-27 16:51:59 +0000 |
---|---|---|
committer | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2011-12-27 16:51:59 +0000 |
commit | 4b46562c50859d4651f8dcabe7c51d33936fd28c (patch) | |
tree | e1faa7439539683d8c840d6ed5c58662685af9a5 /epan/dissectors/packet-wol.c | |
parent | eb722fa0c1ebb8ca7f9f31951170a40031bf450c (diff) |
Use tvb_ether_to_str() instead of ether_to_str(ep_tvb_memdup()). Add modelines.
svn path=/trunk/; revision=40300
Diffstat (limited to 'epan/dissectors/packet-wol.c')
-rw-r--r-- | epan/dissectors/packet-wol.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/epan/dissectors/packet-wol.c b/epan/dissectors/packet-wol.c index 54aef37072..68a16b7671 100644 --- a/epan/dissectors/packet-wol.c +++ b/epan/dissectors/packet-wol.c @@ -142,7 +142,7 @@ dissect_wol(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) else if ( len >= 108 ) { len = 108; - passwd = ether_to_str(ep_tvb_memdup(tvb, 102, 6)); + passwd = tvb_ether_to_str(tvb, 102); } else { @@ -347,3 +347,16 @@ proto_reg_handoff_wol(void) heur_dissector_add("udp", dissect_wol, proto_wol); } +/* + * Editor modelines - http://www.wireshark.org/tools/modelines.html + * + * Local variables: + * c-basic-offset: 4 + * tab-width: 4 + * indent-tabs-mode: nil + * End: + * + * vi: set shiftwidth=4 tabstop=4 expandtab: + * :indentSize=4:tabSize=4:noTabs=true: + */ + |