summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-09-03cpukit/libnetworking/rtems/rtems_dhcp.c: Fix compilation errorMartin Galvan1-1/+1
Apparently 'free' is defined as a macro which takes two arguments and calls rtems_bsdnet_free. When fixing #2405 I added a missing 'free' but didn't notice it was non-standard. Closes #2410.
2015-09-03cpukit/libnetworking/rtems/rtems_dhcp.c: Fix leak on realloc failure for ↵Martin Galvan1-5/+13
dhcp_hostname. Closes #2405.
2015-07-29tftpDriver: close() false errorMichael Davidsaver1-1/+3
closes #2376.
2015-07-14libnetworking: Send the hostname if set in the network configuration.Chris Johns1-2/+16
This allows a suitably configured DHCP server with DDNS to enter the name into the DNS table making it addressiable via it's host name.
2015-05-20timecounter: Use in RTEMSAlexander Krutwig2-5/+2
Replace timestamp implementation with FreeBSD bintime and timecounters. New test sptests/sptimecounter02. Update #2271.
2015-05-19score: Fine grained locking for mutexesSebastian Huber1-12/+7
Update #2273.
2015-04-21score: _Objects_Get_isr_disable()Sebastian Huber1-3/+3
Use ISR_lock_Context instead of ISR_Level to allow use of ISR locks for low-level locking. Update #2273.
2015-03-09network: Avoid clash with FreeBSD <sys/time.h>Sebastian Huber2-4/+6
2015-02-24Panic on RTEMS_FAST_MUTEX network semaphore claim/release.Chris Johns1-1/+8
Fix the code to panic rather than perform a bad access if the network semaphore is accessed without the stack being intialised. Closes #2229.
2015-02-23networking: alignment exception in ioctl(SIOCGIFCONF)Till Straumann1-11/+12
Access memory using a byte stream when copying to avoid unaligned access. update #1401
2015-02-12sys/socket.h: Include <sys/types.h> for ssize_tJoel Sherrill1-1/+1
closes 2245
2015-02-09Filesystem: Delete unused fsmountme_h handlerSebastian Huber2-2/+0
2015-02-04Filesystem: Use rtems_libio_iop_to_descriptor()Sebastian Huber1-1/+1
Drop parameter check from previously unused rtems_libio_iop_to_descriptor().
2015-01-23sys/socket.h: Add include of <sys/_types.h> for ssize_tJoel Sherrill1-0/+1
This was needed to make it possible to only include <sys/socket.h> for the methods in this file in compliance with the POSIX specification. This was identified by the Open Group FACE Conformance Test Suite. Close 2245.
2015-01-23libnetworking: Fix memset() callSebastian Huber1-1/+1
Close #2244.
2015-01-22Filesystem: Delete node type operationSebastian Huber2-15/+8
Use the fstat handler instead.
2015-01-20libnetworking: Fix close of active socketsSebastian Huber5-66/+94
Send a special event to notify tasks waiting for a socket state change in case this socket gets closed. This prevents a use after free. Close #785.
2015-01-20libnetworking: Delete dead codeSebastian Huber4-10/+0
The so_uid is always 0 in RTEMS.
2015-01-20libnetworking: Avoid spurious event deliverySebastian Huber1-1/+0
The so_pgid field contains the task identifier if this task waits for the SOSLEEP_EVENT event. Do not inherit this from the accept socket.
2015-01-15libnetworking: Simplify sbwait()Sebastian Huber1-11/+1
2014-12-23libnetworking: Make rtems_dhcp_failsafe() run time configurablePeter Dufault2-44/+91
rtems_dhcp_failsafe() can be configured at compile time with various options. This change makes it possible to instead configure it at runtime. This will make it marginally larger. I haven't measured the difference but I'll guess it's in the lower hundreds of bytes. The change could be modified to leave it either compile time or run time configurable, I prefer the simplicity of a single method. closes #1905
2014-12-02net: Add network task affinity configDaniel Cederman3-0/+55
This patch adds a default network tasks CPU affinity configuration option. The network drivers have the option to create their own daemon tasks with a custom CPU affinity set, or rely on the default set.
2014-10-31libnetworking: Fix the sethostname decl to match newlib.Chris Johns3-3/+3
2014-10-08ppp: PR1943: Avoid NULL pointer accessSebastian Huber1-8/+2
Waiting for mbufs at this level is a bad solution. It would be better to try to allocate a new mbuf chain before we hand over the current mbuf chain to the upper layer. In case the allocation fails we should drop the current packet and use its mbuf chain for a new packet.
2014-10-08ppp: Add ppp_unit()Sebastian Huber1-15/+21
This makes porting to the new network stack easier.
2014-10-07ppp: Nothing to transmit hint for Termios driverSebastian Huber1-1/+10
2014-10-07termios: Partially hide rtems_termios_ttySebastian Huber2-3/+4
Move interrupt lock to device context and expose only this structure to the read, write and set attributes device handler. This makes these device handler independent of the general Termios infrastructure suitable for direct use in printk() support.
2014-09-30pppd: Fix warningsSebastian Huber1-1/+11
2014-09-30libnetworking: Update due to Termios changesSebastian Huber2-3/+3
2014-08-20Add configuration to detect toolset has sigaltstack() prototypeJoel Sherrill1-4/+6
2014-03-21Change all references of rtems.com to rtems.org.Chris Johns7-7/+7
2014-03-06libnetworking: TypoSebastian Huber1-1/+1
2014-01-20Don't use unsafe buffer operationsNick Withers1-18/+12
Don't use unsafe buffer operations, averting (stack) buffer overflow when the syslog message length (including Facility and Level encoding) would exceed 199 characters
2014-01-09NTP: Sync time correctly when receiving broadcast updatesJim Panetta1-3/+4
1) The value of rtems_bsdnet_ntpserver_count is equal to 0 when no server is set, so the check for (rtems_bsdnet_ntpserver_count < 0) in rtems_bsdnet_get_ntp() is wrong. The check should be "<= 0". 2) Binding the listening socket port to 0 does not work. Packets appear on the interface, but the recvfrom in tryServer() never returns. Changing this to the well known NTP socket 123 allows the packets to be seen. 3) In tryServer(), an explicit check for NTP version 3 packets is made. If the NTP server is version 4, this check fails even though the packets seem to be the right shape.
2013-12-20Filesystem: Use default kqfilter and poll handlerSebastian Huber3-0/+8
2013-12-20Filesystem: Add readv/writev handlersSebastian Huber3-14/+22
The readv() and writev() support was implemented in terms of multiple calls to the read and write handlers. This imposes a problem on device files which use an IO vector as single request entity. For example a low-level network device (e.g. BPF(4)) may use an IO vector to create one frame from multiple protocol layers each with its own IO vector entry.
2013-12-10PR2161: Set the source port to SYSLOG in the syslog socket.Chris Johns1-1/+1
2013-11-20select.h, rtems_select.c, nds select: Add restrict keywordDaniel Ramirez2-5/+6
2013-08-08PR766: Delete __RTEMS_VIOLATE_KERNEL_VISIBILITY__Sebastian Huber2-8/+0
2013-07-26score: Merge tod implementation into one fileSebastian Huber2-5/+5
Delete TOD_MICROSECONDS_PER_SECOND, TOD_MICROSECONDS_TO_TICKS() and TOD_MILLISECONDS_TO_TICKS().
2013-07-22network: SMP support for network semaphoreSebastian Huber1-0/+6
2013-07-22network: Include missing header fileSebastian Huber1-0/+2
2013-07-18score: Avoid direct usage of _Thread_ExecutingSebastian Huber1-2/+5
Pass the executing thread as a function parameter. Obtain the executing thread inside a thread dispatch critical section to avoid problems on SMP.
2013-07-18score: Create mutex implementation headerSebastian Huber1-0/+1
Move implementation specific parts of coremutex.h and coremutex.inl into new header file coremuteximpl.h. The coremutex.h contains now only the application visible API.
2013-07-18rtems: Create semaphore implementation headerSebastian Huber1-0/+1
Move implementation specific parts of sem.h and sem.inl into new header file semimpl.h. The sem.h contains now only the application visible API.
2013-06-20sparc in_cksum: Use __sparc__ which is available in -ansi modeJoel Sherrill2-2/+2
2013-06-19Added in_cksum_sparc.h to optimize IP checksum calculations for SPARC.Jiri Gaisler2-0/+312
2013-03-11nios2: Add optimized IP checksum supportJeffrey O. Hill3-0/+365
2013-01-28ftpfs: Fix SIZE command handlingSebastian Huber1-76/+98
It is invalid to issue a SIZE command once a data transfer is in progress. For reads we issue the SIZE command before the RETR command and get a snapshot of the file size. For writes the file size is initialized to zero and incremented for each write chunk.
2013-01-23Move <memory.h> and <sys/uio.h> to non-networking directoryJoel Sherrill3-106/+4
These two header files were installed from libnetworking even when networking was disabled. This patch moves them to a non-networking location and updates uio.h to match the FreeBSD 8.x source being used for the USB stack and TCP/IP stack upgrade. - cpukit/include/memory.h Move from cpukit/libnetworking/memory.h. No changes - cpukit/include/sys/uio.h Move from cpukit/libnetworking/sys/uio.h. Replace with FreeBSD 8.x version. - cpukit/include/sys/_iovec.h New. FreeBSD 8.x file supporting <sys/uio.h>. - cpukit/Makefile.am Reflect movement of <memory.h> and <sys/uio.h>. - cpukit/preinstall.am Regenerate - cpukit/libnetworking/nfs/bootp_subr.c Eliminate use of uio_procp field no longer in FreeBSD structure. This field was set and never read so eliminating the set has no impact.