Re: Detecting if kernel is ipv6 capable
- From: Roy Smith <roy@xxxxxxxxx>
- Date: Fri, 25 May 2007 00:07:24 -0400
In article <1180053168.805795.94060@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
Tejas Kokje <binarysemaphore@xxxxxxxxx> wrote:
On May 24, 11:07 am, robert <robertlazar...@xxxxxxxxx> wrote:
Hi all,
I have an embedded system which we want to run some of the installed
application like dhcp and ssh over ipv6. Is there a simple way to
determine if the OS is ipv6 capable? We are tracking down the kernel
sources to do 'make menuconfig' - but thought I'd ask if there is a
way I can know for sure in just the shell.
Robert
Check for the /proc/net/if_inet6 file. If it exists, kernel is IPv6
capable. Contents of this file will tell you what layer 3 interfaces
on your system support IPv6. Of course, I am assuming that your
embedded system is running Linux :-).
Thanks
Tejas Kokje
I generally execute (i.e. in a C program).
struct in6_addr buf;
inet_pton(AF_INET6, "::", buf);
if inet_pton() returns 0, you've got an IPv6 capable kernel. If course,
just because your kernel can do IPv6 doesn't always mean the whole box is
set up (i.e. addresses assigned, DNS configured, etc, etc).
But, you asked specifically about things you can do from the shell. In
addition to the above, you might try "ping6 ::1".
.
- Follow-Ups:
- Re: Detecting if kernel is ipv6 capable
- From: Robert Harris
- Re: Detecting if kernel is ipv6 capable
- References:
- Detecting if kernel is ipv6 capable
- From: robert
- Re: Detecting if kernel is ipv6 capable
- From: Tejas Kokje
- Detecting if kernel is ipv6 capable
- Prev by Date: Re: Detecting if kernel is ipv6 capable
- Next by Date: Re: Seeing large amounts of data on udp recv-q, only sending 1 byte of data
- Previous by thread: Re: Detecting if kernel is ipv6 capable
- Next by thread: Re: Detecting if kernel is ipv6 capable
- Index(es):