9 #define MAX_VTL_CONS 100
12 #define VTP_FIFO_SENDFILE HOME "vtp_fifo_send"
13 #define VTP_FIFO_RECVFILE HOME "vtp_fifo_recv"
17 /* unsigned long rem_seq_num;
18 unsigned long dest_ip;
20 unsigned short src_port;
21 unsigned short dest_port;
22 RawEthernetPacket ack_template;
24 unsigned long tcp_timestamp;
27 vtl_model_t con_model;
34 #define FOREACH_VTL_CON(iter, cons) for (iter = g_first_vtl; iter != -1; iter = cons[iter].next)
38 /* Sending Layers Need to implement these */
40 int vtl_send(RawEthernetPacket * p, unsigned long serv_addr);
41 int vtl_recv(RawEthernetPacket ** p);
42 int vtl_connect(unsigned long serv_addr, unsigned short serv_port);
43 int vtl_close(unsigned long serv_addr);
46 int register_fd(SOCK fd);
47 int unregister_fd(SOCK fd);