summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/rtems (follow)
Commit message (Collapse)AuthorAgeFilesLines
* cpukit/libnetworking/rtems/rtems_dhcp.c: Fix compilation errorMartin Galvan2015-09-031-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.
* cpukit/libnetworking/rtems/rtems_dhcp.c: Fix leak on realloc failure for ↵Martin Galvan2015-09-031-5/+13
| | | | | | dhcp_hostname. Closes #2405.
* libnetworking: Send the hostname if set in the network configuration.Chris Johns2015-07-141-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.
* timecounter: Use in RTEMSAlexander Krutwig2015-05-202-5/+2
| | | | | | | | Replace timestamp implementation with FreeBSD bintime and timecounters. New test sptests/sptimecounter02. Update #2271.
* score: Fine grained locking for mutexesSebastian Huber2015-05-191-12/+7
| | | | Update #2273.
* score: _Objects_Get_isr_disable()Sebastian Huber2015-04-211-3/+3
| | | | | | | Use ISR_lock_Context instead of ISR_Level to allow use of ISR locks for low-level locking. Update #2273.
* network: Avoid clash with FreeBSD <sys/time.h>Sebastian Huber2015-03-092-4/+6
|
* Panic on RTEMS_FAST_MUTEX network semaphore claim/release.Chris Johns2015-02-241-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.
* Filesystem: Use rtems_libio_iop_to_descriptor()Sebastian Huber2015-02-041-1/+1
| | | | | Drop parameter check from previously unused rtems_libio_iop_to_descriptor().
* libnetworking: Fix close of active socketsSebastian Huber2015-01-204-65/+68
| | | | | | | 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.
* libnetworking: Simplify sbwait()Sebastian Huber2015-01-151-11/+1
|
* libnetworking: Make rtems_dhcp_failsafe() run time configurablePeter Dufault2014-12-232-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
* net: Add network task affinity configDaniel Cederman2014-12-023-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.
* libnetworking: Fix the sethostname decl to match newlib.Chris Johns2014-10-312-2/+2
|
* Add configuration to detect toolset has sigaltstack() prototypeJoel Sherrill2014-08-201-4/+6
|
* Change all references of rtems.com to rtems.org.Chris Johns2014-03-216-6/+6
|
* libnetworking: TypoSebastian Huber2014-03-061-1/+1
|
* Filesystem: Use default kqfilter and poll handlerSebastian Huber2013-12-201-0/+2
|
* Filesystem: Add readv/writev handlersSebastian Huber2013-12-201-11/+13
| | | | | | | | | 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.
* select.h, rtems_select.c, nds select: Add restrict keywordDaniel Ramirez2013-11-201-1/+2
|
* PR766: Delete __RTEMS_VIOLATE_KERNEL_VISIBILITY__Sebastian Huber2013-08-082-8/+0
|
* score: Merge tod implementation into one fileSebastian Huber2013-07-262-5/+5
| | | | | Delete TOD_MICROSECONDS_PER_SECOND, TOD_MICROSECONDS_TO_TICKS() and TOD_MILLISECONDS_TO_TICKS().
* network: SMP support for network semaphoreSebastian Huber2013-07-221-0/+6
|
* score: Avoid direct usage of _Thread_ExecutingSebastian Huber2013-07-181-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.
* score: Create mutex implementation headerSebastian Huber2013-07-181-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.
* rtems: Create semaphore implementation headerSebastian Huber2013-07-181-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.
* cpukit: Use Consistent Beginning of Doxygen Group NotationJoel Sherrill2013-01-101-2/+1
| | | | | This is the result of a sed script which converts all uses of @{ into a consistent form.
* libnetworking: Make functions publicSebastian Huber2012-12-182-2/+4
| | | | | Make functions rtems_bsdnet_semaphore_obtain_recursive() and rtems_bsdnet_semaphore_release_recursive() public.
* libnetworking: Use rtems_clock_get_uptime_secondsSebastian Huber2012-11-212-16/+5
| | | | | | | | This reduces the start-up time of the network stack. With a 1ms tick the ticks since boot value overflows after approximately 50 days. This problem is avoided with the rtems_clock_get_uptime_seconds() function.
* libnetworking: Use rtems_clock_get_uptime_timevalSebastian Huber2012-11-212-14/+5
|
* libnetworking: Avoid deadlock during starvationSebastian Huber2012-11-021-7/+36
|
* libnetworking: Use system eventsSebastian Huber2012-11-023-11/+19
| | | | | | | Add reserved system events RTEMS_EVENT_SYSTEM_NETWORK_SBWAIT and RTEMS_EVENT_SYSTEM_NETWORK_SOSLEEP. Add and use rtems_bsdnet_event_send().
* libnetworking: Silence set but not used warningsSebastian Huber2012-07-171-1/+1
|
* network/bootp: PR2031: Add and use header fileSebastien Bourdeauducq2012-06-064-23/+47
|
* network/dhcp: PR1841: Fix DNS processing in DHCPSebastien Bourdeauducq2012-05-221-3/+45
|
* Filesystem: Move operations to mount table entrySebastian Huber2012-05-151-1/+0
| | | | | | | | | | | The scope of the file system operations is the file system instance. The scope of the file system node handlers is the file location. The benefit of moving the operations to the mount table entry is a size reduction of the file location (rtems_filesystem_location_info_t). The code size is slightly increased due to additional load instructions. Restructure rtems_filesystem_mount_table_entry_t to improve cache efficiency.
* Filesystem: Use ioctl_command_tSebastian Huber2012-05-151-6/+1
|
* Remove CVS Id Strings (manual edits after script)Joel Sherrill2012-05-113-7/+0
| | | | | | These modifications were required by hand after running the script. In some cases, the file names did not match patterns. In others, the format of the file did not match any common patterns.
* Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill2012-05-1126-81/+0
| | | | | | | | | | | | Script does what is expected and tries to do it as smartly as possible. + remove occurrences of two blank comment lines next to each other after Id string line removed. + remove entire comment blocks which only exited to contain CVS Ids + If the processing left a blank line at the top of a file, it was removed.
* networking: socket to/from file descriptorSebastian Huber2012-04-032-5/+58
| | | | | | | | | | o Move rtems_bsdnet_fdToSocket() and rtems_bsdnet_makeFdForSocket() to "cpukit/libnetworking/rtems/rtems_syscall.c". o The rtems_bsdnet_makeFdForSocket() function is now static. o Check in rtems_bsdnet_fdToSocket() function that the file descriptor uses the socket handlers, otherwise an error status will be returned and errno set to ENOTSOCK. o New test libtests/syscall01.
* Filesystem: New defaults fsync_h and fdatasync_hSebastian Huber2012-03-131-2/+2
| | | | | | | New defaults rtems_filesystem_default_fsync_or_fdatasync() and rtems_filesystem_default_fsync_or_fdatasync_success() for fsync_h and fdatasync_h. The rtems_filesystem_default_fsync_or_fdatasync() sets now errno to EINVAL according to POSIX.
* Filesystem: Reference counting for locationsSebastian Huber2012-03-132-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o A new data structure rtems_filesystem_global_location_t was introduced to be used for o the mount point location in the mount table entry, o the file system root location in the mount table entry, o the root directory location in the user environment, and o the current directory location in the user environment. During the path evaluation global start locations are obtained to ensure that the current file system instance will be not unmounted in the meantime. o The user environment uses now reference counting and is protected from concurrent access. o The path evaluation process was completely rewritten and simplified. The IMFS, RFS, NFS, and DOSFS use now a generic path evaluation method. Recursive calls in the path evaluation have been replaced with iteration to avoid stack overflows. Only the evaluation of symbolic links is recursive. No dynamic memory allocations and intermediate buffers are used in the high level path evaluation. No global locks are held during the file system instance specific path evaluation process. o Recursive symbolic link evaluation is now limited by RTEMS_FILESYSTEM_SYMLOOP_MAX. Applications can retrieve this value via sysconf(). o The device file system (devFS) uses now no global variables and allocation from the workspace. Node names are allocated from the heap. o The upper layer lseek() performs now some parameter checks. o The upper layer ftruncate() performs now some parameter checks. o unmask() is now restricted to the RWX flags and protected from concurrent access. o The fchmod_h and rmnod_h file system node handlers are now a file system operation. o The unlink_h operation has been removed. All nodes are now destroyed with the rmnod_h operation. o New lock_h, unlock_h, clonenod_h, and are_nodes_equal_h file system operations. o The path evaluation and file system operations are now protected by per file system instance lock and unlock operations. o Fix and test file descriptor duplicate in fcntl(). o New test fstests/fsnofs01.
* Removed fpathconf file system node handler.Sebastian Huber2012-02-021-1/+0
| | | | There existed no calling function for this handler.
* 2011-12-08 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-12-081-2/+2
| | | | | | | * libnetworking/rtems/rtems_dhcp.c: Make format_ip, dhcp_init static. * libnetworking/nfs/bootp_subr.c: Make bootp_strdup_realloc static.
* 2011-12-01 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-12-011-4/+4
| | | | | * libnetworking/rtems/mkrootfs.c: Use mode_t for modes, Use size_t for sizes.
* 2011-11-30 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-11-301-2/+1
| | | | | * libnetworking/rtems/rtems_dhcp.c (dhcp_init): Remove unused var "len".
* 2011-10-18 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-10-181-2/+0
| | | | | * libnetworking/rtems/rtems_dhcp.c: Remove unused var "disconnected".
* 2011-07-21 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2011-07-211-1/+6
| | | | * libnetworking/rtems/rtems_showipstat.c: Print IP input queue drops.
* 2011-07-08 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2011-07-071-2/+5
| | | | | * libnetworking/rtems/tftp.h, libnetworking/lib/tftpDriver.c: Fixed prototype.
* 2011-05-16 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-05-161-2/+2
| | | | | * libnetworking/rtems/rtems_bsdnet_internal.h: Move #include <rtems.h> out of C++-guard.