Jesper Skriver d1c54148b7 Redo the security update done in rev 1.54 of src/sys/netinet/tcp_subr.c
and 1.84 of src/sys/netinet/udp_usrreq.c

The changes broken down:

- remove 0 as a wildcard for addresses and port numbers in
  src/sys/netinet/in_pcb.c:in_pcbnotify()
- add src/sys/netinet/in_pcb.c:in_pcbnotifyall() used to notify
  all sessions with the specific remote address.
- change
  - src/sys/netinet/udp_usrreq.c:udp_ctlinput()
  - src/sys/netinet/tcp_subr.c:tcp_ctlinput()
  to use in_pcbnotifyall() to notify multiple sessions, instead of
  using in_pcbnotify() with 0 as src address and as port numbers.
- remove check for src port == 0 in
  - src/sys/netinet/tcp_subr.c:tcp_ctlinput()
  - src/sys/netinet/udp_usrreq.c:udp_ctlinput()
  as they are no longer needed.
- move handling of redirects and host dead from in_pcbnotify() to
  udp_ctlinput() and tcp_ctlinput(), so they will call
  in_pcbnotifyall() to notify all sessions with the specific
  remote address.

Approved by:	jlemon
Inspired by:    NetBSD
2001-02-22 21:23:45 +00:00
..
2000-10-07 23:15:17 +00:00
2001-02-04 14:26:56 +00:00
2000-05-01 20:32:07 +00:00
1999-08-28 01:08:13 +00:00
1999-08-28 01:08:13 +00:00
1999-08-28 01:08:13 +00:00
2001-02-04 14:26:56 +00:00
2000-10-26 12:33:42 +00:00
2001-02-04 14:26:56 +00:00
2001-02-04 14:26:56 +00:00
2001-02-04 14:26:56 +00:00
2001-02-04 14:26:56 +00:00
2001-02-04 14:26:56 +00:00
2001-02-15 22:32:06 +00:00
2000-08-13 04:31:06 +00:00
2001-02-06 11:21:58 +00:00
2001-02-04 15:25:15 +00:00
2001-02-04 14:26:56 +00:00
2000-05-24 04:21:35 +00:00
2001-02-04 14:26:56 +00:00
2001-02-04 14:26:56 +00:00
2001-02-04 14:26:56 +00:00
2000-10-26 12:33:42 +00:00
1999-12-22 19:13:38 +00:00
2001-02-04 14:26:56 +00:00
2001-02-04 14:26:56 +00:00
1999-08-28 01:08:13 +00:00
1999-08-28 01:08:13 +00:00