| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
PR 481/networking
* net/ethernet.h, net/if_arp.h, netinet/if_ether.h: Network structs
should be packed
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
| |
* Makefile.am: Merge-in HEADER-handling from
net/Makefile.am, netinet/Makefile.am, nfs/Makefile.am.
* net/Makefile.am: Remove *_HEADERS.
* netinet/Makefile.am: Remove *_HEADERS.
* nfs/Makefile.am: Remove *_HEADERS.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
| |
* net/if_ethersubr.c: Add comments to #endif NETATALK to stop
gcc from complaining.
|
|
|
|
|
|
|
|
|
|
|
| |
* kern/Makefile.am: Use .$(OBJEXT) instead of .o.
* lib/Makefile.am: Ditto.
* libc/Makefile.am: Ditto.
* net/Makefile.am: Ditto.
* netinet/Makefile.am: Ditto.
* nfs/Makefile.am: Ditto.
* rtems/Makefile.am: Ditto.
* wrapup/Makefile.am: Ditto.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* kern/Makefile.am: Eliminate LIBNAME.
* lib/Makefile.am: Ditto.
* libc/Makefile.am: Ditto.
* net/Makefile.am: Ditto.
* netinet/Makefile.am: Ditto.
* nfs/Makefile.am: Ditto.
* rtems/Makefile.am: Ditto.
* wrapup/Makefile.am: Use project_libdir instead of
$(PROJECT_RELEASE)/lib.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* arpa/Makefile.am: Include $(top_srcdir)/../automake/*.am.
* kern/Makefile.am: Include $(top_srcdir)/../automake/*.am.
* Makefile.am: Include $(top_srcdir)/../automake/*.am.
Use ../aclocal.
* lib/Makefile.am: Include $(top_srcdir)/../automake/*.am.
* libc/Makefile.am: Include $(top_srcdir)/../automake/*.am.
* machine/Makefile.am: Include $(top_srcdir)/../automake/*.am.
* net/Makefile.am: Include $(top_srcdir)/../automake/*.am.
* netinet/Makefile.am: Include $(top_srcdir)/../automake/*.am.
* nfs/Makefile.am: Include $(top_srcdir)/../automake/*.am.
* rtems/Makefile.am: Include $(top_srcdir)/../automake/*.am.
* sys/Makefile.am: Include $(top_srcdir)/../automake/*.am.
* vm/Makefile.am: Include $(top_srcdir)/../automake/*.am.
* wrapup/Makefile.am: Include $(top_srcdir)/../automake/*.am.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Relocate c/src/libnetworking.
* Makefile.am: Reflect moval.
* machine/Makefile.am: Ditto.
* net/Makefile.am: Ditto.
* lib/Makefile.am: Ditto.
* netinet/Makefile.am: Ditto.
* vm/Makefile.am: Ditto.
* libc/Makefile.am: Ditto.
* sys/Makefile.am: Ditto.
* arpa/Makefile.am: Ditto.
* nfs/Makefile.am: Ditto.
* kern/Makefile.am: Ditto.
* rtems/Makefile.am: Ditto.
* configure.ac: Dittp.
* wrapup/Makefile.am: Ditto. Remove references to networking apps.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* configure.ac:
AC_INIT(package,_RTEMS_VERSION,_RTEMS_BUGS).
AM_INIT_AUTOMAKE([no-define foreign 1.6]).
* arpa/Makefile.am: Remove AUTOMAKE_OPTIONS.
* kern/Makefile.am: Remove AUTOMAKE_OPTIONS.
* Makefile.am: Remove AUTOMAKE_OPTIONS.
* lib/Makefile.am: Remove AUTOMAKE_OPTIONS.
* libc/Makefile.am: Remove AUTOMAKE_OPTIONS.
* machine/Makefile.am: Remove AUTOMAKE_OPTIONS.
* net/Makefile.am: Remove AUTOMAKE_OPTIONS.
* netinet/Makefile.am: Remove AUTOMAKE_OPTIONS.
* nfs/Makefile.am: Remove AUTOMAKE_OPTIONS.
* pppd/Makefile.am: Remove AUTOMAKE_OPTIONS.
* rtems/Makefile.am: Remove AUTOMAKE_OPTIONS.
* rtems_servers/Makefile.am: Remove AUTOMAKE_OPTIONS.
* rtems_telnetd/Makefile.am: Remove AUTOMAKE_OPTIONS.
* rtems_webserver/Makefile.am: Remove AUTOMAKE_OPTIONS.
* sys/Makefile.am: Remove AUTOMAKE_OPTIONS.
* vm/Makefile.am: Remove AUTOMAKE_OPTIONS.
* wrapup/Makefile.am: Remove AUTOMAKE_OPTIONS.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* PR162
* net/if_ppp.c ppp_txdaemon(), net/if_pppvar.h pppstart(): Local
variables must not be used in a device write routines. Now
ppp_softc structure have own character for writing to device
(sc_outchar). I think that converting local variables to static
is not a right solution, because problems will occur in the case
of two or more ppp instances.
* net/ppp_tty.c pppstart(): Type of the ioffset variable must be
u_long, otherwise in the case of the big output packet endless
loop may occur.
|
|
|
|
|
| |
* net/if_ppp.c, net/ppp_tty.c: Initial preparations for multiple
PPPD connections.
|
|
|
|
|
|
| |
* net/if_ppp.c, pppd/auth.c, pppd/chat.c, pppd/pppd.h,
pppd/sys-rtems.c: Add server with pap-authorization
capabilities as well as eliminate some warnings.
|
|
|
|
|
|
| |
* net/radix.c: Properly handle fetching the default route when there
is no route. This was a bug in the original FreeBSD code and this
fix is from an updated version of their code.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Nice Update of PPPD support which eliminates the
requiremetn that drivers be in the termios TASK_DRIVEN mode.
Mike did significant testing and reports that it seems to be
more stable and handle larger packets better. This patch
replaces the termios tasks with more general pppd network
driver tasks. The functions pppinput() and pppstart() get
called from the interrupt service routine.
* Makefile.am, configure.ac, net/Makefile.am, net/bpf.h,
net/ethernet.h, net/if.c, net/if.h, net/if_arp.h, net/if_dl.h,
net/if_ethersubr.c, net/if_llc.h, net/if_loop.c, net/if_ppp.h,
net/if_pppvar.h, net/if_types.h, net/netisr.h, net/ppp-comp.h,
net/ppp_defs.h, net/pppcompress.h, net/radix.c, net/radix.h,
net/raw_cb.c, net/raw_cb.h, net/raw_usrreq.c, net/route.c,
net/route.h, net/rtsock.c, pppd/Makefile.am, pppd/README,
pppd/STATUS, pppd/auth.c, pppd/cbcp.c, pppd/ccp.c, pppd/ccp.h,
pppd/chap.c, pppd/chap.h, pppd/chap_ms.c, pppd/chap_ms.h,
pppd/chat.c, pppd/demand.c, pppd/fsm.c, pppd/fsm.h, pppd/ipcp.c,
pppd/ipcp.h, pppd/ipxcp.c, pppd/ipxcp.h, pppd/lcp.c, pppd/lcp.h,
pppd/magic.c, pppd/magic.h, pppd/options.c, pppd/patchlevel.h,
pppd/pathnames.h, pppd/pppd.8, pppd/pppd.h, pppd/rtemsmain.c,
pppd/rtemspppd.c, pppd/rtemspppd.h, pppd/sys-rtems.c, pppd/upap.c,
pppd/upap.h, pppd/utils.c, pppd/example/README,
pppd/example/netconfig.h, wrapup/Makefile.am: Modified.
* net/bsd-comp.c, net/if_ppp.c, net/ppp-deflate.c, net/ppp.h,
net/ppp_tty.c, net/pppcompress.c, net/zlib.c, net/zlib.h: New file.
* modem/, modem/.cvsignore, modem/Makefile.am, modem/ppp.c,
modem/ppp.h, modem/ppp_tty.c, modem/pppcompress.c: Subdirectory removed.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* machine/Makefile.am: Use 'PREINSTALL_FILES ='.
* net/Makefile.am: Use 'PREINSTALL_FILES ='.
* netinet/Makefile.am: Use 'PREINSTALL_FILES ='.
* vm/Makefile.am: Use 'PREINSTALL_FILES ='.
* pppd/Makefile.am: Use 'PREINSTALL_FILES ='.
* sys/Makefile.am: Use 'PREINSTALL_FILES ='.
* rtems_servers/Makefile.am: Use 'PREINSTALL_FILES ='.
* arpa/Makefile.am: Use 'PREINSTALL_FILES ='.
* nfs/Makefile.am: Use 'PREINSTALL_FILES ='.
* rtems_webserver/Makefile.am: Use 'PREINSTALL_FILES ='.
* rtems/Makefile.am: Use 'PREINSTALL_FILES ='.
* rtems_telnetd/Makefile.am: Use 'PREINSTALL_FILES ='.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Update of PPPD to 2.3.11 from 2.3.5 and addition of an example
application. Mike's notes on the modifications:
- renamed error() function because of namespace problems
- removed calls to the exit() funciton
- removed extra files from the pppd source directory
- defined pppd task constant values in rtemspppd.h
- modifyied example code to get actual tick per second value
- placed the pppd 2.3.11 man page file (pppd.8) into the pppd
directory
* pppd/cbcp.c, pppd/cbcp.h, pppd/main.c, pppd/ppp_tty.c,
pppd/pppmain.c, pppd/rtems-ppp.c, pppd/rtems-ppp.c: Deleted.
* pppd/pppd.8, pppd/rtemsmain.c, pppd/rtemspppd.c, pppd/rtemspppd.h,
pppd/sys-rtems.c, pppd/utils.c, pppd/example/Makefile,
pppd/example/README, pppd/example/init.c, pppd/example/netconfig.h,
pppd/example/ppp.conf, pppd/example/pppdapp.c, pppd/example/system.h:
New files.
* modem/ppp_tty.c, net/if_ppp.h, pppd/Makefile.am, pppd/README,
pppd/STATUS, pppd/auth.c, pppd/ccp.c, pppd/ccp.h, pppd/chap.c,
pppd/chap.h, pppd/chap_ms.c, pppd/chap_ms.h, pppd/chat.c,
pppd/demand.c, pppd/fsm.c, pppd/fsm.h, pppd/ipcp.c, pppd/ipcp.h,
pppd/ipxcp.c, pppd/ipxcp.h, pppd/lcp.c, pppd/lcp.h, pppd/magic.c,
pppd/magic.h, pppd/options.c, pppd/patchlevel.h,
pppd/pathnames.h, pppd/pppd.h, pppd/upap.c, pppd/upap.h: Modified.
|
|
|
|
|
|
|
|
|
|
|
| |
* Makefile.am, arpa/Makefile.am, machine/Makefile.am, net/Makefile.am,
netinet/Makefile.am, nfs/Makefile.am, rtems/Makefile.am,
rtems_servers/Makefile.am, rtems_webserver/Makefile.am,
sys/Makefile.am, vm/Makefile.am:
Apply include_*HEADERS instead of H_FILES.
* include/Makefile.am: Remove.
* Makefile.am: Add handling of *.h files.
* configure.in: Remove include/Makefile.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* wrapup/Makefile.am: Added modem subdir.
* configure.in, Makefile.am: Added modem subdir.
* net/Makefile.am: Added if_pppvar.h, pppcompress.h.
* pppd/Makefile.am: Added pppmain.c (which needs work).
* pppd/chat.c, pppd/fsm.c, pppd/fsm.h, pppd/ipxcp.c, pppd/main.c,
pppd/ppp_tty.c, pppd/upap.c: Changes from Thomas Doerfler
<Thomas.Doerfler@imd-systems.de> and cosmetic changes by me.
Actually main.c and ppp_tty.c should be scratched. The modem
subdir has the real ppp_tty.c and the real pppd main is in pppmain.c.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* wrapup/Makefile.am: Added modem subdir.
* configure.in, Makefile.am: Added modem subdir.
* net/Makefile.am: Added if_pppvar.h, pppcompress.h.
* pppd/Makefile.am: Added pppmain.c (which needs work).
* pppd/chat.c, pppd/fsm.c, pppd/fsm.h, pppd/ipxcp.c, pppd/main.c,
pppd/ppp_tty.c, pppd/upap.c: Changes from Thomas Doerfler
<Thomas.Doerfler@imd-systems.de> and cosmetic changes by me.
Actually main.c and ppp_tty.c should be scratched. The modem
subdir has the real ppp_tty.c and the real pppd main is in pppmain.c.
|
|
|
|
|
|
|
| |
* kern/Makefile.am, lib/Makefile.am, libc/Makefile.am,
net/Makefile.am, netinet/Makefile.am, nfs/Makefile.am,
pppd/Makefile.am, rtems/Makefile.am, rtems_servers/Makefile.am,
rtems_webserver/Makefile.am, wrapup/Makefile.am: Include compile.am
|
| |
|
|
|
|
| |
adds .cvsignore.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
that contains the automake files for libnetworking plus a couple of
minor fixes. [Now only one unused/unsupported Makefile.in remains
(./c/src/lib/libbsp/hppa1.1/pxfl/Makefile.in).]
To apply:
patch -p1 < rtems-rc-20000118-7.diff
/bin/sh rtems-rc-20000118-7.rm
/bin/sh rtems-rc-20000118-7.add
./bootstrap
Notes:
* I have tested this one by building all BSPs for m68k, powerpc, sh and
unix with toolchains built since last weekend.
* I did not touch libnetworking's directory layout.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Tomasz only tested this on the mpc823.
The official site for the original source for this PPP implementation is:
ftp://cs.anu.edu.au/pub/software/ppp
NOTE: As of 11/30/1999, the current version of this source is 2.3.10.
|
|
|
|
|
|
| |
allows one to trace the enqueueing and dequeueing of messages. This
can be used to insure that packets are getting to the boundary between
the network stack and the device driver.
|
|
|
|
| |
properly in conditionals
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
From: Eric Norum <eric@skatter.usask.ca>
Date: Sat, 5 Dec 98 13:20:51 -0600
What do you think of this patch? It implements your `tap'
suggestion in a way that adds support for all ethernet devices with
no driver modifications. I also added a return value from the tap
function. If the return value is zero, the packet will be passed up
the chain as usual. If the return value is non-zero the mbuf holding
the packet will be freed and the packet will be dropped.
If you like it, please submit it to Joel.
I guess there needs to be an addition to the network documentation
describing the additional ioctl's -- and a big warning that the tap
function is called from a context that holds the network semaphore.
Here is Eric's patch. I've tested it a bit, and made a couple of
trivial changes. This is certainly better than mine: it should work
for all Ethernet drivers.
==================================================
The only concern I have about this patch is that the tap function may
want to fiddle with the mbuf, calling functions like m_pullup and the
like. If those force the networking code to rearrange the mbuf
structure, then the caller's call to m_freem may crash. I don't know
if this is a realistic concern--I don't know enough about the mbuf
layer.
|
| |
|
|
|