[ECOS] do I need package DEVFS if I don't use TTY?`

2008-04-18 Thread Jürgen Lambrecht
Hello, the package DEVFS is by default included. When I removed it, my release build was ok, but my debug build crashed (fd out of range). I see in ecos.ecc that libc uses haldiag over tty. Can I omit tty? I don't use tty. I know I can look further in the code, but if somebody knows, it

[ECOS] IPv6 Link Local Address - Link ID?

2008-04-18 Thread Shaun Louie
Hi, When I add a new link local address using SIOCAIFADDR_IN6, the in6_control() function sets a Link ID (3rd and 4th bytes) equal to the interface index. Using ioctl with SIOCGIFCONF after setting the address, I see that the link local address has this Link ID part set to 0x0001. The

RE: [ECOS] IPv6 Link Local Address - Link ID?

2008-04-18 Thread Jay Foster
I believe that the KAME/FreeBSD stack internally hacks bytes 2 and 3 (counting the first byte as byte 0) of IPv6 link-local addresses to contain the associated interface index. The IPv6 standard defines these bytes to be always 0, and the FreeBSD stack automatically modifies them as necessary

Re: [ECOS] IPv6 Link Local Address - Link ID?

2008-04-18 Thread Shaun Louie
Ok, thanks for confirming this for me. I was a little worried that the hacked address might be used on the network in some cases. I'm also using the ioctl SIOCGIFCONF option to retrieve the current network configuration for the user, but I'll just make sure to undo the hack on the link