mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-14 23:16:55 -04:00
Cleanup
This commit is contained in:
parent
ad7a4f41cf
commit
08d4219d4e
@ -20,7 +20,6 @@ namespace http {
|
||||
|
||||
void decode(network::interface_descriptor& interface, network::ethernet::packet& packet);
|
||||
|
||||
std::expected<network::ethernet::packet> kernel_prepare_packet(network::interface_descriptor& interface, const packet_descriptor& descriptor);
|
||||
std::expected<network::ethernet::packet> user_prepare_packet(char* buffer, network::interface_descriptor& interface, const packet_descriptor* descriptor);
|
||||
|
||||
std::expected<void> finalize_packet(network::interface_descriptor& interface, network::ethernet::packet& p);
|
||||
|
@ -24,18 +24,6 @@ void network::http::decode(network::interface_descriptor& /*interface*/, network
|
||||
//TODO network::propagate_packet(packet, network::socket_protocol::HTTP);
|
||||
}
|
||||
|
||||
std::expected<network::ethernet::packet> network::http::kernel_prepare_packet(network::interface_descriptor& interface, const packet_descriptor& descriptor) {
|
||||
// Ask the TCP layer to craft a packet
|
||||
//network::tcp::packet_descriptor desc{descriptor.target_ip, descriptor.source_port, 80, descriptor.payload_size};
|
||||
//auto packet = network::tcp::kernel_prepare_packet(interface, desc);
|
||||
|
||||
//if (packet) {
|
||||
//packet.tag(3, packet.index);
|
||||
//}
|
||||
|
||||
//return packet;
|
||||
}
|
||||
|
||||
std::expected<network::ethernet::packet> network::http::user_prepare_packet(char* buffer, network::interface_descriptor& interface, const packet_descriptor* descriptor) {
|
||||
// Ask the TCP layer to craft a packet
|
||||
//network::tcp::packet_descriptor desc{descriptor->target_ip, descriptor->source_port, 80, descriptor->payload_size};
|
||||
|
Loading…
x
Reference in New Issue
Block a user