Commit Graph

152 Commits

Author SHA1 Message Date
Till Straumann
25e14e3193 networking: alignment exception in ioctl(SIOCGIFCONF)
Access memory using a byte stream when copying to avoid unaligned
access. update #1401
2015-02-23 10:49:50 -05:00
Sebastian Huber
3e1bf786bd ppp: PR1943: Avoid NULL pointer access
Waiting for mbufs at this level is a bad solution.  It would be better
to try to allocate a new mbuf chain before we hand over the current mbuf
chain to the upper layer.  In case the allocation fails we should drop
the current packet and use its mbuf chain for a new packet.
2014-10-08 11:55:15 +02:00
Sebastian Huber
044cf4d713 ppp: Add ppp_unit()
This makes porting to the new network stack easier.
2014-10-08 08:12:24 +02:00
Sebastian Huber
77dd9a4f8a ppp: Nothing to transmit hint for Termios driver 2014-10-07 16:35:20 +02:00
Sebastian Huber
7fd5e89c96 termios: Partially hide rtems_termios_tty
Move interrupt lock to device context and expose only this structure to
the read, write and set attributes device handler.  This makes these
device handler independent of the general Termios infrastructure
suitable for direct use in printk() support.
2014-10-07 16:35:13 +02:00
Sebastian Huber
805360b8e5 pppd: Fix warnings 2014-09-30 14:06:09 +02:00
Sebastian Huber
33739be8af libnetworking: Update due to Termios changes 2014-09-30 14:06:09 +02:00
Joel Sherrill
65c6425de9 Remove CVS Id Strings (manual edits after script)
These modifications were required by hand after running the script.
In some cases, the file names did not match patterns. In others,
the format of the file did not match any common patterns.
2012-05-11 08:44:14 -05:00
Joel Sherrill
9b4422a251 Remove All CVS Id Strings Possible Using a Script
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.
2012-05-11 08:44:13 -05:00
Ralf Corsepius
9356119583 2011-10-20 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/net/if_ethersubr.c (ether_output):
	Remove unused vars "hlen", "off".
2011-10-20 13:54:45 +00:00
Ralf Corsepius
c7d0d8678a Make self-contained. 2011-05-11 14:35:03 +00:00
Ralf Corsepius
ee613aa252 Include <sys/cdefs.h> (Eliminate rtems/bsd/sys/cdefs.h). 2011-03-24 09:36:14 +00:00
Ralf Corsepius
3611eba5ad Use <sys/queue.h> instead of <rtems/bsd/sys/queue.h. 2011-03-02 14:18:27 +00:00
Sebastian Huber
ebe6edbcf1 2011-02-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libnetworking/rtems/rtems_mii_ioctl_kern.c: Do not use IFM_ACTIVE
	and IFM_AVALID in the media word.
	* libnetworking/net/if_media.h: Hack to get libbsdport interface
	drivers working.
2011-02-25 10:38:17 +00:00
Ralf Corsepius
241a4c315f 2011-02-23 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/net/if_pppvar.h: Add "extern C++" guards.
	Add header guard.
2011-02-23 14:38:25 +00:00
Sebastian Huber
6c6b2f13f4 2010-12-08 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libnetworking/loop.h, libnetworking/net/if_loop.c,
	libnetworking/rtems/rtems_glue.c, libmisc/dummy/dummy-networking.c:
	Initialize loop back interface during normal initialization via
	rtems_bsdnet_initialize_network().
2010-12-08 10:30:27 +00:00
Ralf Corsepius
f313543ece 2010-05-29 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/net/if.c:
	Use uintptr_t and void* in _offsetof().
2010-05-29 04:35:29 +00:00
Ralf Corsepius
b25b88e732 Add HAVE_CONFIG_H support to let files receive configure defines. 2010-03-28 05:50:29 +00:00
Till Straumann
f8397280ae 2009-10-20 Till Straumann <strauman@slac.stanford.edu>
PR1424/networking
	* libnetworking/net/rtsock.c: (merged from BSD) copy information
	out to user buffer.
2009-10-20 14:13:24 +00:00
Ralf Corsepius
dcbfe08809 2009-09-30 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/net/ppp_tty.c: Reflect termios_baud_to_number having
	been renamed to rtems_termios_baud_to_number.
2009-09-30 02:58:25 +00:00
Ralf Corsepius
2dc5992dee Remove PSEUDO_SET (Unused). 2009-02-11 03:36:07 +00:00
Ralf Corsepius
02be07f8ee Eliminate pppattach, pppintr (Unused). 2009-02-04 15:47:39 +00:00
Ralf Corsepius
a02cdc860d Eliminate pppintr (Unused). 2009-02-04 15:47:09 +00:00
Ralf Corsepius
300c071cbf Add missing initializers. 2008-12-22 12:45:53 +00:00
Ralf Corsepius
b3f8c9e15b Include <errno.h> (POSIX,C99) instead of <sys/errno.h> (BSD'ism). 2008-12-22 07:47:28 +00:00
Ralf Corsepius
fc2f722ac9 Include <sys/socket.h> to make header self contained. 2008-12-11 17:28:33 +00:00
Ralf Corsepius
1cb54d1f38 #include <stdint.h> instead of <rtems/stdint.h>. 2008-12-11 00:47:56 +00:00
Ralf Corsepius
42e10fa24f Stop using old-style function definitions. 2008-09-01 04:56:33 +00:00
Ralf Corsepius
bd4a776c8d 2008-08-18 Ralf Corsepius <ralf.corsepius@rtems.org>
* libnetworking/net/ppp_tty.c: Remove bogus local decl of
	termios_baud_to_number(int).
2008-08-18 10:41:13 +00:00
Thomas Doerfler
a184e5ee44 Bugfix: Moved definition of ppp_softc into source file. 2008-05-27 10:33:22 +00:00
Ralf Corsepius
0295725f55 Add if_nameindex etc. (from FreeBSD). 2007-10-04 14:24:10 +00:00
Ralf Corsepius
e80aa4fae8 2007-09-16 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/net/ppp_defs.h: Include rtems/stdint.h.
	Use uint32_t for ext_accm.
2007-09-16 06:23:26 +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
c30157091b Include <rtems/bsd/sys/queue.h> instead of <sys/queue.h>. 2007-05-10 05:12:54 +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
203ed7ff8c Include <rtems/stdint.h> instead of <stdint.h>. 2007-05-09 15:56:13 +00:00
Ralf Corsepius
f8a6097c52 Remove (Unused) 2007-03-30 05:38:16 +00:00
Ralf Corsepius
6209041c60 2007-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/net/netisr.h: Partial update from FreeBSD.
2007-03-29 14:27:48 +00:00
Ralf Corsepius
014255f85b Remove (Unused). 2007-03-28 15:46:37 +00:00
Ralf Corsepius
47a8868989 Use net/slcompress.h instead of net/pppcompress.h. 2007-03-28 02:19:04 +00:00
Ralf Corsepius
179c2c3357 Cosmetics from FreeBSD. 2007-03-28 02:16:27 +00:00
Ralf Corsepius
a0a45be5fc Remove (Abandoned in FreeBSD). 2007-03-28 02:15:38 +00:00
Ralf Corsepius
d142d8c338 Eliminate __P(). 2007-03-28 01:08:37 +00:00
Ralf Corsepius
296f9c2e8b Cosmetics from FreeBSD. 2007-03-28 01:06:21 +00:00
Ralf Corsepius
83be736ab0 Update from FreeBSD. 2007-03-28 00:55:54 +00:00
Ralf Corsepius
867fd359b4 Include <net/ppp_comp.h>. Warn about using it. 2007-03-27 17:06:37 +00:00
Ralf Corsepius
0e253a0096 2007-03-27 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/net/ppp_comp.h: New (copy of ppp-comp.h).
2007-03-27 16:48:46 +00:00
Ralf Corsepius
3c4c5e0854 2007-03-27 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/net/ppp-comp.h: Eliminate __P(). Cosmetics from
	  FreeBSD.
2007-03-27 16:15:00 +00:00
Ralf Corsepius
e6a59370c1 2007-03-26 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/net/raw_cb.c: Sync with FreeBSD.
2007-03-27 04:24:41 +00:00
Ralf Corsepius
f4ebd28fcb Partial update from FreeBSD. 2007-03-26 08:06:30 +00:00