Remove unnecessary semicolons from namespace blocks
This commit is contained in:
parent
4059e4be88
commit
de644dc035
9 changed files with 14 additions and 11 deletions
|
@ -101,8 +101,11 @@ namespace Net::Arp
|
|||
}
|
||||
|
||||
void SendReply(
|
||||
Utils::MacAddress targetMac, Utils::MacAddress senderMac, uint32_t targetIp, uint32_t senderIp)
|
||||
{
|
||||
Utils::MacAddress targetMac,
|
||||
Utils::MacAddress senderMac,
|
||||
uint32_t targetIp,
|
||||
uint32_t senderIp
|
||||
) {
|
||||
SendPacket(ARP_OPERATION_REPLY, targetMac, senderMac, targetIp, senderIp);
|
||||
}
|
||||
|
||||
|
@ -143,4 +146,4 @@ namespace Net::Arp
|
|||
}
|
||||
|
||||
std::unordered_map<uint32_t, Utils::MacAddress> ArpTable;
|
||||
}; // namespace Net::Arp
|
||||
} // namespace Net::Arp
|
||||
|
|
|
@ -73,4 +73,4 @@ namespace Net::Arp
|
|||
void SendAnnouncement(Utils::MacAddress mac, uint32_t ip);
|
||||
|
||||
extern std::unordered_map<uint32_t, Utils::MacAddress> ArpTable;
|
||||
}; // namespace Net::Arp
|
||||
} // namespace Net::Arp
|
||||
|
|
|
@ -52,4 +52,4 @@ namespace Net::Ethernet
|
|||
self.type = buffer[12] << 8 | buffer[13];
|
||||
return self;
|
||||
}
|
||||
}; // namespace Net::Ethernet
|
||||
} // namespace Net::Ethernet
|
||||
|
|
|
@ -31,4 +31,4 @@ namespace Net::Ethernet
|
|||
size_t Serialize(uint8_t* buffer) const;
|
||||
static Header Deserialize(const uint8_t* buffer);
|
||||
};
|
||||
}; // namespace Net::Ethernet
|
||||
} // namespace Net::Ethernet
|
||||
|
|
|
@ -306,4 +306,4 @@ namespace Net::Tftp
|
|||
out.data = std::vector<uint8_t>(buffer + 4, buffer + size);
|
||||
return size;
|
||||
}
|
||||
}; // namespace Net::Tftp
|
||||
} // namespace Net::Tftp
|
||||
|
|
|
@ -81,4 +81,4 @@ namespace Net::Tftp
|
|||
const Udp::Header udpReqHeader,
|
||||
const uint8_t* buffer
|
||||
);
|
||||
}; // namespace Net::Tftp
|
||||
} // namespace Net::Tftp
|
||||
|
|
|
@ -68,4 +68,4 @@ namespace Net::Udp
|
|||
);
|
||||
}
|
||||
}
|
||||
}; // namespace Net::Udp
|
||||
} // namespace Net::Udp
|
||||
|
|
|
@ -43,4 +43,4 @@ namespace Net::Udp
|
|||
const uint8_t* buffer,
|
||||
const size_t size
|
||||
);
|
||||
}; // namespace Net::Udp
|
||||
} // namespace Net::Udp
|
||||
|
|
|
@ -124,4 +124,4 @@ namespace Net::Utils
|
|||
|
||||
return macAddress;
|
||||
}
|
||||
}; // namespace Net::Utils
|
||||
} // namespace Net::Utils
|
||||
|
|
Loading…
Reference in a new issue