Exemple #1
0
/* Try to get a reply to a rev arp request */
int
rev_arp(void)
{
	int     tries = 0;
	while (tries < 5) {
		do_rev_arp();
		if (get_rev_arp())
			return (1);
		tries++;
	}
	return (0);
}
Exemple #2
0
int 
rev_arp () 
{
  int tries = 0;
  while ( tries < 5 ) {
    do_rev_arp();
    if ( get_rev_arp() ) {
      return 1;
    }
    tries++;
  }
  return 0;
}