Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
AF_INET6 in Linux and FreeBSD
Name: Godgory Date: June 2, 2007 at 06:56:38 Pacific OS: linux 2.6 / FreeBSD 5 CPU/Ram: AMD Athlon Barton 2600+/5
Comment:
Hi,
Simple question: why is AF_INET6 defined differently in Linux and in FreeBSD (socket.h) with values of 10 and 28 respectively? How do these 2 OS'es interoperate via ipv6?
Name: fpmurphy Date: June 3, 2007 at 09:50:31 Pacific
Reply:
AF-* simply defines the protocol address family.
See RFC 2553:
3.1 IPv6 Address Family and Protocol Family
A new address family name, AF_INET6, is defined in <sys/socket.h>. The AF_INET6 definition distinguishes between the original sockaddr_in address data structure, and the new sockaddr_in6 data structure.
So long as your code uses the AF_INET6 define rather than a hard coded value and you recompile for each platform, it makes no difference what the value is.
Summary: I have a Lexmark Z42. It works both in Linux and FreeBSD with CUPS using the gimp-print driver. I don't see why it wouldn't be supported in BSD if it is supported in Linux. You can check for support ...
Summary: Hello, Is it possible to compile/run Doug Comer's TCP/IP implementation code which are originally developed in Xinu in Linux and FreeBSD? The codes I mentioned implemented in his book "Internetworkin...
Summary: FreeBSD 5.3 uses Xorg, so you shouldn't have much trouble. If you're using proprietary binary drivers in Linux, you might have to change the driver in the device section. The mouse configuration will ...