Ralf Corsepius
c2db91ed53
Fix typos
2005-05-24 05:10:00 +00:00
Ralf Corsepius
34d4a8199f
2005-05-25 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* libnetworking/arpa/telnet.h: Remove (Unused, Non-POSIX/SUSV3).
* libnetworking/Makefile.am: Reflect removing arpa/telnet.h.
2005-05-24 05:09:16 +00:00
Ralf Corsepius
fb51b73b22
2005-05-25 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* libnetworking/arpa/nameser.h: Update from FreeBSD.
* libnetworking/libc/ns_parse.c: Reflect changes above.
2005-05-24 04:49:38 +00:00
Ralf Corsepius
d35f18c6b9
2005-05-25 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* libnetworking/netinet/ip.h: Remove BYTE_PACK.
Add __packed. Partial update from FreeBSD.
* libnetworking/netinet/ip_divert.c: Cosmetics from FreeBSD.
2005-05-24 04:25:49 +00:00
Eric Norum
2a94c85420
Add "ICMP panic avoided" diagnostic counter.
2005-05-24 00:36:35 +00:00
Ralf Corsepius
33e9ef06a5
2005-05-23 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* Makefile.am: Remove ada.
* configure.ac: Remove ada.
2005-05-23 07:29:56 +00:00
Ralf Corsepius
c45aa34c38
2005-05-21 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* libnetworking/netinet/ip_icmp.c: Partial update from FreeBSD.
* libnetworking/sys/mbuf.h: Partial update from FreeBSD.
2005-05-21 16:32:47 +00:00
Ralf Corsepius
3641cf08d0
2005-05-21 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* libnetworking/netinet/ip_icmp.h: Update from FreeBSD.
Abandon BYTE_PACK.
2005-05-21 13:44:25 +00:00
Ralf Corsepius
8b77a1308b
2005-05-21 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* libnetworking/netdb.h: Update from FreeBSD.
2005-05-21 13:37:57 +00:00
Joel Sherrill
182813e164
2005-05-20 Sergei Organov <osv@javad.ru>
...
PR networking/772.
* libnetworking/rtems/rtems_select.c (socket_select): fixed bug
setting SB_WAIT flag of so_rcv instead of so_snd when FWRITE.
2005-05-20 19:58:32 +00:00
Joel Sherrill
15113c45ca
Added PR775.
2005-05-20 19:25:33 +00:00
Joel Sherrill
5c1af4caf0
2005-05-20 Sergei Organov <osv@topconrd.ru>
...
PR 749/networking
* libnetworking/rtems/rtems_showroute.c: Avoid NULL dereference.
2005-05-20 19:18:55 +00:00
Joel Sherrill
80f2885b70
2005-05-14 Sergei Organov <osv@topconrd.ru>
...
PR 746/rtems
Optimize realloc(). The problem is that realloc() can neither grow
nor shrink efficiently the current memory region without support
from underlying heap/region modules. The patch introduces one new
routine for each of heap and region modules, _Heap_Resize_block(),
and rtems_region_resize_segment(), respectively, and uses the
latter to optimize realloc().
The implementation of _Heap_Resize_block() lead to changing of the
heap allocation strategy: now the heap manager, when splits larger
free block into used and new free parts, makes the first part of
the block used, not the last one as it was before. Due to this new
strategy, _Heap_Resize_block() never needs to change the user
pointer.
Caveat: unlike previous heap implementation, first few bytes of
the contents of the memory allocated from the heap are now almost
never all zero. This can trigger bugs in client code that have not
been visible before this patch.
* libcsupport/src/malloc.c (realloc): try to resize segment in
place using new rtems_region_resize_segment() routine before
falling back to the malloc()/free() method.
* score/src/heap.c:
(_Heap_Initialize): change initial heap layout to reflect new
allocation strategy of using of the lower part of a previously
free block when splitting it for the purpose of allocation.
(_Heap_Block_allocate): when split, make the lower part used, and
leave the upper part free. Return type changed from Heap_Block* to
uint32_t.
* score/include/rtems/score/heap.h:
(Heap_Statistics): added 'resizes' field.
(Heap_Resize_status): new enum.
(_Heap_Resize_block): new routine.
(_Heap_Block_allocate): return type changed from Heap_Block* to
uint32_t.
* score/src/heapwalk.c: reflect new heap layout in checks.
* score/src/heapsizeofuserarea.c: more assertions added.
* score/src/heapresizeblock.c: new file.
(_Heap_Resize_block): new routine.
* score/src/heapfree.c: reverse the checks _Heap_Is_block_in() and
_Heap_Is_prev_used() on entry to be in this order.
* score/src/heapallocate.c, score/src/heapallocatealigned.c:
ignore return value of _Heap_Block_allocate().
* score/Makefile.am (HEAP_C_FILES): added src/heapresizeblock.c.
* rtems/include/rtems/rtems/region.h:
(rtems_region_resize_segment): new interface routine.
(_Region_Process_queue): new internal routine called from
rtems_region_resize_segment() and rtems_region_return_segment().
* rtems/src/regionreturnsegment.c: move queue management code into
the new internal routine _Region_Process_queue() and call it.
* rtems/src/regionresizesegment.c: new file.
(rtems_region_resize_segment): new interface routine.
* rtems/src/regionprocessqueue.c: new file.
(_Region_Process_queue): new internal routine containing queue
management code factored out from 'regionreturnsegment.c'.
* rtems/Makefile.am (REGION_C_FILES): Added
src/regionresizesegment.c, and src/regionprocessqueue.c.
* ada/rtems.adb, ada/rtems.ads: Added Region_Resize_Segment.
2005-05-20 19:15:41 +00:00
Joel Sherrill
4e8c729f7f
2005-05-20 Eric Norum <norume@aps.anl.gov>
...
PR 793/networking
* libnetworking/netinet/ip_icmp.c: Malicious ICMP packet causes panic.
Just ignore it.
2005-05-20 18:56:42 +00:00
Chris Johns
a4ad7597d1
2005-05-18 Chris Johns <chrisj@rtems.org>
...
* libmisc/capture/capture-cli.c: Fix the output of ctload when
there exists a large number of tasks.
2005-05-18 00:04:17 +00:00
Jennifer Averett
6d03c94463
2005-05-17 Jennifer Averett <jennifer.averett@oarcorp.com>
...
* Makefile.am, preinstall.am: Added a common irq.h
* include/rtems/irq.h: New file.
2005-05-17 14:53:01 +00:00
Jennifer Averett
81346bae50
2005-05-17 Jennifer Averett <jennifer.averett@oarcorp.com>
...
* Makefile.am, preinstall.am: Added a common irq.h
* include/rtems/irq.h: New file.
2005-05-17 14:52:10 +00:00
Ralf Corsepius
f583bb2c07
2005-05-14 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* libnetworking/netinet/tcp_usrreq.c: Cosmetics from FreeBSD.
* libnetworking/netinet/tcp_subr.c: Partical update from FreeBSD.
2005-05-14 07:08:17 +00:00
Ralf Corsepius
f321fdc83f
2005-05-12 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* configure.ac: Let --enable-deprecated default to "no".
2005-05-12 12:40:37 +00:00
Ralf Corsepius
ec5880b659
2005-05-12 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* libnetworking/net/if_arp.h: Remove BYTE_PACK.
* libnetworking/net/if_llc.h: Update from FreeBSD, add __packed.
* libnetworking/net/route.h: Partial update from FreeBSD.
2005-05-12 12:38:35 +00:00
Ralf Corsepius
08baecaba2
2005-05-12 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* libnetworking/netinet/if_ether.c: Partial update from FreeBSD.
2005-05-12 08:28:04 +00:00
Ralf Corsepius
3eb8b6e82e
2005-05-12 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* libnetworking/netinet/tcp_var.h: Partial update from FreeBSD.
* libnetworking/netinet/tcp_input.c: Reflect changes to tcp_var.h.
2005-05-12 06:28:04 +00:00
Ralf Corsepius
64c67f6b53
2005-05-12 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* libnetworking/netinet/tcp.h: Partial update from FreeBSD.
Remove BYTE_PACK.
2005-05-12 06:20:10 +00:00
Ralf Corsepius
e714a91e2b
2005-05-12 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* libnetworking/netinet/ip_var.h: Partial update from FreeBSD.
Remove some useless BYTE_PACKs.
2005-05-12 04:27:01 +00:00
Ralf Corsepius
29afb44c53
2005-05-12 Ralf Corsepius <ralf.corsepius@rtems.org>
...
PR 784/networking
* libnetworking/net/if_arp.h, libnetworking/netinet/if_ether.h,
libnetworking/netinet/ip_icmp.h, libnetworking/netinet/ip_var.h,
libnetworking/netinet/tcp.h: Define BYTE_PACK.
2005-05-12 03:43:37 +00:00
Ralf Corsepius
1bb95296fc
2005-05-11 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* libnetworking/net/rtsock.c: Abandon AF_NS.
* libnetworking/sys/socket.h: Abandon AF_NS, PF_NS.
2005-05-11 03:38:11 +00:00
Ralf Corsepius
5a22113d0b
2005-05-10 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* httpd/socket.c: socklen_t.
2005-05-10 09:05:40 +00:00
Ralf Corsepius
1cc2509df6
2005-05-10 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* librpc/include/rpc/svc.h: Cosmetical update from FreeBSD.
* librpc/src/rpc/clnt_tcp.c, librpc/src/rpc/clnt_udp.c,
librpc/src/rpc/pmap_rmt.c, librpc/src/rpc/rtime.c,
librpc/src/rpc/svc_tcp.c, librpc/src/rpc/svc_udp.c: socklen_t.
* ftpd/ftpd.c: socklen_t.
2005-05-10 08:57:51 +00:00
Ralf Corsepius
ceab2fed4a
2005-05-10 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* libnetworking/lib/rtems_bsdnet_ntp.c: socklen_t.
* libnetworking/libc/rcmd.c: socklen_t.
* libnetworking/libc/res_send.c: socklen_t.
2005-05-10 08:08:13 +00:00
Ralf Corsepius
1e38faf870
2005-05-10 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* libnetworking/net/if.h: Remove IFI_* (obsolete, unused).
* libnetworking/net/if_var.h: Remove if_ipending (obsolete, unused).
2005-05-10 05:38:28 +00:00
Ralf Corsepius
059ad88be2
2005-05-09 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* libnetworking/sys/un.h: Partial update from FreeBSD.
Remove non-implemented functions/variables.
2005-05-09 13:32:24 +00:00
Ralf Corsepius
e5d519a6b6
2005-05-09 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* libnetworking/rtems/bsdnet/_types.h: New.
* Makefile.am: Add rtems_bsdnet_HEADERS.
* libnetworking/Makefile.am: Remove rtems_bsdnet_HEADERS.
* preinstall.am, libnetworking/preinstall.am: Regenerate.
* libcsupport/include/sys/cdefs.h: Partial update from FreeBSD.
* libnetworking/arpa/inet.h: Partial update from FreeBSD.
* libnetworking/netinet/in.h: Partial update from FreeBSD.
* libnetworking/sys/socket.h: Partial update from FreeBSD.
* librpc/src/rpc/bindresvport.c: socklen_t.
* libnetworking/sys/mbuf.h: Ansification.
* libnetworking/kern/uipc_mbuf.c: Partial update from FreeBSD.
* libnetworking/libc/inet_addr.c: in_addr_t.
2005-05-09 13:14:57 +00:00
Ralf Corsepius
4fea445575
2005-05-09 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* libnetworking/lib/tftpDriver.c: socklen_t.
* libnetworking/libc/inet_lnaof.c: in_addr_t.
* libnetworking/libc/inet_makeaddr.c: in_addr_t.
* libnetworking/libc/inet_netof.c: in_addr_t.
* libnetworking/libc/inet_network.c: in_addr_t.
* libnetworking/libc/inet_ntop.c: Ansify, socklen_t.
* libnetworking/lib/ftpfs.c: socklen_t, PRIu32.
2005-05-09 12:43:42 +00:00
Ralf Corsepius
51120f7c12
2005-05-08 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* libnetworking/arpa/inet.h: Add in_addr_t, in_port_t.
* libnetworking/netinet/in.h: Sync in_port_t with arpa/inet.h.
* libnetworking/sys/socket.h: Include <sys/types.h>.
Remove in_port_t. Misc. updates from FreeBSD.
2005-05-08 09:21:21 +00:00
Ralf Corsepius
df767372e9
2005-05-08 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* libnetworking/netinet/in.h: Partial update from FreeBSD.
Remove BYTE_PACK.
* libnetworking/netinet/ip.h: Add BYTE_PACK.
* libnetworking/sys/socket.h: Partial update from FreeBSD.
2005-05-08 07:29:14 +00:00
Ralf Corsepius
a794d531fc
2005-05-08 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* libnetworking/netinet/if_ether.c: Cosmetics from FreeBSD.
* libnetworking/libc/inet_addr.c: Cosmetics from FreeBSD.
* libnetworking/netinet/in.h: Cosmetics from FreeBSD.
* libnetworking/sys/socket.h: Cosmetics from FreeBSD.
2005-05-08 06:41:38 +00:00
Ralf Corsepius
9909ef0f74
2005-05-07 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* libnetworking/sys/un.h: Cosmetical updates from FreeBSD.
2005-05-07 13:24:43 +00:00
Ralf Corsepius
6d7d5b44aa
2005-05-07 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* libnetworking/net/if_var.h: More partial updates from FreeBSD.
2005-05-07 13:22:13 +00:00
Ralf Corsepius
c4ef8434a4
2005-05-07 Ralf Corsepius <ralf.corsepius@rtems.org>
...
* libnetworking/rtems/rtems_bsdnet.h: Eliminate rtems_* fixed size
types.
2005-05-07 13:07:57 +00:00
Ralf Corsepius
791055eba1
Fix broken changelog entry
2005-05-07 12:59:24 +00:00
Joel Sherrill
cd34409a61
* libnetworking/rtems/rtems_showifstat.c: Remove warning.
2005-05-06 20:14:59 +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
abbec0ad3f
2005-05-06 Joel Sherrill <joel@OARcorp.com>
...
* libcsupport/src/termios.c: Removed warnings.
2005-05-06 15:29:57 +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
Joel Sherrill
b17ff4913c
2005-05-06 Joel Sherrill <joel@OARcorp.com>
...
* libblock/src/blkdev.c, libfs/src/dosfs/fat_file.c,
libfs/src/dosfs/fat_file.h, libfs/src/dosfs/msdos.h,
libfs/src/dosfs/msdos_create.c, libfs/src/dosfs/msdos_dir.c,
libfs/src/dosfs/msdos_initsupp.c, libfs/src/dosfs/msdos_misc.c:
Removed warnings.
2005-05-06 14:57:43 +00:00
Jennifer Averett
b3b6c41d66
2005-05-04 Jennifer Averett <jennifer.averett@oarcorp.com>
...
* include/rtems/pci.h: Name change to support common PCI interface
2005-05-04 19:42:12 +00:00
Joel Sherrill
72ba6689b8
2005-05-03 Joel Sherrill <joel@OARcorp.com>
...
* libcsupport/include/ringbuf.h: Use uint8_t instead of char for raw
data buffer.
2005-05-03 22:19:04 +00:00
Joel Sherrill
6ab87973f4
2005-05-03 Joel Sherrill <joel@OARcorp.com>
...
* rtems/src/regiongetfreeinfo.c: Return RTEMS_SUCCESSFUL instead of
RTEMS_INVALID_ADDRESS on success path.
2005-05-03 22:18:32 +00:00
Joel Sherrill
eb12bf41fb
2005-05-03 Joel Sherrill <joel@OARcorp.com>
...
* libfs/src/imfs/imfs.h, libfs/src/imfs/imfs_load_tar.c: Use uint8_t
instead of char for raw data buffer.
2005-05-03 22:17:27 +00:00
Ralf Corsepius
5a35cfcd4c
Remove bogus ChangeLog entry.
2005-05-02 14:28:31 +00:00