Afficher un message
Vieux 28/04/2006, 09h53   #4
jeniffer
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Can anybody correct this code that is used to get/set ARP entries and uses ioctl( )


George Wicks wrote:
> "jeniffer" <zenith.of.perfection@gmail.com> wrote in
> news:1145928851.440863.7750@v46g2000cwv.googlegrou ps.com:
>
> > This is a C program compiled on gcc compiler that tries to set a new
> > entry in the arp cache,get an entry and also delete an entry from it.I
> > have run this program but in the set function Set_Entry function a call
> >
> > to ether_aton(a, n) is made but the value of sa_data is not being
> > updated.This is why I think tht i am getting the error of invalid
> > argument in ioctl func..Plzz me out.
> >

>
> One more thing: you might want to look for the arp.c source for linux -
> your code sorta looks like it came from a bsd variant (but I could be
> wrong).



Thanks a lot for ur suggestions.
Plz tell me what is bsd .Cannot this code work on a linux machine? I
read the nettools implementation of arp.c in linux.I tried to cut short
this arp.c but i am not able to do this correctly.

  Réponse avec citation
 
Page generated in 0,05062 seconds with 9 queries