summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking (follow)
Commit message (Collapse)AuthorAgeFilesLines
* network: SMP support for network semaphoreSebastian Huber2013-07-221-0/+6
|
* network: Include missing header fileSebastian Huber2013-07-221-0/+2
|
* 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.
* sparc in_cksum: Use __sparc__ which is available in -ansi modeJoel Sherrill2013-06-202-2/+2
|
* Added in_cksum_sparc.h to optimize IP checksum calculations for SPARC.Jiri Gaisler2013-06-192-0/+312
|
* nios2: Add optimized IP checksum supportJeffrey O. Hill2013-03-113-0/+365
|
* ftpfs: Fix SIZE command handlingSebastian Huber2013-01-281-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.
* Move <memory.h> and <sys/uio.h> to non-networking directoryJoel Sherrill2013-01-233-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.
* 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.
* Header File Doxygen Enhancement Task #1Alex Ivanov2012-12-281-2/+2
|
* libnetworking: Make functions publicSebastian Huber2012-12-182-2/+4
| | | | | Make functions rtems_bsdnet_semaphore_obtain_recursive() and rtems_bsdnet_semaphore_release_recursive() public.
* ftpfs: Fix NULL pointer accessSebastian Huber2012-11-221-7/+11
|
* ftpfs: Use SIZE commandSebastian Huber2012-11-211-1/+98
|
* ftpfs: Open control connection during path evalSebastian Huber2012-11-211-162/+151
|
* ftpfs: FormatSebastian Huber2012-11-211-29/+30
|
* 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: Disconnect after mbuf shortageSebastian Huber2012-11-051-1/+4
| | | | | The missing disconnect left the socket in an unusable state. Each send request resulted in an EISCONN error.
* 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-066-38/+51
|
* network/dhcp: PR1841: Fix DNS processing in DHCPSebastien Bourdeauducq2012-05-221-3/+45
|
* Filesystem: Change pathconf_limits_and_optionsSebastian Huber2012-05-151-4/+0
| | | | | | The pathconf_limits_and_options field of rtems_filesystem_mount_table_entry_t is now a const pointer to reduce the read-write memory demands of file system instances.
* Filesystem: Move operations to mount table entrySebastian Huber2012-05-153-3/+2
| | | | | | | | | | | 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-1121-35/+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-11179-467/+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.
* Revert: Remove CVS IdsJoel Sherrill2012-05-071-0/+4
| | | | | See http://www.rtems.org/pipermail/rtems-devel/2012-May/001006.html for details.
* Remove CVS-Ids.Ralf Corsépius2012-05-041-4/+0
|
* 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: Rename definesSebastian Huber2012-03-131-2/+2
| | | | | | | | | | | | | | | o Removed RTEMS_LIBIO_PERMS_SEARCH. o Renamed RTEMS_LIBIO_PERMS_READ in RTEMS_FS_PERMS_READ. o Renamed RTEMS_LIBIO_PERMS_WRITE in RTEMS_FS_PERMS_WRITE. o Renamed RTEMS_LIBIO_PERMS_EXEC in RTEMS_FS_PERMS_EXEC. o Renamed RTEMS_LIBIO_FOLLOW_HARD_LINK in RTEMS_FS_FOLLOW_HARD_LINK. o Renamed RTEMS_LIBIO_FOLLOW_SYM_LINK in RTEMS_FS_FOLLOW_SYM_LINK. o Renamed RTEMS_LIBIO_MAKE in RTEMS_FS_MAKE. o Renamed RTEMS_LIBIO_EXCLUSIVE in RTEMS_FS_EXCLUSIVE. o Renamed RTEMS_LIBIO_ACCEPT_RESIDUAL_DELIMITERS in RTEMS_FS_ACCEPT_RESIDUAL_DELIMITERS. o Renamed RTEMS_LIBIO_REJECT_TERMINAL_DOT in RTEMS_FS_REJECT_TERMINAL_DOT.
* Filesystem: New defaults fsync_h and fdatasync_hSebastian Huber2012-03-133-8/+8
| | | | | | | 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-134-259/+183
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* 2012-03-02 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsépius2012-03-021-182/+188
| | | | | * libnetworking/resolv.h: Partial sync with FreeBSD. Add decls for res_send_setqhook, res_send_setrhook.
* 2012-03-02 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsépius2012-03-021-1/+4
| | | | | | * configure.ac: Check for rcmd in unistd.h. * libnetworking/libc/rcmd.c: Build iff rcmd is declared in unistd.h. Change rcmd's decl to match with Linux/FreeBSD's decl.
* Fixed incorrect error pathSebastian Huber2012-02-151-2/+0
| | | | The inet_aton() function returns non-zero in case of success.
* Avoid buffer overflow and misaligned memory accessSebastian Huber2012-02-141-14/+24
|
* Removed fpathconf file system node handler.Sebastian Huber2012-02-023-4/+0
| | | | There existed no calling function for this handler.
* Remove all .cvsignore files.Joel Sherrill2012-02-011-2/+0
|
* 2011-12-08 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-12-082-3/+3
| | | | | | | * libnetworking/rtems/rtems_dhcp.c: Make format_ip, dhcp_init static. * libnetworking/nfs/bootp_subr.c: Make bootp_strdup_realloc static.
* 2011-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-12-071-1/+1
| | | | | | PR 1983/networking * libnetworking/libc/gethostbyht.c (gethostent_r): Abort if (!hostf).
* 2011-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-12-071-1/+1
| | | | | * libnetworking/libc/ns_parse.c (ns_parserr): Comment out if ( section < 0 ) (type is unsigned).
* 2011-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-12-071-0/+2
| | | | | * libnetworking/libc/gethostbydns.c: Comment out __dns_getanswer (Unused).
* 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-11-06 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-11-062-2/+2
| | | | | | | | PR1945/cpukit * libfs/src/nfsclient/src/nfs.c, libfs/src/rfs/rtems-rfs-rtems-dev.c, libfs/src/rfs/rtems-rfs-rtems-dir.c, libfs/src/rfs/rtems-rfs-rtems-file.c, libnetworking/lib/ftpfs.c, libnetworking/lib/tftpDriver.c: Replace rtems_off64_t with off_t.
* 2011-10-20 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-10-201-4/+1
| | | | | * libnetworking/net/if_ethersubr.c (ether_output): Remove unused vars "hlen", "off".