diff options
-rw-r--r-- | doc/ethereal.pod.template | 9 | ||||
-rw-r--r-- | gtk/find_dlg.c | 10 |
2 files changed, 12 insertions, 7 deletions
diff --git a/doc/ethereal.pod.template b/doc/ethereal.pod.template index 8e3362c888..fe282a57f0 100644 --- a/doc/ethereal.pod.template +++ b/doc/ethereal.pod.template @@ -452,8 +452,13 @@ Exit the application. =item Edit:Find Frame Search forward or backward, starting with the currently selected packet -(or the most recently selected packet, if no packet is selected), for a -packet matching a given display filter expression. +(or the most recently selected packet, if no packet is selected). Search +criteria can be a display filter expression, a string of hexadecimal +digits, or a text string. + +Hexadecimal digits can be separated by colons, periods, or dashes. +Text string searches can be ASCII or Unicode (or both), and may be +case insensitive. =item Edit:Find Next diff --git a/gtk/find_dlg.c b/gtk/find_dlg.c index 5472b78482..1978f31c8e 100644 --- a/gtk/find_dlg.c +++ b/gtk/find_dlg.c @@ -1,7 +1,7 @@ /* find_dlg.c * Routines for "find frame" window * - * $Id: find_dlg.c,v 1.36 2003/09/05 06:16:10 sahlberg Exp $ + * $Id: find_dlg.c,v 1.37 2003/09/09 02:41:00 gerald Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -486,8 +486,8 @@ convert_string_to_hex(const char *string, size_t *nbytes) break; if (isspace(c)) continue; /* allow white space */ - if (c==':') - continue; /* skip any ':' between bytes */ + if (c==':' || c=='.' || c=='-') + continue; /* skip any ':', '.', or '-' between bytes */ if (!isxdigit(c)) { /* Not a valid hex digit - fail */ return NULL; @@ -526,8 +526,8 @@ convert_string_to_hex(const char *string, size_t *nbytes) break; if (isspace(c)) continue; /* allow white space */ - if (c==':') - continue; /* skip any ':' between bytes */ + if (c==':' || c=='.' || c=='-') + continue; /* skip any ':', '.', or '-' between bytes */ /* From the loop above, we know this is a hex digit */ if (isdigit(c)) byte_val = c - '0'; |