~ubuntu-branches/ubuntu/quantal/open-vm-tools/quantal-201210021442

« back to all changes in this revision

Viewing changes to services/plugins/guestInfo/getlib/guestInfoPosix.c

  • Committer: Package Import Robot
  • Author(s): Nate Muench
  • Date: 2012-06-20 15:59:51 UTC
  • mfrom: (1.4.8)
  • Revision ID: package-import@ubuntu.com-20120620155951-6rupmpb0f70b52zr
Tags: 2012.05.21-724730-0ubuntu1
* Merging upstream version 2012.05.21-724730.
  - Fixes building against the current Quantal kernel. (LP: #1000344)
  - Fixes Quantal installation issues. (LP: #1019031)

* Sync with Debian
  - Updating to debhelper version 9.
  - Updating to standards version 3.9.3.
  - Updating copyright file machine-readable format version 1.0.
  - Building without multiarch paths for now

Show diffs side-by-side

added added

removed removed

Lines of Context:
668
668
 * RecordRoutingInfo --                                                  */ /**
669
669
 *
670
670
 * @brief Query the routing subsystem and pack up contents into
671
 
 * InetCidrRouteEntries.
 
671
 * InetCidrRouteEntries when either of IPv4 or IPV6 is configured.
672
672
 *
673
673
 * @param[out] nicInfo  NicInfoV3 container.
674
674
 *
675
675
 * @note Do not call this routine without first populating @a nicInfo 's NIC
676
676
 * list.
677
677
 *
678
 
 * @retval TRUE         Values collected, attached to @a nicInfo.
679
 
 * @retval FALSE        Something went wrong.
 
678
 * @retval TRUE         Values collected(either IPv4 or IPv6 or both),
 
679
 *                      attached to @a nicInfo.
 
680
 * @retval FALSE        Something went wrong(neither IPv4 nor IPv6 configured).
680
681
 *
681
682
 ******************************************************************************
682
683
 */
684
685
static Bool
685
686
RecordRoutingInfo(NicInfoV3 *nicInfo)
686
687
{
687
 
   Bool ret = TRUE;
 
688
   Bool retIPv4 = TRUE;
 
689
   Bool retIPv6 = TRUE;
688
690
 
689
691
   if (File_Exists("/proc/net/route") && !RecordRoutingInfoIPv4(nicInfo)) {
690
692
      g_warning("%s: Unable to collect IPv4 routing table.\n", __func__);
691
 
      ret = FALSE;
 
693
      retIPv4 = FALSE;
692
694
   }
693
695
 
694
696
   if (File_Exists("/proc/net/ipv6_route") && !RecordRoutingInfoIPv6(nicInfo)) {
695
697
      g_warning("%s: Unable to collect IPv6 routing table.\n", __func__);
696
 
      ret = FALSE;
 
698
      retIPv6 = FALSE;
697
699
   }
698
700
 
699
 
   return ret;
 
701
   return (retIPv4 || retIPv6);
700
702
}
701
703
 
702
704
#else                                           // ifdef USE_SLASH_PROC