Hi Till,

ping dose not work.
ethereal is allready installed.

how dose the stack receive the icmp ?
there is nothing in my inerrupt rutine like :
if(BUF->type == htons(ICMP_ECHO)) {

do i need the periodic poll who is timer driven ?



i dont understand the mechanism,

my interrupt rutine:

                 uip_len = dev_poll();    // look for a packet
         if(uip_len != 0){
                       if(BUF->type == htons(UIP_ETHTYPE_IP)) {
                               piep_ok();
                               uip_arp_ipin();
                    uip_input();
// If the above function invocation resulted in data that // should be sent out on the network, the global variable
                        // uip_len is set to a value > 0.
                    if(uip_len > 0) {
                         uip_arp_out();
                         dev_send();
                    }
}else if(BUF->type == htons(UIP_ETHTYPE_ARP)) {// process an ARP packet
                               play_tune();
                               uip_arp_arpin();
// If the above function invocation resulted in data that // should be sent out on the network, the global variable
                        // uip_len is set to a value > 0.
                        if(uip_len > 0) {
                                          dev_send();
                        }
                     }
                   }

regards
kai

Till Harbaum schrieb:
Hi,

Am Samstag, 20. Januar 2007 12:33 schrieb Kai Klein:
where sell i start to test the stack ?

my test procedure:
1. i do a arp -a on my test pc result no arp entry for 10.0.0.77
2. ping 10.0.0.77
3. the stack receive the arp request
4. the pc has a new arp entry for 10.0.0.77

dose that mean the stack works ?
This at least means that your stack receives and and sends packets (it receives the arp request and sends the arpo reply).

so what now ?
Does the ping work? Do you get some reply frm the device? If not you'll have to start debugging. Either by putting some debug messages into uip. Or you can e.g. install ethereal on your pc and have a close look at the network traffic.

Till

regards
kai

Till Harbaum schrieb:
Hi,

Am Samstag, 20. Januar 2007 09:52 schrieb Kai Klein:
i like to start with the ping,

how can i implement icmp ping/response ?
ICMP echo replies are part of the standard uip stack. It should
work out of the box and you don't have to do anyting for it.

Till


Reply via email to