Rev

Rev 3323 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | Bug Tracker

Rev 3323 Rev 3333
Line 99... Line 99...
99
    pcap_oid_get_request(_device, OID_802_3_CURRENT_ADDRESS, mac, &l);
99
    pcap_oid_get_request(_device, OID_802_3_CURRENT_ADDRESS, mac, &l);
100
    char buf[13];
100
    char buf[13];
101
    *_bin2hex(buf, sizeof(buf), mac, 6) = 0;
101
    *_bin2hex(buf, sizeof(buf), mac, 6) = 0;
102
    mac_src = buf;
102
    mac_src = buf;
103
    loggers::get_instance().user("pcap_layer::pcap_layer: local MAC is %s", mac_src.c_str());
103
    loggers::get_instance().user("pcap_layer::pcap_layer: local MAC is %s", mac_src.c_str());
104
    _params.[params::mac_src] = mac_src;
104
    _params[params::mac_src] = mac_src;
105
  }
105
  }
106
 
106
 
107
  std::string mac_bc;
107
  std::string mac_bc;
108
  it = _params.find(params::mac_bc);
108
  it = _params.find(params::mac_bc);
109
  if (it != _params.end() && !it->second.empty())
109
  if (it != _params.end() && !it->second.empty())