Commit Graph

20 Commits

Author SHA1 Message Date
Ralf Corsepius
0295725f55 Add if_nameindex etc. (from FreeBSD). 2007-10-04 14:24:10 +00:00
Ralf Corsepius
cd9564e1cd Include <rtems/bsd/sys/cdefs.h> instead of <sys/cdefs.h>. 2007-05-10 07:29:14 +00:00
Ralf Corsepius
8fc471a554 Include <rtems/bsd/sys/queue.h> instead of <sys/queue.h>. 2007-05-10 05:07:28 +00:00
Ralf Corsepius
508cd3a1b7 Remove __P(). 2007-03-17 07:04:49 +00:00
Joel Sherrill
cf04e8aca9 *** empty log message *** 2006-09-01 19:10:01 +00:00
Joel Sherrill
ae5a79c349 2006-08-30 Joel Sherrill <joel@OARcorp.com>
* 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-30 17:20:33 +00:00
Joel Sherrill
7554bb3a75 2005-11-08 Joel Sherrill <joel@OARcorp.com>
* libnetworking/net/if.h: Add forward reference declaration to
	struct mbuf so ifru_tap callback is properly typed.
	* libnetworking/rtems/rtems_bsdnet.h: Add definition of _BSD_VISIBLE
	which needs to be defined so various pieces of the .h files are
	visible to device drives.
2005-11-08 14:24:28 +00:00
Joel Sherrill
91683dc04d 2005-06-17 Joel Sherrill <joel@OARcorp.com>
* libnetworking/net/if.h: Avoid use of struct mbuf to avoid unintended
	dependencies added by the RTEMS specific tap interface.
2005-06-17 14:37:24 +00:00
Ralf Corsepius
ef73cf30ad Partial update from FreeBSD. 2005-05-27 15:22:13 +00:00
Ralf Corsepius
1dbaefce25 Remove IFI_* (obsolete, unused). 2005-05-10 05:37:41 +00:00
Joel Sherrill
2d0f8beeb9 2005-05-06 Joel Sherrill <joel@OARcorp.com>
* libnetworking/net/if.h: Revert include of sys/mbuf.h in this .h file
	since it causes other problems.
2005-05-06 16:40:23 +00:00
Joel Sherrill
06f4fe5052 2005-05-06 Joel Sherrill <joel@OARcorp.com>
* libnetworking/net/if.h, libnetworking/net/if_ppp.c,
	libnetworking/net/ppp_tty.c: Removed warnings.
2005-05-06 15:26:52 +00:00
Ralf Corsepius
88d9950835 2005-04-18 Ralf Corsepius <ralf.corsepius@rtems.org>
* libnetworking/net/if.h: Update from FreeBSD.
	* libnetworking/net/if_loop.c: Reflect updates.
	* libnetworking/net/if_ppp.c: Reflect updates.
	* libnetworking/net/if_types.h: Update from FreeBSD.
2005-04-18 16:36:20 +00:00
Ralf Corsepius
a3c06e11e0 Cosmetics from FreeBSD. 2005-04-18 05:20:02 +00:00
Ralf Corsepius
7a845a9ed1 2004-10-22 Ralf Corsepius <ralf_corsepius@rtems.org>
* libnetworking/opt_atalk.h, libnetworking/opt_bdg.h,
	libnetworking/opt_inet.h, libnetworking/opt_inet6.h,
	libnetworking/opt_ipx.h, libnetworking/opt_mac.h,
	libnetworking/opt_netgraph.h: New (Stubs).
	* libnetworking/net/if_loop.c: Cosmetical update from FreeBSD.
	* libnetworking/net/if_ethersubr.c: Update from FreeBSD.
	* libnetworking/net/if.h: Update from FreeBSD.
2004-10-22 11:54:09 +00:00
Ralf Corsepius
cb97349d47 2004-10-21 Ralf Corsepius <ralf_corsepius@rtems.org>
* libnetworking/net/if.h; Cosmetical updates from FreeBSD.
	Remove if_poll* (Not implemented in RTEMS, abandoned by FreeBSD).
2004-10-22 02:28:16 +00:00
Ralf Corsepius
dc28f16d8e Use -D_KERNEL instead of -DKERNEL for greater FreeBSD compliance. 2004-04-20 12:28:19 +00:00
Joel Sherrill
d3c106037f Added debug printf()'s that are commented out. Uncommenting these
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.
1999-02-04 14:58:01 +00:00
Joel Sherrill
a3d0b8a79a Patch from Ian Lance Taylor <ian@airs.com>:
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.
1998-12-10 19:42:29 +00:00
Joel Sherrill
39e6e65a2c Base files 1998-08-19 21:32:28 +00:00