On Wed, Jul 15, 2009 at 7:59 PM, Daniel Baluta <daniel.baluta@xxxxxxxxx> wrote:
Yep , Sorry my mistake dint observe closely :(
On Wed, Jul 15, 2009 at 5:12 PM, Siddu<siddu.sjce@xxxxxxxxx> wrote:inet6 , i think is the key to your question.
> Hello All,
>
> I was running strace over ifconfig command and part of the output is shown
> below . I notice something strange in the length of the buffer address of
> the read syscall . Can somebody throw some light on this ?
>
> open("/proc/net/if_inet6", O_RDONLY) = 10
Yep , Sorry my mistake dint observe closely :(
> fstat64(10, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
> 0xb7ce8000
> read(10, "fe80000000000000021676fffe79ceb2"..., 1024) = 108
> write(1, " inet6 addr: fe80::216:"..., 61 inet6 addr:
> fe80::216:76ff:fe79:ceb2/64 Scope:Link
> ) = 61
> read(10, "", 1024) = 0
> read(10, "", 1024) = 0
> close(10) = 0
>
> --
> Regards,
> ~Sid~
> http://sidsenclave.blogspot.com
>
--
Regards,
~Sid~
http://sidsenclave.blogspot.com