1 2005-09-02 Sebastien Couret <sebastien.couret@elios-informatique.fr>
3 * src/sys/kern/kern_sysctl.c: Silent compiler warning on lvalue
6 2005-07-29 Andrew Lunn <andrew.lunn@ascom.ch>
8 * src/sys/netinet/ip_output.c (ip_output): initialize len to 0.
9 * src/sys/net/if.c (ifioctl): Cast to keep compiler happy.
10 * src/ecos/support.c (_mask): Use the correct cast to keep the
12 * include/sys/param.h: give proc0 the correct type so we don't
13 have to cast it and avoid a compiler warning.
14 * src/sys/kern/uipc_socket.c (soopt_mcopyout): Lefthand casts no
15 longer allowed with gcc4.
16 * src/sys/net/if_ethersubr.c (ether_resolvemulti): Cast to keep
18 * src/sys/net/rtsock.c: Define routedomain consistently to avoid
21 2005-06-23 Gary Thomas <gary@mlbassoc.com>
23 * include/netinet/if_ether.h: Adjust size of struct sockaddr_inarp
24 which needs to match struct sockaddr. This was broken when IPv6
25 was added and without this change, ARP can get confused. Tracked
26 down by Arnaud Chataignier <achataignier@neotion.com>
28 2005-06-17 Andrew Lunn <andrew.lunn@ascom.ch>
30 * src/sys/kern/uipc_socket.c (sodealloc): Fixed a race condition
31 when freeing the socket memory. Problem reported by Will Lent.
33 2005-03-27 Andrew Lunn <andrew.lunn@ascom.ch>
35 * src/sys/net/if.c (ifioctl): Fixed a compiler warning about
37 * src/sys/netinet/if_ether.c (in_arpinput): Ditto
38 * src/sys/net/if.c: Ditto
40 2005-03-10 Matt Jerdonek <maj1224@yahoo.com>
42 * cdl/freebsd_net.cdl:
43 * src/sys/netinet/in_pcb.c: add option to randomly pick
44 source port. This option is useful when connecting
47 2004-12-24 Motoya Kurotsu <kurotsu@allied-telesis.co.jp>
49 * src/sys/kern/kern_sysctl.c: set mutex_init to one to prevent
50 mutex being initialized multiple times.
52 2004-08-18 Andrew Lunn <andrew.lunn@ascom.ch>
54 * src/ecos/support.c (show_net_times): Removed stats_in_cksum.
55 It does not exist in the FreeBSD stack. Pointed out by
58 2004-08-17 Andrew Lunn <andrew.lunn@ascom.ch>
60 * src/sys/kern/sockio.c (bsd_bind): Pass a copy of the sa into
61 bind so that the "kernel" code does not modify the "user" codes
62 version of the socket address.
64 2004-07-15 Oyvind Harboe <oyvind.harboe@zylin.com>
67 *src/ecos/support.c: made memory pools default to current size,
68 but separately controllable from the cdl file. This is useful for
69 systems with tight memory budgets.
71 2004-06-01 Sandeep Kumar <sandeep@codito.com>
73 * tests/sysctl1.c: Call CYG_TEST_EXIT at the end of the test.
75 2004-05-25 Gary Thomas <gary@mlbassoc.com>
77 * src/sys/netinet/if_ether.c: Clean up some log messages - remove
78 extraneous ":" which caused incorrect printouts.
80 2004-04-30 Jonathan Larmour <jifl@eCosCentric.com>
82 * src/ecos/timeout.c (callout_reset): Clarify assert message on
83 expiry date from ages ago and also add comment explaining further.
85 2004-03-30 Horst Kronstorfer <horst.kronstorfer@frequentis.com>
87 * src/sys/kern/uipc_mbuf.c
89 * include/sys/mbuf.h: Avoid blocking alloc from (empty) mbuf pool.
90 Freed mbufs are never returned to the pool, but to the mbuf
91 "free list". This can cause a deadlock situation.
92 Duplicated incrementing of mbuf statistics removed.
94 2004-03-27 Andrew Lunn <andrew.lunn@ascom.ch>
96 * src/ecos/support.c (_dumpentry): Don't skip routes which don't
97 have a netmask. These are seem to be valid host routes.
99 2004-02-18 Jonathan Larmour <jifl@eCosCentric.com>
101 * doc/freebsd.sgml: Import text from openbsd doc about use of __ECOS
104 2004-01-17 Andrew Lunn <andrew.lunn@ascom.ch>
106 * src/sys/kern/sockio.c (bsd_connect): Set the sa_len field in
107 the sockaddr structure. Real FreeBSD does this.
109 2003-12-21 Nick Garnett <nickg@calivar.com>
111 * include/sys/param.h: Restored MD5 function mappings. These were
112 accidentally removed earlier.
114 2003-12-16 Gary Thomas <gary@mlbassoc.com>
116 * cdl/freebsd_net.cdl: Increase default memory pool size to
117 include at least enough space to allocate PCBs and SOCKETs.
118 Without this, if the number of open files was raised, the
119 memory pool was inadequate.
121 2003-12-10 Gary Thomas <gary@mlbassoc.com>
123 * include/netinet/in.h: Prototype for inet_ntoa_r()
125 2003-11-22 Andrew Lunn <andrew.lunn@ascom.ch>
127 * include/net/if_gif.h include/net/if_sec.h include/net/zlib.h
128 include/netinet/ip_ecn.h include/netinet6/ah.h
129 include/netinet6/esp.h include/netinet6/esp_rijndael.h
130 include/netinet6/esp_twofish.h include/netinet6/in6_gif.h
131 include/netinet6/ipcomp.h include/netkey/key.h
132 include/netkey/key_debug.h include/netkey/keysock.h src/sys/netkey
133 src/sys/netinet/ip_ecn.c src/sys/netinet6/ah_core.c
134 src/sys/netinet6/ah_input.c src/sys/netinet6/ah_output.c
135 src/sys/netinet6/esp_core.c src/sys/netinet6/esp_input.c
136 src/sys/netinet6/esp_output.c src/sys/netinet6/esp_rijndael.c
137 src/sys/netinet6/esp_twofish.c src/sys/netinet6/in6_gif.c
138 src/sys/netinet6/ipcomp_core.c src/sys/netinet6/ipcomp_input.c
139 src/sys/netinet6/ipcomp_output.c src/sys/netinet6/ipsec.c:
140 Added back the original KAME FreeBSD IPSEC files.
141 * cdl/freebsd_net.cdl: CDl to control the compilation of IPSEC
142 * include/sys/malloc.h: New memory type needed by IPSEC
143 * include/sys/param.h: Name munging for IPSEC symbols
144 * src/ecos/support.c: read_random_unlimited() should return the
145 number of random bytes in the buffer.
146 * src/sys/kern/kern_sysctl.c: Added missing copyright header.
147 * src/sys/netinet/ip_output.c: Removed user() checks in IPSEC code.
148 * src/sys/netinet6/ip6_output.c: Compiler warning fixes.
150 2003-11-08 Andrew Lunn <andrew.lunn@ascom.ch>
152 * src/sys/kern/kern_sysctl.c (sysctl): Update the oldlen value at
153 the end of the sysctl call.
155 2003-10-28 Matt Jerdonek <maj1224@yahoo.com>
157 * src/sys/netinet/tcp_output.c (tcp_setpersist): Use variable
158 tcp_rexmit_shift_max instead of TCP_MAXRXTSHIFT
159 * src/sys/netinet/tcp_subr.c (tcp_newtcpcb): Add FreeBSD
160 changes to control minimum retransmit time
161 * src/sys/netinet/tcp_timer.c : Use variable tcp_rexmit_shift_max
162 instead of TCP_MAXRXTSHIFT. Also add FreeBSD changes to control
163 minimum retransmit time
164 * include/netinet/tcp_timer.h : Add external declarations to
167 2003-10-15 Roland Cassebohm <roland.cassebohm@visionsystems.de>
169 * src/sys/net/if.c (ifinit): Change printf(...) to log(LOG_INIT,...) to
170 make it possible to disable output while initialization.
172 2003-09-17 Reinhard Jessich <Reinhard.Jessich@frequentis.com>
174 * src/sys/kern/uipc_mbuf.c: Now using flags (how) argument in call to
175 cyg_net_mbuf_alloc, to avoid a (blocking) call to alloc method of mempool
176 during interrupts. This problem occurred under heavy IP traffic in case the
177 mempool became empty (alloc blocked).
178 * src/sys/net/if_ethersubr.c: Avoid dereferencing NULL pointer in case of
179 failing m_copy. Note that this problem was (at least sometimes) hidden
180 due to the bug in uipc_mbuf.c (described above).
182 2003-09-08 Andrew Lunn <andrew.lunn@ascom.ch>
184 * src/ecos/support.c (read_random): New function which is needed
185 when CYGSEM_NET_RANDOMID is enabled.
186 * include/sys/param.h: Prototype for new function.
188 2003-07-25 Andrew Lunn <andrew.lunn@ascom.ch>
190 * include/netinet/icmp_var.h
191 * include/netinet/igmp_var.h
192 * include/netinet/in_var.h
193 * include/netinet/udp_var.h
194 * include/netinet6/tcp6_var.h
195 * include/netinet6/udp6_var.h
196 * include/sys/socket.h
198 * src/sys/net/if_ethersubr.c
199 * src/sys/net/rtsock.c
200 * sys/netinet/if_ether.c
202 * src/sys/netinet/in.c
203 * src/sys/netinet/in_pcb.c
204 * src/sys/netinet/in_proto.c
205 * src/sys/netinet/in_rmx.c
206 * src/sys/netinet/ip_flow.c
207 * src/sys/netinet/ip_icmp.c
208 * src/sys/netinet/ip_input.c
209 * src/sys/netinet/ip_output.c
210 * src/sys/netinet/raw_ip.c
211 * src/sys/netinet/tcp_input.c
212 * src/sys/netinet/tcp_output.c
213 * src/sys/netinet/tcp_output.c
214 * src/sys/netinet/tcp_subr.c
215 * src/sys/netinet/tcp_timer.c
216 * src/sys/netinet/tcp_usrreq.c
217 * src/sys/netinet/udp_usrreq.c
218 * src/sys/netinet6/in6_proto.c
219 * src/sys/netinet6/in6_rmx.c
220 * src/sys/netinet6/nd6.c
221 * src/sys/netinet6/udp6_output.c
222 * sys/netinet6/udp6_usrreq.c: Added back the support for sysctl
223 which was removed in the port of the stack into eCos.
224 * include/sys/malloc.h (M_SYSCTL): SYSCTL types for malloc
225 * sys/kern/kern_sysctl.c (NEW): sysctl system call and support
227 * include/sys/sysctrl.h (NEW): header file for sysctl.
228 * cdl/freebsd_net.cdl: CDL to enable/disable sysctl and a test case.
229 * tests/sysctl1.c (NEW): Test program for sysctl.
231 2003-07-25 Andrew Lunn <andrew.lunn@ascom.ch>
233 * include/sys/param.h: Fixed some compiler warnings.
234 * src/sys/netinet6/in6_ifattach.c: More fixes.
235 * src/sys/netinet6/in6.c: And some more.
236 * src/sys/netinet6/in6_pcb.c: YACW.
237 * include/netinet6/ip6protosw.h: Maybe the last one?
238 * include/netinet6/ip6protosw.h: Nope
239 * include/sys/param.h:
240 * sys/kern/uipc_socket.c: More warnings
241 * src/sys/netinet6/in6_pcb.c: rename errno to _errno to avoid conflict.
242 * src/sys/netinet6/in6_ifattach.c: Prototype for _show_ifp().
243 * src/sys/netinet6/in6.c: Prototype for _show_ifp().
245 2003-07-28 Jay Foster <jay@systech.com>
247 * src/sys/kern/sockio.c:
248 Fixed memory leak in accept() call.
250 2003-07-24 Nick Garnett <nickg@balti.calivar.com>
252 * include/netinet/in.h:
253 * src/sys/kern/uipc_accf.c:
254 * src/sys/kern/uipc_socket.c:
255 * src/sys/net/route.c:
256 * src/sys/netinet/ip_icmp.c:
257 * src/sys/netinet/ip_input.c:
258 Fixed some compiler warnings.
260 2003-06-12 Motoya Kurotsu <kurotsu@allied-telesis.co.jp>
262 * src/sys/netinet/ip_input.c(ip_reass):
263 ip_nfragpackets is increasing by dropping fragments due to mbuf
264 starvation and eventually exceeds ip_maxfragpackets, which
265 results in refusing all fragments later. On the other hand, nipq
266 and maxnipq can be used as a substitute for ip_nfragpackets and
267 ip_maxfragpackets. This fix is the collection of the fixes done
268 at the following revisions of freebsd main branch; 1.221, 1.222,
271 2003-06-23 Michael Checky <Michael_Checky@ThermoKing.com>
273 * include/netinet/icmp_var.h: Changed icmpstat definition to a
274 declaration so stopping ld from generating a multiple symbol
275 definition error if combining of common symbols is disabled in the
277 * src/sys/netinet/ip_icmp.c: Added an icmpstat definition.
279 2003-06-23 Jay Foster <jay@systech.com>
281 * src/ecos/support.c: Increase the stack size for the background
282 thread when IPv6 is enabled otherwise the stack overflows.
284 2003-06-09 Nick Garnett <nickg@balti.calivar.com>
286 * src/ecos/synch.c (spl_any): Put call to cyg_mutex_lock() into a
287 loop so that releases of the current thread do not get mistaken
288 for locks and trigger the asserts.
290 * include/sys/malloc.h (M_DEVBUF): Added this definition.
292 * include/netinet/in.h: Changed size of sockaddr_in.sin_zero[] to
293 24 bytes. This makes a sockaddr_in the same size as a sockaddr.
294 Otherwise the definitions of things like ifaliasreq and
295 in_aliasreq do not match when they should.
297 2003-05-12 Motoya Kurotsu <kurotsu@allied-telesis.co.jp>
299 * src/ecos/timeout.c (do_timeout): The head of the linked list of
300 timers is timeout, not _timeout.
301 * src/ecos/timeout.c (timeout): Linear search the array for empty
302 entries and don't walk it like a linked list, because it is not.
303 * src/ecos/timeout.c (untimeout): Linear search is faster since
304 there are many entries in the linked list which are not in the
307 2003-05-12 Andrew Lunn <andrew.lunn@ascom.ch>
309 * src/ecos/support.c (_show_ifp): Display the IPv6 flag
312 2003-05-04 Gary Thomas <gary@mlbassoc.com>
314 * src/ecos/support.c:
315 * cdl/freebsd_net.cdl: Add option to force initialization [debug]
316 messages to go to a serial console. This seems to be necessary
317 on some hardware as the init sequence can totally foul up a
318 network [debug] connection.
320 2003-04-28 Andrew Lunn <andrew.lunn@ascom.ch>
322 * src/ecos/support.c (cyg_net_malloc): Honour the flag M_ZERO,
323 otherwise we end up with junk where we don't want it.
325 2003-04-11 Michael Checky <Michael_Checky@Thermoking.com>
327 * cdl/freebsd_net.cdl: Deleted the
328 'CYGPKG_NET_FREEBSD_STACK_BUILD_TESTS'
329 component because these tests are in the net.cdl component
330 'CYGPKG_NET_BUILD_TESTS' and selecting this option in freebsd_net.cdl
333 2003-04-05 Andrew Lunn <andrew.lunn@ascom.ch>
335 * src/ecos/support.c (_show_ifp): Now understands IPv6
336 addresses and network masks and added a few more flags
337 * src/sys/net/route.c (rt_reinit_rtdelete): Only delete IPv4
338 routes so that DHCP and BOOTP works and leave IPv6 routes so IPv6
341 2003-03-14 Nick Garnett <nickg@balti.calivar.com>
343 * src/ecos/support.c: Added function cyg_net_show_mbufs() and code
344 in cyg_net_mbuf_alloc() to accumulate and optionally display
345 information about the current set of mbufs. This is mostly a
346 debugging feature and is disabled by default.
348 * include/sys/mbuf.h: Added prototype for cyg_net_show_mbufs().
350 2003-03-14 Andrew Lunn <andrew.lunn@ascom.ch>
352 * src/sys/net/if.c (if_attach): Removed printf which causes the
353 ethernet device to become corrupt. At this point the app driver
354 has started but not completed taking over from the redboot
355 driver. It is unsafe for redboot to use the ethernet device.
357 2003-02-24 Jonathan Larmour <jifl@eCosCentric.com>
359 * cdl/freebsd_net.cdl: Fix doc link.
361 2003-02-18 Jonathan Larmour <jifl@eCosCentric.com>
363 * cdl/freebsd_net.cdl: Remove unused NBPFILTER and BRIDGE CDL options.
365 2003-02-14 Jonathan Larmour <jifl@eCosCentric.com>
367 * doc/freebsd.sgml: new_net template is now just "net".
369 2003-02-12 Jani Monoses <jani@iv.ro>
371 * src/sys/kern/sockio.c: bsd_getinfo/bsd_setinfo should have
372 void * args. Silences warnings.
373 * src/sys/kern/uipc_socket.c (sopoll): Use __FUNCTION__ correctly
375 * src/sys/net/if_ethersubr.c: Put comments for stuff after endifs
377 * src/sys/net/if_loop.c: Ditto.
379 2003-02-04 Gary Thomas <gary@mlbassoc.com>
381 * include/sys/bsdtypes.h: Workaround when building with new
382 Linux compatability package (which over-defines some symols
383 defined in this module).
385 2002-12-03 Gary Thomas <gthomas@ecoscentric.com>
387 * src/ecos/support.c (show_network_tables): New function to
388 print information about network tables (interfaces, routing).
390 2002-11-12 Gary Thomas <gary@mlbassoc.com>
392 * src/ecos/timeout.c (callout_reset): Check for finding the
393 correct "delta" was wrong - only used with asserts enabled.
395 * include/sys/uio.h: Compatability wrapper to expose 'iovec'
396 functions - used by many network programs.
398 2002-11-04 Gary Thomas <gthomas@ecoscentric.com>
400 * src/sys/net/if.c (if_attach): Moved check for ifq_maxlen to
401 this function since it can't be checked until the device comes
402 online, which may not be a sysinit time for PCMCIA devices.
404 2002-11-03 Gary Thomas <gthomas@ecoscentric.com>
406 * src/sys/kern/sockio.c (bsd_getname): Fix error where getsockname()
407 was actually performing getpeername().
409 * include/sys/uio.h: New file - compatability wrapper.
411 2002-07-31 Gary Thomas <gary@chez-thomas.org>
413 * src/sys/netinet/in_cksum.c: Fix problem on big endian machines.
415 2002-07-26 Gary Thomas <gary@chez-thomas.org>
416 2002-07-26 Ken Cox <jkc@redhat.com>
418 * src/ecos/support.c (ovbcopy): ovbcopy() must handle the case
419 where the src and dst regions are overlayed. memcpy() does not
420 handle this case, but memmove() does.
422 2002-07-10 Gary Thomas <gary@chez-thomas.org>
424 * src/sys/netinet/udp_usrreq.c:
425 * src/sys/netinet/tcp_subr.c:
426 * src/sys/netinet/in_pcb.c: Rename 'errno' function parameter
427 since some compilers have problems with this.
429 2002-07-08 Gary Thomas <gary@chez-thomas.org>
431 * include/sys/param.h: Need <errno.h> which may or may not be
432 already present, depending on configuration.
434 2002-06-20 Gary Thomas <gary@chez-thomas.org>
436 * include/sys/param.h (sprintf): Map to diag_sprintf().
438 2002-06-14 Gary Thomas <gary@chez-thomas.org>
440 * src/ecos/support.c:
441 Fix compile errors when CYGDBG_NET_TIMING_STATS enabled.
443 2002-06-05 Gary Thomas <gary@chez-thomas.org>
445 * include/netinet/in.h: Rename 'ip_opts' field (using the same
446 name as the structure is illegal in C++).
448 2002-05-14 Jesper Skov <jskov@redhat.com>
450 * include/netinet6/in6.h: Fixed warnings.
452 2002-04-22 Gary Thomas <gthomas@redhat.com>
454 * src/sys/netinet6/nd6.c: Make debug (on) default.
456 * include/netinet/tcp_debug.h: Fully conditionalize debug facility.
458 2002-04-17 Gary Thomas <gthomas@redhat.com>
460 * include/sys/socket.h: Remove definitions only used by sysctl
461 since their presence could be misleading.
463 * src/ecos/support.c (STACK_SIZE): Remove [debug/testing] bloat.
465 2002-03-30 Gary Thomas <gthomas@redhat.com>
467 * include/machine/types.h: [Placeholder] needed for some compilers.
469 2002-03-28 Gary Thomas <gthomas@redhat.com>
471 * src/sys/netinet/ip_icmp.c:
472 * include/sys/param.h:
473 * include/netinet/icmp_var.h: Export status structure for SNMP.
475 * cdl/freebsd_net.cdl: Augment log facilities to what SNMP uses.
477 2002-03-27 Gary Thomas <gthomas@redhat.com>
479 * include/sys/param.h (log): Remove warning.
481 2002-03-25 Gary Thomas <gthomas@redhat.com>
483 * src/ecos/support.c (zinit): Add more record keeping (and debug
486 * src/ecos/timeout.c (do_timeout): Don't reset ACTIVE when running
487 a timeout (since it confuses the TCP timer code).
489 2002-03-23 Gary Thomas <gthomas@redhat.com>
491 * src/sys/netinet/in_cksum.c (in_addword): Changed to use uint32 since
492 uint64 was wasteful (and failed on some architectures!)
494 2002-03-20 Gary Thomas <gthomas@redhat.com>
496 * include/sys/socket.h: Force struct sockaddr to be at least as
497 big as IPv4 or IPv6 sockets. Possibly this could be a little
498 cleaner, but at least now it's safe for programs to use sockaddr
499 variables in either environment.
501 2002-03-11 Hugo Tyson <hmt@redhat.com>
505 * src/sys/netinet/in.c (in_control): SIOCSIFADDR switch entry
506 moved to before the scan for this same address being in the list
507 already, along with Add and Delete (SIOCAIFADDR,SIOCDIFADDR) arms.
508 It falls through into the same alloc-if-needed code anyway.
509 Thus repeatedly setting the same address does not leak store.
511 * src/sys/net/route.c (route_reinit): Rewrite to delete all routes
512 individually rather than en-masse (leaking store).
513 (rt_reinit_rtdelete): New function; callback for individual
515 (rtioctl): Do not pass in a "route **" to return a pointer to the
516 route removed or added; this results in an extra reference, by the
517 returned pointer, and so a storeleak.
518 (rtrequest): RTM_DELETE arm: do not free a gateway route if the
519 gateway pointer is the same as the route itself - it gets freed
520 *again* at the end of the routine if you do. Just dec the refcnt.
522 2002-03-08 Gary Thomas <gthomas@redhat.com>
524 * src/sys/net/if_loop.c (loioctl): Force IFF_LOOPBACK setting.
526 * src/sys/kern/uipc_mbuf.c: Remove some warnings [from munging].
528 * src/ecos/support.c (cyg_net_init): Identify init messages.
530 * include/sys/param.h (nstab,nstab_end): These are not defined
531 within the network package and thus should not be munged.
533 * include/net/if.h: Add "IFF_LOOPBACK" to set of flags which
534 cannot be changed outside the kernel. Note: this is a change
535 from the "normal" BSD code. It was done to keep old code
536 working, but it may break some new code.
538 2002-03-07 Gary Thomas <gthomas@redhat.com>
540 * src/sys/kern/uipc_mbuf.c: Work over for the namespace changes.
542 * include/sys/param.h: Complete namespace munging; privatize
543 all kernel symbols via "cyg_" prefix.
545 2002-02-05 Hugo Tyson <hmt@redhat.com>
547 * cdl/freebsd_net.cdl: Position this package below CYGPKG_NET
548 ie. the common networking package. Only affects the view in the
551 #####ECOSPDCOPYRIGHTBEGIN####
553 # Copyright (C) 2000, 2001, 2002 Red Hat, Inc.
554 # All Rights Reserved.
556 # Permission is granted to use, copy, modify and redistribute this
559 #####ECOSPDCOPYRIGHTEND####