summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking (unfollow)
Commit message (Collapse)AuthorFilesLines
2000-08-02Patch from Eric Norum <eric@cls.usask.ca> to add optional support forJoel Sherrill1-3/+47
fast mutexes that bypass the API level to directly interface with the SuperCore.
2000-07-14Changed name of static table versions to avoid conflict.Joel Sherrill1-2/+2
2000-06-15Moved <sys/cdefs.h> to lib/include so non-networking applications couldJoel Sherrill1-1/+1
include <sys/ioctl.h>.
2000-06-14*** empty log message ***Joel Sherrill1-1/+1
2000-06-14Patch from Chris Johns <cjohns@cybertec.com.au> to enhance networkJoel Sherrill2-43/+216
initialization. This adds an interface which makes it easier to control the BSD stack from user code. The BSD stack initialise uses it. It is a sort of `function' interface for an ifconfig command. I also added support for attaching and removing interfaces. With hot swap PCI comming online support for hot swap PCI will be an important factor in "state of art" RTOS's. This is also part of a general move on my part to allow RTEMS to be configured at runtime by calls rather than table driven at initialisation.
2000-06-12Merged from 4.5.0-beta3aJoel Sherrill19-70/+249
2000-04-28New files added on 4.5 branch.Joel Sherrill2-0/+0
2000-04-13Patch rtems-rc-4.5.0-13-cvs.diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de>.Joel Sherrill13-0/+37
adds .cvsignore.
2000-02-03Patches rtems-rc-20000118-7.diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de>Joel Sherrill13-20/+363
that contains the automake files for libnetworking plus a couple of minor fixes. [Now only one unused/unsupported Makefile.in remains (./c/src/lib/libbsp/hppa1.1/pxfl/Makefile.in).] To apply: patch -p1 < rtems-rc-20000118-7.diff /bin/sh rtems-rc-20000118-7.rm /bin/sh rtems-rc-20000118-7.add ./bootstrap Notes: * I have tested this one by building all BSPs for m68k, powerpc, sh and unix with toolchains built since last weekend. * I did not touch libnetworking's directory layout.
2000-01-21Patch from Eric Norum <eric@cls.usask.ca> at the request of JakeJoel Sherrill1-33/+56
Janovetz <janovetz@tempest.ece.uiuc.edu> to return a status from network initialization rather than panic'ing. It changes a bunch of rtems_panics to printfs and returns a status from rtems_bsdnet_initialize_network().
2000-01-21Patch from Eric Norum <eric@cls.usask.ca> to remove warnings.Joel Sherrill1-4/+3
2000-01-10Removed definition of USHRT_MAX to remove lots of redefinition warnings.Joel Sherrill1-2/+0
1999-12-13Patch from Eric Norum <eric@cls.usask.ca> to make the NTP handler a littleJoel Sherrill1-1/+1
more flexible about the error status returned from a timeout.
1999-12-13Correction from Eric Norum for timeout in TFTP driver following bugJoel Sherrill1-2/+3
report by Nick.SIMON@syntegra.bt.co.uk: TFTP uses UDP and UDP packets are prime targets for getting dropped when the network gets busy. I want the number of retries quite large in my application. I see that PACKET_REPLY_MILLISECONDS is, in fact, not being used.
1999-12-01Removed debugging printfs.Joel Sherrill1-2/+0
1999-12-01Patch from Eric Norum <eric@cls.usask.ca> to fix a spot in the tftp fileJoel Sherrill1-1/+0
system table from when the rtems_filesystem_operations_table structure changed and the initializer in libnetworking/lib/tftpDriver.c did not get updated.
1999-11-30Added missing files from PPP port.Joel Sherrill2-0/+297
1999-11-30Added port of ppp-2.3.5 from Tomasz Domin <dot@comarch.pl> of ComArch SA.Joel Sherrill3-3/+187
Tomasz only tested this on the mpc823. The official site for the original source for this PPP implementation is: ftp://cs.anu.edu.au/pub/software/ppp NOTE: As of 11/30/1999, the current version of this source is 2.3.10.
1999-11-16Web server uses the POSIX API. Therefor, it must be disabled when theJoel Sherrill1-1/+5
POSIX API is disabled.
1999-11-10Patch from Eric Norum <eric@cls.usask.ca> which includes:Joel Sherrill3-8/+163
Patches against 1105 snapshot to add NTP server support to network configuration/BOOTP.
1999-11-09Patch from Eric Norum <eric@cls.usask.ca> to add NTP BOOTP support becauseJoel Sherrill3-1/+48
EPICS needs a synchronized time-of-day clock. This patch is the changes needed to get NTP server information from a BOOTP server. This patch also adds NTP server information to the network configuration structure, too.
1999-10-27Patch from Emmanuel Raguet <raguet@crf.canon.fr> and Eric ValetteJoel Sherrill1-1/+2
<valette@crf.canon.fr> to add a port of the GoAhead web server (httpd) to the RTEMS build tree. They have successfully used this BSP on i386/pc386 and PowerPC/mcp750. Mark and Joel spoke with Nick Berliner <nickb@goahead.com> on 26 Oct 1999 about this port and got verbal approval to include it in RTEMS distributions.
1999-10-25Patch from Eric Norum <eric@cls.usask.ca> to address the following problemJoel Sherrill1-1/+1
report from Philip A. Prindeville <philipp@zembu.com>: I was working on a device driver for a certain ethernet chipset that occassionally wraps in its buffer, and causes a resulting mbuf chain with only a few dozen bytes in the first mbuf of the chain. I wouldn't have thought this would be a problem, until I ran some stress tests that flooded the ethernet receiver with packets and started to get panics here: 250 251 if (m->m_pkthdr.len < sizeof(struct ip)) 252 goto tooshort; 253 254 #ifdef DIAGNOSTIC 255 if (m->m_len < sizeof(struct ip)) 256 panic("ipintr mbuf too short"); 257 #endif 258 259 if (m->m_len < sizeof (struct ip) && 260 (m = m_pullup(m, sizeof (struct ip))) == 0) { 261 ipstat.ips_toosmall++; 262 return; 263 } 264 ip = mtod(m, struct ip *); and the panic was at line 256. But if I #undef'd DIAGNOSTICS, then the m_pullup() at line 260 does the right thing and the packet ends up being processed just fine. So I started wondering, (a) why was the test checking for something that apparently wasn't a fatal condition but rather one that is subsequently recovered from a couple of lines later and (b) why panic as a diagnostic "aid" from a recoverable condition rather than just (say) log a message to the console? All of this seems overly severe for no reason that is readily apparent to me.
1999-10-06Modified to avoid conflicts on definitions of malloc. newlib 1.8.2Joel Sherrill3-3/+3
now prototypes the malloc family in stdlib.h. This causes conflicts with the way the network stack overrides the definitions of malloc. As best I (being Joel) can tell, commenting stdlib.h out keeps the files compiling and referencing the desired malloc/free but results in more warnings.
1999-10-04Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de> to make fix bugJoel Sherrill1-3/+3
where wrapup left pieces out of the librtemsall.a.
1999-10-04Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de> to make libnetworkingJoel Sherrill1-2/+2
a top level more independently configured package.
1999-10-04Patch from Eric Norum <eric@cls.usask.ca>. Comments follow:Joel Sherrill2-3/+5
The old system would panic when the loopback interface was included as part of the network initialation structures. With the printf you get an message, but the interface is still properly initialized.
1999-09-07Applied patch rtems-rc-19990820-6.diff.gz fromJoel Sherrill1-0/+24
Ralf Corsepius <corsepiu@faw.uni-ulm.de> which converted many Makefile.in's to Makefile.am's. This added a lot of files.
1999-08-26Comment cleanup from Eric Norum <eric@cls.usask.ca>.Joel Sherrill1-5/+0
1999-08-23Patch from Eric Norum <eric@cls.usask.ca> to readd the behavior whereJoel Sherrill1-30/+6
the minor number indicated the port number to try.
1999-07-12Patch from Eric Norum <eric@cls.usask.ca>:Joel Sherrill1-20/+15
I get the following warning when compiling the latest snapshot. I had a quick look at the source -- it certainly looks to me like this is a real bug. ../../../../src/rtems-19990709/c/src/lib/libc/mount.c:97: warning: `options' might be used uninitialized in this function Also, I changed the TFTP test program and TFTP driver to reflect the changes in the way paths are passed to the TFTP driver. The TFTP driver now needs a proper `dotted-decimal' hostname as the second component of the path name.
1999-06-15After comments D. V. Henkel-Wallace <gumby@zembu.com>, the interface toJoel Sherrill1-1/+1
mount() was changed to avoid the use of a string as the options.
1999-06-11Patch from Ian Lance Taylor <ian@airs.com>:Joel Sherrill4-2/+64
The select function is not particularly efficient when dealing with a large number of sockets. The application has to build a big set of bits and pass it in. RTEMS has to look through all those bits and see what is ready. Then the application has to look through all the bits again. On the other hand, when using RTEMS, the select function is needed exactly when you have a large number of sockets, because that is when it becomes prohibitive to use a separate thread for each socket. I think it would make more sense for RTEMS to support callback functions which could be invoked when there is data available to read from a socket, or when there is space available to write to a socket. Accordingly, I implemented them. This patch adds two new SOL_SOCKET options to setsockopt and getsockopt: SO_SNDWAKEUP and SO_RCVWAKEUP. They take arguments of type struct sockwakeup: struct sockwakeup { void (*sw_pfn) __P((struct socket *, caddr_t)); caddr_t sw_arg; }; They are used to add or remove a function which will be called when something happens for the socket. Getting a callback doesn't imply that a read or write will succeed, but it does imply that it is worth trying. This adds functionality to RTEMS which is somewhat like interrupt driven socket I/O on Unix. After the patch to RTEMS, I have appended a patch to netdemos-19990407/select/test.c to test the new functionality and demonstrate one way it might be used. To run the new test instead of the select test, change doSocket to call echoServer2 instead of echoServer.
1999-06-11Patch from Eric Norum <eric@cls.usask.ca> to fix bug reported byJoel Sherrill1-0/+2
Ian Lance Taylor <ian@airs.com>: Ian Lance Taylor wrote: > > In rtems-19990528, sbwait sets SB_WAIT in sb_flags. sowakeup checks > it. Why doesn't socket_select set it? > > I don't know that this is a bug--I haven't tried to create a test > case. However, it certainly looks odd. > > Ian Yes, there's a bug there. Sorry about that. It was introduced when I did some cleanup on the sleep/wakeup handling in rtems_glue.c.
1999-05-28Changes from Eric Norum to add a loop and limit on the length of timeJoel Sherrill1-22/+32
the stack will wait for mbufs.
1999-05-28Alignment corrected per Eric Norum's suggestion.Joel Sherrill1-1/+2
1999-05-27Patch from Eric Norum <eric@pollux.usask.ca> to eliminate a panic when theJoel Sherrill3-147/+88
network stack runs out of mbufs.
1999-05-20Removed all post 4.0 changes.Joel Sherrill1-81/+78
1999-05-17Patch from D. V. Henkel-Wallace <gumby@zembu.com> to remove compilerJoel Sherrill3-4/+4
warnings.
1999-05-07Error reporting fixed by Jennifer.Joel Sherrill1-15/+15
1999-04-27Patch from Eric Norum <eric@cls.usask.ca> to corrent a miscount in lengthJoel Sherrill1-1/+1
that results in an error in parsing network unit names/numbers.
1999-04-19Changed ioctl() prototype to be more like Linux/POSIX than BSD to easeJoel Sherrill1-1/+1
porting of ACE to RTEMS.
1999-04-19After discussion with Eric Norum <eric@skatter.usask.ca>,Joel Sherrill1-0/+22
I added __INSIDE_RTEMS_BSD_TCPIP_STACK__ that trips all the needed macro definitions for a network driver.
1999-04-01Moved sparc specific version of in_cksum_hdr to an inline routine likeJoel Sherrill2-31/+43
the reset of the CPU specific implementations after comment from Eric Norum.
1999-03-31Patch from Eric Norum <eric@skatter.usask.ca> which changed the exitJoel Sherrill1-2/+1
sequence.
1999-03-30Removed warning for `#ifdef' argument starts with punctuation.Joel Sherrill1-1/+1
1999-03-30Patch to add shutdown() routine from Tony R. Ambardar <tonya@ece.ubc.ca>.Joel Sherrill1-0/+25
1999-03-23SPARC optimized version of IP checksum header routine. SubmittedJoel Sherrill1-0/+32
by Jiri Gaisler <jgais@ws.estec.esa.nl>.
1999-03-23Patch from Eric Norum <eric@skatter.usask.ca> to improve parsing ofJoel Sherrill2-0/+45
network interface names. This change does not introduce any compatibility problems.
1999-03-19Patch from Eric Norum <eric@skatter.usask.ca> that adds externalJoel Sherrill1-4/+30
fcntl support and an external fcntl handler for sockets.