equal
deleted
inserted
replaced
960 uint32_t bytesWritten = write (m_sock, p->PeekData (), p->GetSize ()); |
960 uint32_t bytesWritten = write (m_sock, p->PeekData (), p->GetSize ()); |
961 NS_ABORT_MSG_IF (bytesWritten != p->GetSize (), "TapBridge::ReceiveFromBridgedDevice(): Write error."); |
961 NS_ABORT_MSG_IF (bytesWritten != p->GetSize (), "TapBridge::ReceiveFromBridgedDevice(): Write error."); |
962 } |
962 } |
963 |
963 |
964 void |
964 void |
965 TapBridge::SetName(const std::string name) |
|
966 { |
|
967 NS_LOG_FUNCTION_NOARGS (); |
|
968 m_name = name; |
|
969 } |
|
970 |
|
971 std::string |
|
972 TapBridge::GetName(void) const |
|
973 { |
|
974 NS_LOG_FUNCTION_NOARGS (); |
|
975 return m_name; |
|
976 } |
|
977 |
|
978 void |
|
979 TapBridge::SetIfIndex(const uint32_t index) |
965 TapBridge::SetIfIndex(const uint32_t index) |
980 { |
966 { |
981 NS_LOG_FUNCTION_NOARGS (); |
967 NS_LOG_FUNCTION_NOARGS (); |
982 m_ifIndex = index; |
968 m_ifIndex = index; |
983 } |
969 } |