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

« back to all changes in this revision

Viewing changes to epan/dissectors/packet-dcom.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-dcom.c
2
2
 * Routines for DCOM generics
3
3
 *
4
 
 * $Id: packet-dcom.c 19597 2006-10-18 19:42:10Z jake $
 
4
 * $Id: packet-dcom.c 19844 2006-11-07 07:39:16Z jake $
5
5
 *
6
6
 * Wireshark - Network traffic analyzer
7
7
 * By Gerald Combs <gerald@wireshark.org>
308
308
        /*g_warning("interface_new#%u", pinfo->fd->num);*/
309
309
 
310
310
        interf = se_alloc(sizeof(dcom_interface_t));
311
 
        interf->parent = NULL; //object;
 
311
        interf->parent = NULL;
312
312
        interf->private_data = NULL;
313
313
        interf->first_packet = pinfo->fd->num;
314
314
        interf->iid = *iid;
315
315
        interf->ipid = *ipid;
316
316
 
317
317
        dcom_interfaces = g_list_append(dcom_interfaces, interf);
318
 
        //object->interfaces = g_list_append(object->interfaces, interf);
319
318
        return interf;
320
319
    }
321
320
 
1774
1773
        /* XXX - this conversion is ugly */
1775
1774
        if (inet_aton(szStr, &ipaddr)) {
1776
1775
            if(get_host_ipaddr(szStr, &curr_ip)) {
1777
 
                curr_ip = ntohl(curr_ip);
 
1776
                curr_ip = g_ntohl(curr_ip);
1778
1777
 
1779
1778
                /*expert_add_info_format(pinfo, NULL, PI_UNDECODED, PI_WARN, "DUALSTRINGARRAY: IP:%s", 
1780
1779
                    ip_to_str( (gchar *) &curr_ip));*/