4 #include "link_layer.h"
8 class ipv4
: public internet_layer
{
28 } __attribute__((packed
));
31 // void receive_data(void *buf, int length);
40 void set_link_layer(p
<link_layer
> x
);
42 void configure_ipv4(const ipv4_addr
&ip
, const ipv4_addr
&netmask
, const ipv4_addr
&gate
) {
48 ipv4_addr
get_my_ip() {
52 void send_data(const ipv4_addr
&addr
, int prot
, const buffer
&x
);
53 void receive_data(const buffer
&);