Christian S.J. Peron
3581cc66bb
Zero the un-used portions of the struct sockaddr data before sending
...
it back to userspace, so it does not break bind(2) on raw sockets in jails.
Currently some processes, like traceroute(8) construct a routing request
to determine its source address based on the destination. This sockaddr
data is fed directly to bind(2). When bind calls ifa_ifwithaddr(9) to
make sure the address exists on the interface, the comparison will
fail causing bind(2) to return EADDRNOTAVAIL if the data wasnt zero'ed
before initialization.
Approved by: bmilekic (mentor)
2004-05-10 15:07:23 +00:00
..
2004-04-07 20:46:16 +00:00
2004-04-07 20:46:16 +00:00
2004-04-07 20:46:16 +00:00
2004-04-07 20:46:16 +00:00
2004-04-07 20:46:16 +00:00
2004-04-24 22:11:13 +00:00
2004-04-07 20:46:16 +00:00
2004-04-07 20:46:16 +00:00
2004-04-25 09:24:52 +00:00
2004-04-18 01:15:32 +00:00
2004-01-26 12:13:11 +00:00
2004-04-25 09:24:52 +00:00
2004-04-07 20:46:16 +00:00
2004-04-07 20:46:16 +00:00
2003-12-28 03:56:00 +00:00
2004-04-25 09:24:52 +00:00
2004-04-14 00:57:49 +00:00
2004-04-25 09:24:52 +00:00
2004-04-14 00:57:49 +00:00
2004-04-05 16:55:15 +00:00
2004-04-23 16:57:43 +00:00
2004-03-22 16:04:43 +00:00
2004-04-25 09:24:52 +00:00
2004-04-07 20:46:16 +00:00
2004-04-14 00:57:49 +00:00
2003-10-31 18:32:15 +00:00
2004-04-13 19:23:46 +00:00
2003-10-31 18:32:15 +00:00
2004-04-19 01:36:24 +00:00
2004-04-07 20:46:16 +00:00
2004-04-07 20:46:16 +00:00
2004-03-14 01:32:44 +00:00
2004-04-19 05:06:27 +00:00
2004-03-18 14:18:51 +00:00
2004-03-17 01:09:59 +00:00
2004-03-29 22:16:39 +00:00
2004-04-07 20:46:16 +00:00
2004-05-03 13:48:35 +00:00
2004-01-18 19:29:04 +00:00
2004-05-04 02:39:41 +00:00
2004-04-24 22:24:48 +00:00
2004-05-03 13:48:35 +00:00
2003-03-15 23:55:33 +00:00
2003-10-31 18:32:15 +00:00
2003-11-04 14:08:31 +00:00
2003-11-08 22:28:40 +00:00
2004-04-07 20:46:16 +00:00
2003-09-23 17:54:04 +00:00
2003-09-23 17:54:04 +00:00
2004-02-11 04:26:04 +00:00
2003-02-19 05:47:46 +00:00
2003-10-31 18:32:15 +00:00
2004-04-21 15:27:36 +00:00
2004-04-18 11:48:35 +00:00
2004-04-07 20:46:16 +00:00
2004-04-07 20:46:16 +00:00
2004-04-07 20:46:16 +00:00
2004-04-25 01:39:00 +00:00
2004-04-24 23:34:04 +00:00
2004-05-10 15:07:23 +00:00
2004-04-07 20:46:16 +00:00
2004-04-07 20:46:16 +00:00
2004-04-07 20:46:16 +00:00
2003-02-02 13:52:25 +00:00