WIP: Optimizations with reference return types.

This commit is contained in:
attermann committed 2023-11-20 10:26:14 -07:00
1 parent 9f1602067d
commit d09331ec0e
23 files changed
+104 -59

No files matched your search

+4 -4
View File
@@ -15,10 +15,10 @@ Packet::Packet(const Destination &destination, const Interface &attached_interfa
if (_object->_destination) {
extreme("Creating packet with destination...");
// CBA TODO handle NONE
if (transport_type == -1) {
transport_type = Type::Transport::BROADCAST;
}
// CBA Should never see empty transport_type
//if (transport_type == NONE) {
// transport_type = Type::Transport::BROADCAST;
//}
// following moved to object constructor to avoid extra NONE object
//_destination = destination;
_object->_header_type = header_type;