View | Details | Raw Unified | Return to bug 2374
Collapse All | Expand All

(-)a/src/fd-net-device/helper/tap-fd-net-device-helper.cc (-6 / +6 lines)
 Lines 64-72    Link Here 
64
{
64
{
65
  m_deviceName = "";
65
  m_deviceName = "";
66
  m_modePi = false;
66
  m_modePi = false;
67
  m_tapIp4 = "";
67
  m_tapIp4 = Ipv4Address::GetZero ();
68
  m_tapMask4 = "";
68
  m_tapMask4 = Ipv4Mask::GetZero ();
69
  m_tapIp6 = "";
69
  m_tapIp6 = Ipv6Address::GetZero ();
70
  m_tapPrefix6 = 64;
70
  m_tapPrefix6 = 64;
71
  m_tapMac = Mac48Address::Allocate ();
71
  m_tapMac = Mac48Address::Allocate ();
72
}
72
}
 Lines 227-245    Link Here 
227
      ossMac << "-m" << m_tapMac;
227
      ossMac << "-m" << m_tapMac;
228
228
229
      std::ostringstream ossIp4;
229
      std::ostringstream ossIp4;
230
      if (m_tapIp4 != "")
230
      if (m_tapIp4 != Ipv4Address::GetZero ())
231
        {
231
        {
232
          ossIp4 << "-i" << m_tapIp4;
232
          ossIp4 << "-i" << m_tapIp4;
233
        }
233
        }
234
234
235
      std::ostringstream ossIp6;
235
      std::ostringstream ossIp6;
236
      if (m_tapIp6 != "")
236
      if (m_tapIp6 != Ipv6Address::GetZero ())
237
        {
237
        {
238
          ossIp6 << "-I" << m_tapIp6;
238
          ossIp6 << "-I" << m_tapIp6;
239
        }
239
        }
240
240
241
      std::ostringstream ossNetmask4;
241
      std::ostringstream ossNetmask4;
242
      if (m_tapMask4 != "" )
242
      if (m_tapMask4 != Ipv4Mask::GetZero () )
243
        {
243
        {
244
          ossNetmask4 << "-n" << m_tapMask4;
244
          ossNetmask4 << "-n" << m_tapMask4;
245
        }
245
        }

Return to bug 2374