summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/net/if.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* cpukit: Remove libnetworkingVijay Kumar Banerjee2021-04-071-789/+0
| | | | Update #3850
* network: Use kernel/user space header filesSebastian Huber2018-09-101-0/+2
| | | | | | | | | | 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: Move RTEMS specificsSebastian Huber2017-06-071-2/+7
| | | | | | | | | Move RTEMS specifics to <rtems/rtems_bsdnet.h>. Introduce rtems_tap_ifreq. The interface tap support is RTEMS-specific and only available in the legacy network stack. Update #2833.
* Do not include <sys/ioctl.h> in kernel-spaceSebastian Huber2017-06-071-1/+1
| | | | Update #2833.
* network: Fix warningsSebastian Huber2016-04-221-2/+2
|
* networking: alignment exception in ioctl(SIOCGIFCONF)Till Straumann2015-02-231-11/+12
| | | | | Access memory using a byte stream when copying to avoid unaligned access. update #1401
* Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill2012-05-111-3/+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-021-1/+1
|
* 2010-05-29 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2010-05-291-1/+1
| | | | | * libnetworking/net/if.c: Use uintptr_t and void* in _offsetof().
* Add HAVE_CONFIG_H support to let files receive configure defines.Ralf Corsepius2010-03-281-0/+4
|
* Include <errno.h> (POSIX,C99) instead of <sys/errno.h> (BSD'ism).Ralf Corsepius2008-12-221-1/+1
|
* Include <rtems/bsd/sys/queue.h> instead of <sys/queue.h>.Ralf Corsepius2007-05-101-1/+1
|
* 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.
* 2005-04-18 Ralf Corsepius <ralf.corsepius@rtems.org>Ralf Corsepius2005-04-181-5/+5
| | | | | | * libnetworking/net/ethernet.h: Add RTEMS outdated either_input. * libnetworking/net/if.c: Partial update from FreeBSD. * libnetworking/net/if_ethersubr.c: Partial update from FreeBSD.
* Cosmetics from FreeBSD.Ralf Corsepius2005-04-181-76/+62
|
* Patch from Ian Lance Taylor <ian@airs.com>:Joel Sherrill1998-12-101-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Base filesJoel Sherrill1998-08-191-0/+783