Skip to content

Commit

Permalink
Packet Handler improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
D4stiny committed Apr 1, 2020
1 parent da8dfd5 commit 379ad08
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion spectre/spectre kernel/PacketHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ typedef class PacketHandler
protected:
//
// The packet dispatcher is used for sending and receiving network messages.
// It can also be used to dispatch a sub-packet.
// It can also be used to dispatch a new packet.
//
PPACKET_DISPATCH PacketDispatch;
public:
Expand Down
2 changes: 1 addition & 1 deletion spectre/spectre kernel/PingPacketHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ PingPacketHandler::ProcessPacket (
// For pings, just respond with another ping packet.
//
responsePacket.Magic = PACKET_MAGIC;
responsePacket.Base.Type = Ping;
responsePacket.Base.Type = PACKET_TYPE::Ping;
responsePacket.Base.PacketLength = sizeof(responsePacket);

//
Expand Down
2 changes: 1 addition & 1 deletion spectre/spectre kernel/PingPacketHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ typedef class PingPacketHandler : public PacketHandler
);
} PING_PACKET_HANDLER, *PPING_PACKET_HANDLER;

#define PING_PACKET_HANDLER_TAG 'hPpS'
#define PING_PACKET_HANDLER_TAG DEFINE_TAG('hPpS')
2 changes: 1 addition & 1 deletion spectre/spectre kernel/XorPacketHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ typedef class XorPacketHandler : public PacketHandler
);
} XOR_PACKET_HANDLER, *PXOR_PACKET_HANDLER;

#define XOR_PACKET_HANDLER_TAG 'hXpS'
#define XOR_PACKET_HANDLER_TAG DEFINE_TAG('hXpS')

0 comments on commit 379ad08

Please sign in to comment.