~cyphermox/ubuntu/maverick/gnome-nettool/ping-fix

« back to all changes in this revision

Viewing changes to src/info.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2006-12-18 17:18:26 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20061218171826-eezo2l99wtb6pq57
Tags: 2.17.4-0ubuntu1
* New upstream version:
  - Improves the behavior on list
  - Fixed compilation in OpenBSD
  - Added support for OpenBSD
  - Changed the sematic from packets loss to packet succeed
  - Added bar-graph display for ping
* Sync with Debian
* debian/control.in:
  - Build-Depends on liblaunchpad-integration-dev
  - Depends on "iputils-tracepath" rather than "tcptraceroute | traceroute"
  - make the description mention tracepath rather than traceroute
* debian/patches/01_use_tracepath.patch:
  - use tracepath rather than tcptraceroute
* debian/patches/02_lpi.patch:
  - launchpad integration
* debian/patches/03_autoconf.patch:
  - configure update
* debian/patches/04_menu_change.patch:
  - change menu category (MenuRevisited spec)

Show diffs side-by-side

added added

removed removed

Lines of Context:
422
422
        struct sockaddr_in *sinptr;
423
423
        InfoIpAddr *ip;
424
424
        gint flags;
 
425
        #ifdef __linux__
425
426
        mii_data_result data;
 
427
        #endif
426
428
 
427
429
        getifaddrs (&ifa0);
428
430
 
470
472
                        ifc.ifc_req = (struct ifreq *) buf;
471
473
                        ioctl (sockfd, SIOCGIFCONF, &ifc);
472
474
 
 
475
#ifdef __linux__
473
476
                        data = mii_get_basic (nic);
 
477
#endif
474
478
 
475
479
                        for (ptr = buf; ptr < buf + ifc.ifc_len;) {
476
480
                                ifr = (struct ifreq *) ptr;
559
563
                                ip->ip_bcast = g_strdup ("");
560
564
                                gtk_label_set_text (GTK_LABEL (info->link_speed), " ");
561
565
                                info_setup_configure_button (info, FALSE);
 
566
#ifdef __linux__
562
567
                        } else {
563
568
                                if (data.has_data) {
564
569
                                        gtk_label_set_text (GTK_LABEL (info->link_speed), data.media);
567
572
                                }
568
573
 
569
574
                                info_setup_configure_button (info, TRUE);
 
575
#endif
570
576
                        }
571
577
 
572
578
                        /* Supports multicast */