summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* cpukit: Remove libnetworkingVijay Kumar Banerjee2021-04-071-285/+0
| | | | Update #3850
* network: Header file compatiblitySebastian Huber2017-06-071-0/+29
| | | | | | | | Move legacy network stack implementation specifics to <rtems/rtems_bsdnet_internal.h>. Include missing header files. Add interface flags compatibility. Update #2833.
* Do not include <sys/ioctl.h> in kernel-spaceSebastian Huber2017-06-071-1/+1
| | | | Update #2833.
* configure: Remove __RTEMS_HAVE_DECL_SIGALTSTACK__Sebastian Huber2017-01-131-7/+0
|
* libnetworking: Import current <arpa/inet.h>Christian Mauderer2016-06-281-1/+25
| | | | | | | | | | Import the <arpa/inet.h> from current FreeBSD. Necessary due to changes in <netinet/in.h>. Remove BSD hack from <arpa/inet.h>. Clean up problems with htonl(). These functions are defined in <arpa/inet.h>. This lead to some problems because they are defined in <rtems/endian.h> too. Add NTOHL, ... to <rtems/rtems_bsdnet_internal.h>.
* network: Align with Newlib type definitionsSebastian Huber2016-05-301-4/+5
|
* network: Fix warningsSebastian Huber2016-04-221-0/+8
|
* score: Compatibility with latest NewlibSebastian Huber2016-04-081-2/+2
|
* timecounter: Use in RTEMSAlexander Krutwig2015-05-201-1/+2
| | | | | | | | Replace timestamp implementation with FreeBSD bintime and timecounters. New test sptests/sptimecounter02. Update #2271.
* network: Avoid clash with FreeBSD <sys/time.h>Sebastian Huber2015-03-091-4/+1
|
* libnetworking: Fix close of active socketsSebastian Huber2015-01-201-1/+1
| | | | | | | 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.
* net: Add network task affinity configDaniel Cederman2014-12-021-0/+12
| | | | | | | 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-311-1/+1
|
* Add configuration to detect toolset has sigaltstack() prototypeJoel Sherrill2014-08-201-4/+6
|
* libnetworking: Make functions publicSebastian Huber2012-12-181-0/+2
| | | | | Make functions rtems_bsdnet_semaphore_obtain_recursive() and rtems_bsdnet_semaphore_release_recursive() public.
* libnetworking: Use rtems_clock_get_uptime_secondsSebastian Huber2012-11-211-1/+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-211-1/+5
|
* libnetworking: Use system eventsSebastian Huber2012-11-021-2/+10
| | | | | | | 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-061-1/+0
|
* Filesystem: Use ioctl_command_tSebastian Huber2012-05-151-6/+1
|
* Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill2012-05-111-2/+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-031-2/+0
| | | | | | | | | | 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: Reference counting for locationsSebastian Huber2012-03-131-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* 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.
* Include <sys/cdefs.h> (Eliminate rtems/bsd/sys/cdefs.h).Ralf Corsepius2011-03-241-1/+1
|
* 2010-02-18 Chris Johns <chrisj@rtems.org>Chris Johns2010-02-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libfs/src/rfs/rtems-rfs-bitmaps.c, libfs/src/rfs/rtems-rfs-bitmaps.h, libfs/src/rfs/rtems-rfs-bitmaps-ut.c, libfs/src/rfs/rtems-rfs-block.c, libfs/src/rfs/rtems-rfs-block.h, libfs/src/rfs/rtems-rfs-block-pos.h, libfs/src/rfs/rtems-rfs-buffer-bdbuf.c, libfs/src/rfs/rtems-rfs-buffer.c, libfs/src/rfs/rtems-rfs-buffer-devio.c, libfs/src/rfs/rtems-rfs-buffer.h, libfs/src/rfs/rtems-rfs-data.h, libfs/src/rfs/rtems-rfs-dir.c, libfs/src/rfs/rtems-rfs-dir.h, libfs/src/rfs/rtems-rfs-dir-hash.c, libfs/src/rfs/rtems-rfs-dir-hash.h, libfs/src/rfs/rtems-rfs-file.c, libfs/src/rfs/rtems-rfs-file.h, libfs/src/rfs/rtems-rfs-file-system.c, libfs/src/rfs/rtems-rfs-file-system-fwd.h, libfs/src/rfs/rtems-rfs-file-system.h, libfs/src/rfs/rtems-rfs-format.c, libfs/src/rfs/rtems-rfs-format.h, libfs/src/rfs/rtems-rfs-group.c, libfs/src/rfs/rtems-rfs-group.h, libfs/src/rfs/rtems-rfs.h, libfs/src/rfs/rtems-rfs-inode.c, libfs/src/rfs/rtems-rfs-inode.h, libfs/src/rfs/rtems-rfs-link.c, libfs/src/rfs/rtems-rfs-link.h, libfs/src/rfs/rtems-rfs-mutex.c, libfs/src/rfs/rtems-rfs-mutex.h, libfs/src/rfs/rtems-rfs-rtems.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, libfs/src/rfs/rtems-rfs-rtems.h, libfs/src/rfs/rtems-rfs-rtems-utils.c, libfs/src/rfs/rtems-rfs-shell.c, libfs/src/rfs/rtems-rfs-shell.h, libfs/src/rfs/rtems-rfs-trace.c, libfs/src/rfs/rtems-rfs-trace.h: New. * Makefile.am, preinstall.am, libfs/Makefile.am, wrapup/Makefile.am: Updated with the RFS support. * libfs/README: Updated after 10 years. * libblock/src/flashdisk.c, libblock/src/nvdisk.c, libblock/src/ramdisk-driver.c: Updated to the new error reporting in libblock. * libmisc/shell/main_ls.c, libmisc/shell/print-ls.c: Fix printing the size in long mode. * libnetworking/nfs/bootp_subr.c, libnetworking/rtems/rtems_bootp.c, libnetworking/rtems/rtems_bsdnet_internal.h: Return the BOOTP/DHCP to the forever behaviour of 4.9 with the ability to call BOOTP and control the process if required.
* 2009-02-19 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-02-191-0/+4
| | | | | | * libnetworking/rtems/rtems_bsdnet_internal.h: Re-add boolean when building BSD code. This is used by at least one of the BSD NIC drivers I am currently porting. I am trying out
* Remove struct vm_page, vm_page_t, boolean_t (Unused).Ralf Corsepius2009-02-101-5/+0
|
* Remove struct file (Unused).Ralf Corsepius2009-02-101-1/+0
|
* 2007-06-21 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2007-06-211-0/+8
| | | | | * libnetworking/rtems/mkrootfs.h, libnetworking/rtems/rtems_bsdnet.h, libnetworking/rtems/rtems_bsdnet_internal.h: Add extern __cplusplus.
* Include <rtems/bsd/sys/cdefs.h>Ralf Corsepius2007-05-101-2/+1
|
* Include <rtems/bsd/sys/cdefs.h> instead of <sys/cdefs.h>.Ralf Corsepius2007-05-101-1/+1
|
* Include <rtems/endian.h> instead of <machine/endian.h>.Ralf Corsepius2007-05-091-1/+1
|
* Eliminate __P().Ralf Corsepius2007-03-281-1/+1
|
* Fix typo.Ralf Corsepius2006-11-161-1/+1
|
* 2006-11-16 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2006-11-161-3/+4
| | | | * libnetworking/rtems/rtems_bsdnet_internal.h: Add timeout() define.
* 2006-08-30 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2006-08-311-3/+9
| | | | | | | | | | | | | | | * ftpd/ftpd.c, libcsupport/include/sys/ioccom.h, libcsupport/src/ioctl.c, libnetworking/kern/uipc_mbuf.c, libnetworking/libc/inet_addr.c, libnetworking/net/ethernet.h, libnetworking/net/if.c, libnetworking/net/if_ethersubr.c, libnetworking/net/if_ppp.c, libnetworking/net/if_pppvar.h, libnetworking/net/if_var.h, libnetworking/net/ppp_tty.c, libnetworking/netinet/in_cksum.c, libnetworking/nfs/bootp_subr.c, libnetworking/rtems/rtems_bsdnet_internal.h, libnetworking/sys/mbuf.h, pppd/md4.c, pppd/pppd.h: Remove warnings due to improper use of int which shows up on 16 bit targets. Added ioctl_command_t since IOCTL command argument does not reliably fit into 16 bits.
* 2005-02-03 Ralf Corsepius <ralf.corsepius@rtems.org>Ralf Corsepius2005-02-031-8/+1
| | | | | | | | | | | | | | | | PR 755/rtems * libnetworking/rtems_glue.c: Rename rtems_bsdnet_nameservers to _rtems_bsdnet_nameservers. Rename rtems_bsdnet_ntpservers to _rtems_bsdnet_ntpservers. Add new rtems_bsdnet_nameservers, rtems_bsdnet_ntpservers as pointers to _rtems_bsdnet_*servers arrays. * libnetworking/rtems/rtems_bsdnet_internal.h: Remove rtems_bsdnet_nameserver, rtems_bsdnet_nameserver_count. * libnetworking/rtems/rtems_bsdnet.h: Remove rtems_bsdnet_ntpserver, rtems_bsdnet_ntp_count. * libnetworking/rtems/bsdnet/servers.h: New. * libnetworking/opt_ipsec.h: New (BSD compatibility). * libnetworking/Makefile.am: Reflect changes above.
* New header guards.Ralf Corsepius2005-02-021-3/+3
|
* Use -D_KERNEL instead of -DKERNEL for greater FreeBSD compliance.Ralf Corsepius2004-04-201-1/+1
|
* Remove stray white spaces.Ralf Corsepius2004-04-181-1/+1
|
* 2004-04-02 Ralf Corsepius <ralf_corsepius@rtems.org>Ralf Corsepius2004-04-021-2/+0
| | | | | * libnetworking/Makefile.am: AM_CPPFLAGS += -I$(srcdir). * libnetworking/rtems/rtems_bsdnet_internal.h: Remove USHRT_MAX.
* 2004-03-29 Ralf Corsepius <ralf_corsepius@rtems.org>Ralf Corsepius2004-03-291-1/+1
| | | | | | | | | | * libnetworking/lib/ftpfs.c, libnetworking/lib/rtems_bsdnet_ntp.c, libnetworking/lib/tftpDriver.c, libnetworking/machine/endian.h, libnetworking/net/if_ppp.c, libnetworking/rtems/rtems_bsdnet.h, libnetworking/rtems/rtems_bsdnet_internal.h, libnetworking/rtems/rtems_glue.c, libnetworking/rtems/rtems_syscall.c: Convert to using c99 fixed size types.
* 2004-01-07 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2004-01-071-0/+1
| | | | | * rtems/rtems_bsdnet_internal.h: Include rtems/cdefs.h so things compile.
* 2002-10-28 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2002-10-281-0/+4
| | | | | | | | | | | | | | | | | | | | | * Pass to eliminate warnings. * kern/uipc_mbuf.c: Conditional SYSINIT() usage on __rtems__. Fix return statement without a value. * lib/ftpfs.c: read and write filesystem routines return ssize_t. * lib/syslog.c: Add include of <string.h> to eliminate warning. * lib/tftpDriver.c: read and write filesystem routines return ssize_t. * libc/gethostbydns.c: Prototype abort(). * libc/inet_ntoa.c: Prototype strcpy(). * libc/rcmd.c: Add include of <sys/select.h> * net/if_loop.c: Turn token at end of endif to comment. * net/rtsock.c, nfs/bootp_subr.c: Conditional SYSINIT() usage on __rtems__. * rtems/rtems_bootp.c: Add include of <rtems/rtems_bsdnet_internal.h>. * rtems/rtems_bsdnet_internal.h: Added prototypes for memcpy() and memset() since the BSD code tries to avoid using libc .h files since it is used to being in the kernel. * rtems/rtems_syscall.c: read and write filesystem routines return ssize_t.
* 2002-07-30 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2002-07-301-2/+2
| | | | | | | | | | * machine/types.h: Removed as a simpler version of this file is now part of the RTEMS newlib support. * machine/Makefile.am, machine/endian.h, nfs/bootp_subr.c, rtems/rtems_bsdnet_internal.h, sys/Makefile.am, sys/systm.h: Minor modifications to use the simpler machine/types.h. Mostly more complete sets of #include's to account for machine/types.h no longer doing this.
* 2001-09-19 Chris Johns <ccj@acm.org>Joel Sherrill2001-09-191-1/+1
| | | | | | | * nfs/bootp_subr.c, rtems/rtems_bootp.c, rtems/rtems_bsdnet.h, rtems/rtems_bsdnet_internal.h Added support for populating the initial "root" filesystem with information obtained via the DHCP response.
* 2000-10-30 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2000-10-311-0/+2
| | | | | | | | | | * POSIX include files merged into newlib. This resulted in some definitions moving to other files and thus some secondary effects in RTEMS source code. * machine/types.h: Added _CLOCKID_T_ and _TIMER_T_ to be in sync with newlib's <machine/types.h>. * rtems/rtems_bsdnet_internal.h: newlib now includes definition of struct itimerval in <sys/time.h>.
* 2000-09-22 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2000-09-221-0/+2
| | | | | | | | | | * machine/types.h, pppd/pppd.h, rtems/rtems_bsdnet_internal.h, rtems_webserver/webmain.c: machine/types.h should not have included rtems.h. It is now including precisely the least amount of low level, yet portable .h files to get the basic RTEMS types defined. This rippled into other files since rtems_bsdnet_internal.h used machine/types.h to include rtems.h.