-
Notifications
You must be signed in to change notification settings - Fork 0
/
Paxifax_Lite.cs
26 lines (21 loc) · 898 Bytes
/
Paxifax_Lite.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
Pax : tool support for prototyping packet processors
Nik Sultana, Cambridge University Computer Lab, June 2016
Use of this source code is governed by the Apache 2.0 license; see LICENSE.
*/
using return_type = System.Int64; //FIXME can this be used to make the type of "forward" less arbitrary?
// FIXME use javadoc-style comments to describe the API
namespace Pax {
// Packet will be retreivable from here, where it will
// be deposited by another party (which depends on where
// the packet processor is executing).
public static class Packet_Buffer {
public static byte[] packet = new byte[PaxConfig_Lite.MAX_PACKET_SIZE];
public static return_type forward = 0; // FIXME might not be right place for this
}
// Packet processors.
public interface IBytePacket_Processor {
// FIXME using "long" type is too arbitrary?
void process_packet (byte in_port);
}
}