-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
24364d7
commit eec2c55
Showing
4 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// | ||
// Created by cth451 on 22-4-19. | ||
// | ||
|
||
#ifndef TYPES_H | ||
#define TYPES_H | ||
|
||
#include <vector> | ||
#include <cstdint> | ||
|
||
namespace GAPPP { | ||
struct route { | ||
uint32_t network; | ||
uint32_t mask; | ||
uint32_t gateway; | ||
uint16_t out_port; | ||
}; | ||
|
||
struct routing_table { | ||
std::vector<struct route> routes; | ||
}; | ||
|
||
struct packet_info { | ||
uint16_t incoming_port; | ||
uint16_t outgoing_port; | ||
}; | ||
} | ||
|
||
#endif //TYPES_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters