4 #include "link_layer.h"
8 class ipv4
: public internet_layer
{
17 // void receive_data(void *buf, int length);
20 void set_link_layer(p
<link_layer
> x
);
22 void configure_ipv4(const ipv4_addr
&ip
, const ipv4_addr
&netmask
, const ipv4_addr
&gate
) {
28 ipv4_addr
get_my_ip() {
32 void send_data(const ipv4_addr
&addr
, int prot
, const buffer
&x
);
33 void receive_data(const buffer
&);