summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/kern (follow)
Commit message (Collapse)AuthorAgeFilesLines
* cpukit: Remove libnetworkingVijay Kumar Banerjee2021-04-077-5128/+0
| | | | Update #3850
* network: Use kernel/user space header filesSebastian Huber2018-09-107-0/+14
| | | | | | | | | | Add and use <machine/rtems-bsd-kernel-space.h> and <machine/rtems-bsd-user-space.h> similar to the libbsd to avoid command line defines and defines scattered throught the code base. Simplify cpukit/libnetworking/Makefile.am. Update #3375.
* network: Include <sys/uio.h> explicitlySebastian Huber2017-06-072-0/+2
| | | | | | Do not rely on indirect includes via other header files. Update #2833.
* network: Do not use MSIZESebastian Huber2017-06-071-2/+2
| | | | | | | Do not use the MSIZE for the legacy network stack. Instead use _SYS_MBUF_LEGACY_MSIZE. Update #2833.
* libnetworking: Move RTEMS-specific socket wake-upSebastian Huber2016-06-281-0/+2
| | | | Close #2748.
* libnetworking: Hide SO_PRIVSTATEChristian Mauderer2016-06-281-0/+7
|
* network: Ensure matching syscall prototypesSebastian Huber2016-04-221-5/+9
| | | | Ensure that kernel and user space system call protoypes are identical.
* libnetworking: Fix close of active socketsSebastian Huber2015-01-201-1/+26
| | | | | | | 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: Delete dead codeSebastian Huber2015-01-202-2/+0
| | | | The so_uid is always 0 in RTEMS.
* libnetworking: Avoid spurious event deliverySebastian Huber2015-01-201-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.
* Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill2012-05-116-8/+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.
* Use <sys/queue.h> instead of <rtems/bsd/sys/queue.h.Ralf Corsepius2011-03-024-4/+4
|
* Partial update from FreeBSD.Ralf Corsepius2009-02-111-1/+0
|
* Remove domain_set (Unused).Ralf Corsepius2009-02-111-2/+0
|
* Stop using old-style function definitions.Ralf Corsepius2008-09-014-144/+57
|
* 2008-08-19 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-08-191-1/+1
| | | | | * libnetworking/kern/kern_sysctl.c, libnetworking/libc/res_debug.c: Fix warnings.
* 2008-02-05 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-02-051-0/+9
| | | | | | | | | | | * libnetworking/kern/uipc_socket2.c, libnetworking/netinet/tcp_usrreq.c, libnetworking/netinet/udp_usrreq.c, libnetworking/rtems/rtems_bsdnet.h, libnetworking/rtems/rtems_glue.c: Add configuration parameters for network stack efficiency multiplier and default socket buffer sizes. Change default multiplier from 8 to 2 to match GNU/Linux. This has no impact on performance on the BSPs tested.
* Include <rtems/bsd/sys/queue.h> instead of <sys/queue.h>.Ralf Corsepius2007-05-104-4/+4
|
* Include <sys/queue.h> instead of <sys/buf.h>.Ralf Corsepius2007-03-282-2/+2
|
* Reflect changes to sys/protosw.h.Ralf Corsepius2007-03-281-4/+4
|
* Eliminate __P().Ralf Corsepius2007-03-281-5/+5
|
* 2007-03-24 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2007-03-241-47/+0
| | | | * libnetworking/kern/kern_subr.c: Remove #ifdef'ed vax code.
* 2006-08-30 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2006-08-311-1/+1
| | | | | | | | | | | | | | | * 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.
* 2006-08-30 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2006-08-301-1/+1
| | | | | | | | | | | | | | * libcsupport/include/sys/ioccom.h, libnetworking/kern/uipc_socket2.c, libnetworking/net/ethernet.h, libnetworking/net/if.h, libnetworking/net/if_ethersubr.c, libnetworking/net/if_ppp.c, libnetworking/net/if_pppvar.h, libnetworking/net/ppp_tty.c, libnetworking/net/pppcompress.c, libnetworking/net/slcompress.c, libnetworking/netinet/in.h, libnetworking/netinet/ip_icmp.c, libnetworking/netinet/tcp.h, libnetworking/netinet/tcp_seq.h, libnetworking/sys/protosw.h, libnetworking/sys/socketvar.h: Remove warnings. Most of the warnings were 16/32 bit integer sizing issues. Some constants had L appended, some had casts add, some types were changed to reflect a bit width requirement.
* 2006-08-15 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2006-08-151-1/+1
| | | | | | * libnetworking/kern/kern_sysctl.c: Change int to int32_t. * libnetworking/net/if_loop.c: Add cast to long. These plus a patch to machine/param.h let the h8300 build multilib.
* 2005-07-06 Ralf Corsepius <ralf.corsepius@rtems.org>Ralf Corsepius2005-07-061-4/+1
| | | | | | * libnetworking/lib/syslog.c: Fix spelling mistake. * libnetworking/sys/uio.h: Partial update from FreeBSD. * libnetworking/kern/kern_subr.c: Reflect changes above.
* Partial update from FreeBSD.Ralf Corsepius2005-05-091-83/+56
|
* Update from FreeBSDRalf Corsepius2005-05-011-6/+9
|
* 2005-04-28 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2005-04-281-0/+2
| | | | | | | | | | | | * libnetworking/kern/kern_sysctl.c, libnetworking/libc/inet_ntop.c, libnetworking/net/if_ppp.c, libnetworking/net/pppcompress.c, libnetworking/net/slcompress.c, libnetworking/netinet/ip_output.c, libnetworking/netinet/udp_usrreq.c, libnetworking/nfs/bootp_subr.c, libnetworking/rtems/rtems_select.c, libnetworking/rtems/rtems_showifstat.c, libnetworking/rtems/rtems_showroute.c, libnetworking/rtems/rtems_syscall.c: Fixed type mismatch and uninitialized variable warnings.
* 2004-12-02 Ralf Corsepius <ralf.corsepius@rtems.org>Ralf Corsepius2004-12-031-3/+2
| | | | | | * libnetworking/kern/kern_sysctl.c, libnetworking/sys/sysctl.h: Add SYSCTL_CHILDREN_SET (Update from FreeBSD for GCC-4.0.0).
* 2004-12-02 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2004-12-021-1/+2
| | | | | * libnetworking/kern/kern_sysctl.c, libnetworking/netinet/ip_mroute.c, libnetworking/sys/socketvar.h: Remove warnings.
* 2004-10-22 Ralf Corsepius <ralf_corsepius@rtems.org>Ralf Corsepius2004-10-221-4/+0
| | | | | | * libnetworking/kern/kern_sysctl.c: Remove uintptr_t. Cosmetics. * libnetworking/opt_compat.h: New.
* 2004-04-30 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2004-04-301-0/+4
| | | | | * libnetworking/kern/kern_sysctl.c: sysctl_register_all cannot be static with RTEMS.
* 2004-04-26 Ralf Corsepius <ralf_corsepius@rtems.org>Ralf Corsepius2004-04-261-4/+6
| | | | * libnetworking/kern/kern_sysctl.c: Partial updates from FreeBSD.
* 2004-04-22 Ralf Corsepius <ralf_corsepius@rtems.org>Ralf Corsepius2004-04-221-4/+0
| | | | | | * libnetworking/kern/uipc_socket.c: Partial update from FreeBSD (Remove adv-clause from copyright notice). * libnetworking/netinet/igmp_var.h: Partial update from FreeBSD.
* 2004-04-19 Ralf Corsepius <ralf_corsepius@rtems.org>Ralf Corsepius2004-04-191-28/+25
| | | | | * libnetworking/sys/sysctl.h: Partial update from FreeBSD. * libnetworking/kern/kern_sysctl.c: Partial update from FreeBSD.
* Remove stray white spaces.Ralf Corsepius2004-04-151-1/+0
|
* Unused.Ralf Corsepius2004-03-081-2/+0
|
* 2004-03-05 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2004-03-051-5/+0
| | | | | | | | | | | | | | | | | | | | | * libblock/src/bdbuf.c, libblock/src/ramdisk.c, libcsupport/src/newlibc.c, libcsupport/src/sync.c, libmisc/cpuuse/cpuuse.c, libmisc/monitor/mon-symbols.c, libmisc/shell/cmds.c, libmisc/shell/shell.c, libnetworking/kern/kern_sysctl.c, libnetworking/lib/ftpfs.c, libnetworking/lib/tftpDriver.c, libnetworking/libc/gethostbydns.c, libnetworking/libc/gethostbyht.c, libnetworking/libc/gethostnamadr.c, libnetworking/libc/getnetbyht.c, libnetworking/libc/getnetnamadr.c, libnetworking/libc/inet_addr.c, libnetworking/libc/linkaddr.c, libnetworking/libc/map_v4v6.c, libnetworking/libc/ns_print.c, libnetworking/libc/ns_ttl.c, libnetworking/libc/nsap_addr.c, libnetworking/libc/rcmd.c, libnetworking/libc/res_debug.c, libnetworking/libc/res_mkupdate.c, libnetworking/libc/res_query.c, libnetworking/libc/res_send.c, libnetworking/libc/res_update.c, libnetworking/net/radix.c, libnetworking/rtems/mkrootfs.c, librpc/src/rpc/clnt_perror.c, librpc/src/rpc/svc.c, score/macros/rtems/score/chain.inl, score/src/objectidtoname.c: Too much was accidentally committed -- revert.
* 2004-03-05 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2004-03-051-0/+5
| | | | | | | | | | | | | | | | | | | | | * libblock/src/bdbuf.c, libblock/src/ramdisk.c, libcsupport/src/newlibc.c, libcsupport/src/sync.c, libmisc/cpuuse/cpuuse.c, libmisc/monitor/mon-symbols.c, libmisc/shell/cmds.c, libmisc/shell/shell.c, libnetworking/kern/kern_sysctl.c, libnetworking/lib/ftpfs.c, libnetworking/lib/tftpDriver.c, libnetworking/libc/gethostbydns.c, libnetworking/libc/gethostbyht.c, libnetworking/libc/gethostnamadr.c, libnetworking/libc/getnetbyht.c, libnetworking/libc/getnetnamadr.c, libnetworking/libc/inet_addr.c, libnetworking/libc/linkaddr.c, libnetworking/libc/map_v4v6.c, libnetworking/libc/ns_print.c, libnetworking/libc/ns_ttl.c, libnetworking/libc/nsap_addr.c, libnetworking/libc/rcmd.c, libnetworking/libc/res_debug.c, libnetworking/libc/res_mkupdate.c, libnetworking/libc/res_query.c, libnetworking/libc/res_send.c, libnetworking/libc/res_update.c, libnetworking/net/radix.c, libnetworking/rtems/mkrootfs.c, librpc/src/rpc/clnt_perror.c, librpc/src/rpc/rtems_rpc.c, librpc/src/rpc/svc.c, sapi/include/confdefs.h, score/macros/rtems/score/chain.inl, score/src/objectidtoname.c:
* 2003-07-08 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Ralf Corsepius2003-07-081-1/+1
| | | | | | | * configure.ac: Remove (Merged into ../configure.ac). * Makefile.am, libc/Makefile.am, lib/Makefile.am, wrapup/Makefile.am: Reflect having merged configure.ac into ../configure.ac. * kern/kern_mib.c: Use RTEMS_VERSION to setup osrelease.
* 2003-04-15 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2003-04-151-1/+4
| | | | | | PR 388/networking * kern/kern_sysctl.c: Revert previous patch and use strlcpy() now that it is available. Also fixed some warnings.
* 2003-03-27 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2003-03-271-1/+1
| | | | * kern/kern_sysctl.c: Converted from BSP strlcpy() to strncpy().
* 2003-02-06 Mike Siers <mikes@poliac.com>Joel Sherrill2003-02-061-2/+2
| | | | | | | | | | PR 342/networking * kern/uipc_mbuf.c: The RTEMS version of the m_copyback is changing the m_len value of the mbuf. I looked into the source from another BSD system and the mbuf length is not changed inside this function. The m_copyback function is only being used in the net/rtsock.c file. So I think this problem is only visable under certain routing table conditions.
* 2002-11-26 Chris Johns <cjohns@cybertec.com.au>Joel Sherrill2003-01-034-2/+1921
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.am: Added sys/linker_set.h * kern/Makefile.am: Added kern_mib.c and kern_sysctl.c. * kern/uipc_socket.c: OID changed from KERN_SOMAXCONN to KIPC_SOMAXCONN. * kern/uipc_socket2.c: OID changed from KERN_MAXSOCKBUF to KIPC_MAXSOCKBUF. * net/if_ethersubr.c: FreeBSD 2.2.2 does not have a _net_link node while 5.0 does. * net/if_ppp.c: Removed the TEXT_SET define as these macros are now implemented. * net/rtsock.c: Enable sysctl support plus fix the bug with the lastest FreeBSD sysctl header file. * netinet/icmp_var.h: FreeBSD 2.2.2 does not have a _net_inet_icmp node while 5.0 does. * netinet/if_ether.c: FreeBSD 2.2.2 does not have a _net_link_ether node while 5.0 does. * netinet/igmp_var.h: FreeBSD 2.2.2 does not have a _net_inet_igmp node while 5.0 does. * netinet/in_pcb.c: Fixed the arguments to the sysctl call. Add inp_gencnt and ipi_count. These are used when listing connections. * netinet/in_pcb.h: Added counters to aid the listing of connections. * netinet/in_var.h: Provide the _net_inet_ip and _net_inet_raw nodes. * netinet/ip_fw.c: Disable the firewall sysctl calls. * netinet/tcp_subr.c: Merge tcp_pcblist from the lastest FreeBSD source. * netinet/tcp_var.h: Add structures needed by net-snmp to list connections. * netinet/udp_usrreq.c: Merged udp_pcblist from the lastest FreeBSD source. * netinet/udp_var.h: Added the sysctl id UDPCTL_PCBLIST. Used by net-snmp. * rtems_glue.c: Call sysctl_register_all when initialising the network stack to register all the sysctl calls. These are in the special sections and required an updated linker script. * rtems/rtems_syscall.c: Add the sysctl call. * sys/kernel.h: Use the lastest FreeBSD method of handling sysctl structures. This now held in the sys/linker_set.h file. * sys/queue.h: This is from the lastest FreeBSD code with the circular code merged back in as it is not used in the lastest FreeBSD kernel. * sys/sysctl.h: The lastest sysctl. This was needed to use with the new linker set method. The FreeBSD 2.2.2 version has asm hacks. The lastest version of the FreeBSD does not have these hacks. It uses gcc attribute directives.
* 2002-12-12 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Ralf Corsepius2002-12-121-31/+0
| | | | | | | | | | | | | * Makefile.am: Merge-in kern/Makefile.am, net/Makefile.am, netinet/Makefile.am, netinet/Makefile.am, nfs/Makefile.am, rtems/Makefile.am. * kern/Makefile.am: Remove. * net/Makefile.am: Remove. * netinet/Makefile.am: Remove. * nfs/Makefile.am: Remove. * rtems/Makefile.am: Remove. * wrapup/Makefile.am: Reflect changes above. * configure.ac: Ditto.
* 2002-12-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Ralf Corsepius2002-12-111-4/+2
| | | | | | | | | | | * kern/Makefile.am: Remove C_O_FILES; Don't let all-local depend on $OBJS) * lib/Makefile.am: Ditto. * libc/Makefile.am: Ditto. * net/Makefile.am: Ditto. * netinet/Makefile.am: Ditto. * nfs/Makefile.am: Ditto. * rtems/Makefile.am: Ditto.
* 2002-11-02 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Ralf Corsepius2002-11-021-1/+1
| | | | | * kern/uipc_mbuf.c: Comment out m0 in m_copydata to suppress warning.
* 2002-10-28 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2002-10-281-2/+5
| | | | | | | | | | | | | | | | | | | | | * 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-10-02 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2002-10-021-1/+2
| | | | | * kern/uipc_socket.c: Make sure that small non-zero delays work. Suggested cleanup from Eric Norum.