Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Gateway from bootline
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Juergen Naumann  
View profile  
 More options Sep 5 2001, 4:08 pm
Newsgroups: comp.os.vxworks
From: Juergen Naumann <naum...@physik.uni-dortmund.de>
Date: 5 Sep 2001 20:08:13 GMT
Local: Wed, Sep 5 2001 4:08 pm
Subject: Gateway from bootline
Dear all

I'm writing a little program using TCP sockets for communication
between a CPU board and a server machine (Motorola MVME2400,
T2, vxWorks 5.4). By accident I found out that the program only works
with server machines being in the same subnet. Further investigations
showed that the gateway is set to the boards IP address although it
is given correctly in the bootline. My further observations:
* Print statements in bootConfig.c show that the gateway is read
  correctly from the bootline and set with routeAdd.
* A print statement in usrAppInit.c gives the boards IP address as
  the gateway address.
* After deleting this entry with routeDelete and reseting it correctly
  with routeAdd in usrAppInit.c a routeShow gives the correct address.
* Typing routeShow in the host shell again gives the boards IP address
  as the gateway and pinging an "out of subnet" machine does not work.
* After doing the routeDelete-routeAdd-gymnastics in the shell the
  gateway is set correctly, stays correctly and ping work fine.

Does anyone of you has an idea what goes wrong before?

Thanks in advance,
--
                         Jürgen Naumann
e----------------------------->H1<---------------------------p


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Leonid Rosenboim  
View profile  
 More options Sep 6 2001, 6:33 am
Newsgroups: comp.os.vxworks
From: "Leonid Rosenboim" <Dont_Spam_Leo...@Consultant.com>
Date: Thu, 6 Sep 2001 13:31:23 +0200
Local: Thurs, Sep 6 2001 7:31 am
Subject: Re: Gateway from bootline
Try this from Shell:

-> routeAdd("0","-gatyway-");

replace -gateway- with your router IP address.

HTH

"Juergen Naumann" <naum...@physik.uni-dortmund.de> wrote in message

news:9n60nd$o7e$1@nx6.HRZ.Uni-Dortmund.DE...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James Marshall  
View profile  
 More options Sep 6 2001, 9:07 am
Newsgroups: comp.os.vxworks
From: James Marshall <james_marsh...@agilent.com>
Date: Thu, 06 Sep 2001 14:07:27 +0100
Local: Thurs, Sep 6 2001 9:07 am
Subject: Re: Gateway from bootline
I found something similar. The cause appeared to be that the gateway is added, not as the default
route, but as a route to a network based on the class (A, B or C) of the host's IP address.

This has some problems:
- class A/B/C has been replaced by variable-length subnet masks
- inet_netof_string() doesn't handle subnet masks
- a single gateway is usually added as the default route (0.0.0.0)

I edited the configlette (usrNetRemoteCfg.c) to add the gateway as the default route, since that
seemed more like common sense to me. At the time I also found out about the newer interface for
adding routes: mRouteXxx routines. routeAdd is a hangover from the old Net/1 network stack (used in
VxWorks 5.1.1 for example) whereas mRouteXxx is for the current Net/3 (BSD4.4-based) stack.

James Marshall.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James Marshall  
View profile  
 More options Sep 7 2001, 5:34 am
Newsgroups: comp.os.vxworks
From: James Marshall <james_marsh...@agilent.com>
Date: Fri, 07 Sep 2001 10:33:59 +0100
Local: Fri, Sep 7 2001 5:33 am
Subject: Re: Gateway from bootline
One other thing I forgot to mention. The other configlettes in target/config/comps/src/net
(usrDhcpcCfg.c, usrNetPPPBoot.c, usrNetSlipBoot.c) also have the same problem adding the gateway as
usrNetRemoteCfg.c has.

James.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »