public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] IPV6 Testing
@ 2004-08-25  2:07 bhanuprakash kandimalla
  2004-08-25  7:38 ` Andrew Lunn
  0 siblings, 1 reply; 9+ messages in thread
From: bhanuprakash kandimalla @ 2004-08-25  2:07 UTC (permalink / raw)
  To: ecos-discuss

Hello ECOS World:
I am testing ecos for i386pc(with net template). I am
using the test case as mentioned in the ecos document.
When I called the (ping_test.c file) net_test()
function ( I commented the ipv4 part) I am always
getting the following message: "No Router
advertisement received"
Which means that cyg_net_get_ipv6_advrouter() is
returning 0. Can someone suggest me what this
net_test() will test for IPV6. My intention is to
ping6 another IPV6 host. The ping from another ipv6
host to the target is working just fine.
Thanks a bunch,
Bhanu.



		
_______________________________
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [ECOS] IPV6 Testing
  2004-08-25  2:07 [ECOS] IPV6 Testing bhanuprakash kandimalla
@ 2004-08-25  7:38 ` Andrew Lunn
  2004-08-25 18:21   ` bhanuprakash kandimalla
  0 siblings, 1 reply; 9+ messages in thread
From: Andrew Lunn @ 2004-08-25  7:38 UTC (permalink / raw)
  To: bhanuprakash kandimalla; +Cc: ecos-discuss

On Tue, Aug 24, 2004 at 07:07:44PM -0700, bhanuprakash kandimalla wrote:
> Hello ECOS World:
> I am testing ecos for i386pc(with net template). I am
> using the test case as mentioned in the ecos document.
> When I called the (ping_test.c file) net_test()
> function ( I commented the ipv4 part) I am always
> getting the following message: "No Router
> advertisement received"
> Which means that cyg_net_get_ipv6_advrouter() is
> returning 0. Can someone suggest me what this
> net_test() will test for IPV6. My intention is to
> ping6 another IPV6 host. The ping from another ipv6
> host to the target is working just fine.

By default, eCos expects an IPv6 router advertisent server, such as
radvd, on the network. This allows the IPv6 host to make its own IP
address from the network portion advertised in the rputer advert and
the MAC address for the lower part of the IP address.

Either starically configure the IPv6 addresses or start a radvd
daemon.

        Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [ECOS] IPV6 Testing
  2004-08-25  7:38 ` Andrew Lunn
@ 2004-08-25 18:21   ` bhanuprakash kandimalla
  2004-08-25 21:39     ` Andrew Lunn
  0 siblings, 1 reply; 9+ messages in thread
From: bhanuprakash kandimalla @ 2004-08-25 18:21 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: ecos-discuss

 
--- Andrew Lunn <andrew@lunn.ch> wrote:

> On Tue, Aug 24, 2004 at 07:07:44PM -0700,
> bhanuprakash kandimalla wrote:
> > Hello ECOS World:
> > I am testing ecos for i386pc(with net template). I
> am
> > using the test case as mentioned in the ecos
> document.
> > When I called the (ping_test.c file) net_test()
> > function ( I commented the ipv4 part) I am always
> > getting the following message: "No Router
> > advertisement received"
> > Which means that cyg_net_get_ipv6_advrouter() is
> > returning 0. Can someone suggest me what this
> > net_test() will test for IPV6. My intention is to
> > ping6 another IPV6 host. The ping from another
> ipv6
> > host to the target is working just fine.
> 
> By default, eCos expects an IPv6 router advertisent
> server, such as
> radvd, on the network. This allows the IPv6 host to
> make its own IP
> address from the network portion advertised in the
> rputer advert and
> the MAC address for the lower part of the IP
> address.
> 
> Either starically configure the IPv6 addresses or
> start a radvd
> daemon.
Statically...can this be done in the config tool? In
the config tool, I already selected
BasicNetworkingFramework-->INET support-->IPv6
Support. I disabled the option "Options controlling
IPv6 routing.
I am using all static IPv4 and Ipv6 addresses. Ping4
works fine.
For ping6, I provide the IPV6 address as following:
void ping6_start(void)
{
	struct sockaddr_in6 ipv6router;
	struct in6_addr in6addr={{{0xfe,0x80, 0, 0, 0, 0, 0,
0, 0x2, 0x1, 0x02, 0xff,0xfe, 0x37, 0x2e, 0xa0}}};
	
	
	ipv6router.sin6_len=sizeof(ipv6router);
	ipv6router.sin6_family=AF_INET6;
	ipv6router.sin6_port=0;
	ipv6router.sin6_addr=in6addr;
	
    ping6_test(&ipv6router);
}

Am i missing anything here? I am getting the following
message:
"PING6 server fe80::201:2ff:fe37:2ea0
sendto: No route to host". This message will be
repeated 16 times. 
This is failing in the get_socket().
if (!sock->conn) {
    LWIP_DEBUGF(SOCKETS_DEBUG, ("get_socket(%d): not
active\n", s));
    set_errno(EBADF);
	diag_printf("\nget_socket : sock=Null\n");
    return NULL;
  }
This is always returning NULL.
Can someone suggest what I am doing wrong here or how
to fix this. My intention is just to ping6 from my
ecos target to another ipv6 host machine connected to
the target.
Thanks in advance,
Bhanu.

> 
>         Andrew
> 



		
_______________________________
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [ECOS] IPV6 Testing
  2004-08-25 18:21   ` bhanuprakash kandimalla
@ 2004-08-25 21:39     ` Andrew Lunn
  2004-08-26 20:43       ` bhanuprakash kandimalla
  0 siblings, 1 reply; 9+ messages in thread
From: Andrew Lunn @ 2004-08-25 21:39 UTC (permalink / raw)
  To: bhanuprakash kandimalla; +Cc: Andrew Lunn, ecos-discuss

On Wed, Aug 25, 2004 at 10:51:06AM -0700, bhanuprakash kandimalla wrote:
>  
> --- Andrew Lunn <andrew@lunn.ch> wrote:
> 
> > On Tue, Aug 24, 2004 at 07:07:44PM -0700,
> > bhanuprakash kandimalla wrote:
> > > Hello ECOS World:
> > > I am testing ecos for i386pc(with net template). I
> > am
> > > using the test case as mentioned in the ecos
> > document.
> > > When I called the (ping_test.c file) net_test()
> > > function ( I commented the ipv4 part) I am always
> > > getting the following message: "No Router
> > > advertisement received"
> > > Which means that cyg_net_get_ipv6_advrouter() is
> > > returning 0. Can someone suggest me what this
> > > net_test() will test for IPV6. My intention is to
> > > ping6 another IPV6 host. The ping from another
> > ipv6
> > > host to the target is working just fine.
> > 
> > By default, eCos expects an IPv6 router advertisent
> > server, such as
> > radvd, on the network. This allows the IPv6 host to
> > make its own IP
> > address from the network portion advertised in the
> > rputer advert and
> > the MAC address for the lower part of the IP
> > address.
> > 
> > Either starically configure the IPv6 addresses or
> > start a radvd
> > daemon.
> Statically...can this be done in the config tool? In
> the config tool, I already selected
> BasicNetworkingFramework-->INET support-->IPv6
> Support. I disabled the option "Options controlling
> IPv6 routing.
> I am using all static IPv4 and Ipv6 addresses. Ping4
> works fine.
> For ping6, I provide the IPV6 address as following:
> void ping6_start(void)
> {
> 	struct sockaddr_in6 ipv6router;
> 	struct in6_addr in6addr={{{0xfe,0x80, 0, 0, 0, 0, 0,
> 0, 0x2, 0x1, 0x02, 0xff,0xfe, 0x37, 0x2e, 0xa0}}};
> 	
> 	
> 	ipv6router.sin6_len=sizeof(ipv6router);
> 	ipv6router.sin6_family=AF_INET6;
> 	ipv6router.sin6_port=0;
> 	ipv6router.sin6_addr=in6addr;
> 	
>     ping6_test(&ipv6router);
> }
> 
> Am i missing anything here? I am getting the following
> message:
> "PING6 server fe80::201:2ff:fe37:2ea0
> sendto: No route to host". This message will be
> repeated 16 times. 

So you don't have a valid route. 

> This is failing in the get_socket().
> if (!sock->conn) {
>     LWIP_DEBUGF(SOCKETS_DEBUG, ("get_socket(%d): not
> active\n", s));
>     set_errno(EBADF);
> 	diag_printf("\nget_socket : sock=Null\n");
>     return NULL;
>   }
> This is always returning NULL.
> Can someone suggest what I am doing wrong here or how
> to fix this. My intention is just to ping6 from my
> ecos target to another ipv6 host machine connected to
> the target.

Add a call to show_network_tables(). That will print out all the
addresses the interfaces have and the routing table.

        Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [ECOS] IPV6 Testing
  2004-08-25 21:39     ` Andrew Lunn
@ 2004-08-26 20:43       ` bhanuprakash kandimalla
  2004-08-26 21:45         ` Andrew Lunn
  0 siblings, 1 reply; 9+ messages in thread
From: bhanuprakash kandimalla @ 2004-08-26 20:43 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: ecos-discuss

[-- Attachment #1: Type: text/plain, Size: 2960 bytes --]


--- Andrew Lunn <andrew@lunn.ch> wrote:

> On Wed, Aug 25, 2004 at 10:51:06AM -0700,
> bhanuprakash kandimalla wrote:
> >  
> > --- Andrew Lunn <andrew@lunn.ch> wrote:
> > 
> > > On Tue, Aug 24, 2004 at 07:07:44PM -0700,
> > > bhanuprakash kandimalla wrote:
> > > > Hello ECOS World:
> > > > I am testing ecos for i386pc(with net
> template). I
> > > am
> > > > using the test case as mentioned in the ecos
> > > document.
> > > > When I called the (ping_test.c file)
> net_test()
> > > > function ( I commented the ipv4 part) I am
> always
> > > > getting the following message: "No Router
> > > > advertisement received"
> > > > Which means that cyg_net_get_ipv6_advrouter()
> is
> > > > returning 0. Can someone suggest me what this
> > > > net_test() will test for IPV6. My intention is
> to
> > > > ping6 another IPV6 host. The ping from another
> > > ipv6
> > > > host to the target is working just fine.
> > > 
> > > By default, eCos expects an IPv6 router
> advertisent
> > > server, such as
> > > radvd, on the network. This allows the IPv6 host
> to
> > > make its own IP
> > > address from the network portion advertised in
> the
> > > rputer advert and
> > > the MAC address for the lower part of the IP
> > > address.
> > > 
> > > Either starically configure the IPv6 addresses
> or
> > > start a radvd
> > > daemon.
> > Statically...can this be done in the config tool?
> In
> > the config tool, I already selected
> > BasicNetworkingFramework-->INET support-->IPv6
> > Support. I disabled the option "Options
> controlling
> > IPv6 routing.
> > I am using all static IPv4 and Ipv6 addresses.
> Ping4
> > works fine.
> > For ping6, I provide the IPV6 address as
> following:
> > void ping6_start(void)
> > {
> > 	struct sockaddr_in6 ipv6router;
> > 	struct in6_addr in6addr={{{0xfe,0x80, 0, 0, 0, 0,
> 0,
> > 0, 0x2, 0x1, 0x02, 0xff,0xfe, 0x37, 0x2e, 0xa0}}};
> > 	
> > 	
> > 	ipv6router.sin6_len=sizeof(ipv6router);
> > 	ipv6router.sin6_family=AF_INET6;
> > 	ipv6router.sin6_port=0;
> > 	ipv6router.sin6_addr=in6addr;
> > 	
> >     ping6_test(&ipv6router);
> > }
> > 
> > Am i missing anything here? I am getting the
> following
> > message:
> > "PING6 server fe80::201:2ff:fe37:2ea0
> > sendto: No route to host". This message will be
> > repeated 16 times. 
> 
> So you don't have a valid route. 

I am wondering how is this different from IPv4. With
the same functions for ipv4, ping(ipv4) works fine
from the target. I guess I am missing a basic concept
here. I don't have much knowledge about IPV6 stuff.
Can someone suggest me what is missing here. I
appreciate any help

> Add a call to show_network_tables(). That will print
> out all the
> addresses the interfaces have and the routing table.
> 
For reference I am attaching a textfile for the
routing information.         

Thanks,
Bhanu.


	
		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 

[-- Attachment #2: route_table.txt --]
[-- Type: text/plain, Size: 3114 bytes --]

Routing tables
Destination                                      Gateway         Mask            Flags    Interface
0.0.0.0                                          10.21.1.1       0.0.0.0         UG       eth0
10.21.1.0                                        10.21.1.0       255.255.255.0   U        eth0
127.0.0.0                                        127.0.0.1       255.0.0.0       UG       lo0
127.0.0.1                                        127.0.0.1                       UH       lo0
::1                                              ::1                             UH       lo0
3ffe:302:11:2::a15:1f6                           3ffe:302:11:2::a15:1f6          UH       lo0

fe80:1::                                         fe80:1::        /64             U        eth0
fe80:1::2d0:b7ff:fe7e:436f                       fe80:1::2d0:b7ff:fe7e:436f      UH       lo0
fe80:2::                                         fe80:2::1       /64             U        lo0
fe80:2::1                                        fe80:2::1                       UH       lo0
ff01:1::                                         ff01:1::        /32             U        eth0
ff01:2::                                         ::1             /32             U        lo0
ff02:1::                                         ff02:1::        /32             U        eth0
ff02:2::                                         ::1             /32             U        lo0
Interface statistics
eth0    IP: 10.21.1.246, Broadcast: 10.21.1.255, Netmask: 255.255.255.0
        UP BROADCAST RUNNING MULTICAST MTU: 1500, Metric: 0
        Rx - Packets: 8, Bytes: 983, Tx - Packets: 0, Bytes: 0
eth0    IP: fe80:1::2d0:b7ff:fe7e:436f/64
        UP BROADCAST RUNNING MULTICAST MTU: 1500, Metric: 0
        Rx - Packets: 0, Bytes: 0, Tx - Packets: 3, Bytes: 216
eth0    IP: 3ffe:302:11:2::a15:1f6/128
        UP BROADCAST RUNNING MULTICAST MTU: 1500, Metric: 0
        Rx - Packets: 0, Bytes: 0, Tx - Packets: 0, Bytes: 0
lo0     IP: ::1/128   NoDAD
        UP LOOPBACK RUNNING MULTICAST MTU: 16384, Metric: 0
        Rx - Packets: 0, Bytes: 0, Tx - Packets: 0, Bytes: 0
lo0     IP: fe80:2::1/64   NoDAD
        UP LOOPBACK RUNNING MULTICAST MTU: 16384, Metric: 0
        Rx - Packets: 0, Bytes: 0, Tx - Packets: 0, Bytes: 0
lo0     IP: 127.0.0.1, Broadcast: 127.0.0.1, Netmask: 255.0.0.0
        UP LOOPBACK RUNNING MULTICAST MTU: 16384, Metric: 0
        Rx - Packets: 0, Bytes: 0, Tx - Packets: 0, Bytes: 0


socket :3

setsocketopt =0
PING6 server fe80::201:2ff:fe37:2ea0
sendto: No route to host
result: -1
sendto: No route to host
result: -1
sendto: No route to host
resul
     t: -1
sendto: No route to host
result: -1
sendto: No route to host
result: -1
sendto: No route to host
result: -1
sendto: No route to host
result: -1
sendto: No route to host
result: -1
sendto: No route to host
result: -1
sendto: No route to host
result: -1
sendto: No route to host
result: -1
sendto: No route to host
result: -1
sendto: No route to host
result: -1
sendto: No route to host
result: -1
sendto: No route to host
result: -1
sendto: No route to host
result: -1

[-- Attachment #3: Type: text/plain, Size: 148 bytes --]

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [ECOS] IPV6 Testing
  2004-08-26 20:43       ` bhanuprakash kandimalla
@ 2004-08-26 21:45         ` Andrew Lunn
  0 siblings, 0 replies; 9+ messages in thread
From: Andrew Lunn @ 2004-08-26 21:45 UTC (permalink / raw)
  To: bhanuprakash kandimalla; +Cc: Andrew Lunn, ecos-discuss

> Routing tables
> Destination                                      Gateway         Mask            Flags    Interface
> 0.0.0.0                                          10.21.1.1       0.0.0.0         UG       eth0
> 10.21.1.0                                        10.21.1.0       255.255.255.0   U        eth0
> 127.0.0.0                                        127.0.0.1       255.0.0.0       UG       lo0
> 127.0.0.1                                        127.0.0.1                       UH       lo0
> ::1                                              ::1                             UH       lo0
> 3ffe:302:11:2::a15:1f6                           3ffe:302:11:2::a15:1f6          UH       lo0
> 
> fe80:1::                                         fe80:1::        /64             U        eth0
> fe80:1::2d0:b7ff:fe7e:436f                       fe80:1::2d0:b7ff:fe7e:436f      UH       lo0
> fe80:2::                                         fe80:2::1       /64             U        lo0
> fe80:2::1                                        fe80:2::1                       UH       lo0
> ff01:1::                                         ff01:1::        /32             U        eth0
> ff01:2::                                         ::1             /32             U        lo0
> ff02:1::                                         ff02:1::        /32             U        eth0
> ff02:2::                                         ::1             /32             U        lo0


> PING6 server fe80::201:2ff:fe37:2ea0
> sendto: No route to host

IPv6 works just the same as IPv4 in terms of
routing. fe80::201:2ff:fe37:2ea0 is not on any of the directly
connected nets. So it has to be routed through a
gateway. Unforutately, you don't have any routes to gateways
configured and not default route. Hence it does not know where to send
the packet and so it is printing the error message. 

You need to sort out your IP addresses and routers and make sure eCos
knows this information. Probably the easiest way to do this is use
radvd or some other router advertisement program.

        Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [ECOS] IPv6 testing
@ 2011-10-13  1:53 kross
  0 siblings, 0 replies; 9+ messages in thread
From: kross @ 2011-10-13  1:53 UTC (permalink / raw)
  To: Laurie Gellatly; +Cc: ecos-discuss

Hi Laurie,

We have an automated test system in Fitnesse/TestNG which tests all existing functionality include IPv4 features. For this product revision IPv6 is required,and we have not to date done any bench testing. We are still in resource planning. We sell thousands per year so we need to be quite careful with testing.

The product interfaces all our other rectifier products to snmp V1/V2/V3 and http/s (among other interfaces) with IPv4. The test requirement is time bound. We will do the testing here (in China really) but it will take time to set. We could create a simulated network but I am a little uneasy about real world/simulation match.

Defects are addressed through Jira at the moment.

At this point I am asking for opinions on testing IPv6 from people who have done it.

Keith

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [ECOS] IPv6 testing
  2011-10-13  1:04 [ECOS] IPv6 testing kross
@ 2011-10-13  1:20 ` Laurie Gellatly
  0 siblings, 0 replies; 9+ messages in thread
From: Laurie Gellatly @ 2011-10-13  1:20 UTC (permalink / raw)
  To: <kross@elands.co.nz>; +Cc: ecos-discuss

I'm unclear on what you are regression testing. Is the regression testing for the IPv6 that already exists in a current product or for the rest of the product that now has IPv6 added? What are the business requirements of the product? How well can you define the scope. What company selection criteria do you have? How will you address any defects?

        ...Laurie:{)
+61 416 114419


On 13/10/2011, at 12:03 PM, <kross@elands.co.nz> wrote:

> We are porting 16MB of code slowly over to eCos. At this point we are shifting to lwip as of the first step. The new hardware will be eCos (from Integrity).
> 
> I am investigating regression testing of IPv6 and am wondering if and who I can outsource this to. I would like to hear your opinions on regression testing IPv6 (how do you do it? how much of the feature set do you cover?). We have penty of talent to do this in house but the network is IPv4 and firewalled very heavily.
> 
> Keith Ross
> For Eaton, Christchurch, NZ
> 
> -- 
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
> 

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [ECOS] IPv6 testing
@ 2011-10-13  1:04 kross
  2011-10-13  1:20 ` Laurie Gellatly
  0 siblings, 1 reply; 9+ messages in thread
From: kross @ 2011-10-13  1:04 UTC (permalink / raw)
  To: ecos-discuss

We are porting 16MB of code slowly over to eCos. At this point we are shifting to lwip as of the first step. The new hardware will be eCos (from Integrity).

I am investigating regression testing of IPv6 and am wondering if and who I can outsource this to. I would like to hear your opinions on regression testing IPv6 (how do you do it? how much of the feature set do you cover?). We have penty of talent to do this in house but the network is IPv4 and firewalled very heavily.

Keith Ross
For Eaton, Christchurch, NZ

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-10-13  1:53 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-25  2:07 [ECOS] IPV6 Testing bhanuprakash kandimalla
2004-08-25  7:38 ` Andrew Lunn
2004-08-25 18:21   ` bhanuprakash kandimalla
2004-08-25 21:39     ` Andrew Lunn
2004-08-26 20:43       ` bhanuprakash kandimalla
2004-08-26 21:45         ` Andrew Lunn
2011-10-13  1:04 [ECOS] IPv6 testing kross
2011-10-13  1:20 ` Laurie Gellatly
2011-10-13  1:53 kross

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).