~ubuntu-branches/ubuntu/gutsy/wireshark/gutsy-security

« back to all changes in this revision

Viewing changes to epan/packet.c

  • Committer: Bazaar Package Importer
  • Author(s): Frederic Peters
  • Date: 2007-04-01 08:58:40 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070401085840-or3qhrpv8alt1bwg
Tags: 0.99.5-1
* New upstream release.
* debian/patches/09_idl2wrs.dpatch: updated to patch idl2wrs.sh.in.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* packet.c
2
2
 * Routines for packet disassembly
3
3
 *
4
 
 * $Id: packet.c 19576 2006-10-17 14:13:49Z sahlberg $
 
4
 * $Id: packet.c 20437 2007-01-15 05:16:13Z ulfl $
5
5
 *
6
6
 * Wireshark - Network traffic analyzer
7
7
 * By Gerald Combs <gerald@wireshark.org>
19
19
 *
20
20
 * You should have received a copy of the GNU General Public License
21
21
 * along with this program; if not, write to the Free Software
22
 
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
22
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
23
23
 */
24
24
 
25
25
#ifdef HAVE_CONFIG_H
61
61
static dissector_handle_t frame_handle = NULL;
62
62
static dissector_handle_t data_handle = NULL;
63
63
 
64
 
const true_false_string flags_set_truth = {
65
 
  "Set",
66
 
  "Not set"
67
 
};
68
 
 
69
64
void
70
65
packet_init(void)
71
66
{
317
312
        edt->pi.annex_a_used = MTP2_ANNEX_A_USED_UNKNOWN;
318
313
        edt->pi.profinet_type = 0;
319
314
        edt->pi.usb_conv_info = NULL;
 
315
        edt->pi.tcp_tree = NULL;
320
316
 
321
317
        TRY {
322
318
                edt->tvb = tvb_new_real_data(pd, fd->cap_len, fd->pkt_len);
342
338
                        g_assert_not_reached();
343
339
                }
344
340
        }
 
341
        CATCH(OutOfMemoryError) {
 
342
                RETHROW;
 
343
        }
345
344
        ENDTRY;
346
345
 
347
346
        fd->flags.visited = 1;
550
549
                         */
551
550
                        ret = tvb_length(tvb);
552
551
                }
 
552
                CATCH(OutOfMemoryError) {
 
553
                        RETHROW;
 
554
                }
553
555
                ENDTRY;
554
556
 
555
557
                col_set_writable(pinfo->cinfo, save_writable);