public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Obtaining all entries from the routing table...
@ 2003-10-16  3:49 Burl Nyswonger
  2003-10-16  7:25 ` Andrew Lunn
  2003-10-23  0:28 ` [ECOS] stdout/stderr and CRLF translations Burl Nyswonger
  0 siblings, 2 replies; 3+ messages in thread
From: Burl Nyswonger @ 2003-10-16  3:49 UTC (permalink / raw)
  To: ecos-discuss


Hi,

I have been digging through both the the Free/Open BSD derrived stacks as
well as the net/common stuff and I'm not finding a way to obtain a list of
all routes.  Under linux, this information is available via the /proc
filesystem, under other OS's it is available through similar means, or
through an ioctl interface, or sysctl(), etc...

What gives?  Am I missing something?  

-- Burl.



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

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

* Re: [ECOS] Obtaining all entries from the routing table...
  2003-10-16  3:49 [ECOS] Obtaining all entries from the routing table Burl Nyswonger
@ 2003-10-16  7:25 ` Andrew Lunn
  2003-10-23  0:28 ` [ECOS] stdout/stderr and CRLF translations Burl Nyswonger
  1 sibling, 0 replies; 3+ messages in thread
From: Andrew Lunn @ 2003-10-16  7:25 UTC (permalink / raw)
  To: Burl Nyswonger; +Cc: ecos-discuss

On Wed, Oct 15, 2003 at 01:36:14PM -0700, Burl Nyswonger wrote:
> 
> Hi,
> 
> I have been digging through both the the Free/Open BSD derrived stacks as
> well as the net/common stuff and I'm not finding a way to obtain a list of
> all routes.  Under linux, this information is available via the /proc
> filesystem, under other OS's it is available through similar means, or
> through an ioctl interface, or sysctl(), etc...
> 
> What gives?  Am I missing something?  

Yep, dig a bit deeper....

1) The FreeBSD has sysctl is you enable it. 

2) Both stacks support ioctl calls to get/set this information.

3) Take a look at show_network_tables() in support.c for the FreeBSD stack.

   Andrew

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

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

* [ECOS] stdout/stderr and CRLF translations...
  2003-10-16  3:49 [ECOS] Obtaining all entries from the routing table Burl Nyswonger
  2003-10-16  7:25 ` Andrew Lunn
@ 2003-10-23  0:28 ` Burl Nyswonger
  1 sibling, 0 replies; 3+ messages in thread
From: Burl Nyswonger @ 2003-10-23  0:28 UTC (permalink / raw)
  To: ecos-discuss


Hi,

I am having some trouble figuring out how to get my default console
to use /dev/tty0.  I am using the PC architecture, and have set:

   CYGDAT_IO_SERIAL_I386_PC_SERIAL0_NAME == "\"/dev/tty0\""
   CYGDAT_LIBC_STDIO_DEFAULT_CONSOLE == "\"/dev/tty0\""

I have the LIBC pacakge, SERIAL_DRIVERS, etc..

stdout/stderr work fine - I have confirmed that all stdio (in/out/err) is 
actually using the serial serial device (interrupt driven, etc.) and not
the diag stuff...

I have tried to set up tty0 by getting a handle with
'cyg_io_lookup(devname, &handle)' - which does not return an error -
I then set |= the flags with 'CYG_TTY_OUT_FLAGS_CRLF' (even though
this is part of the default value).

What seems to be happening is that none of the stdin/stdout I/O is going
through 'tty_write()' in 'io/serial/current/src/tty.c', but rather through
'serial_write()' which is located in 'io/serial/current/src/common/serial.c'.

I've tried to force stdout/stderr to '/dev/tty0' with fclose()/fopen()
stdout - freopen(...,stdout), etc.. all to no avail...

If I try to use cyg_io_lookup() and cyg_io_write(), I get the same results
(and I have confirmed that the writes are still not going through
tty_write(), but rather serial_write())

If anyone can help out, I'd appriciate it!

-- Burl.



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

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

end of thread, other threads:[~2003-10-23  0:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-16  3:49 [ECOS] Obtaining all entries from the routing table Burl Nyswonger
2003-10-16  7:25 ` Andrew Lunn
2003-10-23  0:28 ` [ECOS] stdout/stderr and CRLF translations Burl Nyswonger

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).