Hannes Frederic Sowa
4b261c75a9
ipv6: make IPV6_RECVPKTINFO work for ipv4 datagrams
...
We currently don't report IPV6_RECVPKTINFO in cmsg access ancillary data
for IPv4 datagrams on IPv6 sockets.
This patch splits the ip6_datagram_recv_ctl into two functions, one
which handles both protocol families, AF_INET and AF_INET6, while the
ip6_datagram_recv_specific_ctl only handles IPv6 cmsg data.
ip6_datagram_recv_*_ctl never reported back any errors, so we can make
them return void. Also provide a helper for protocols which don't offer dual
personality to further use ip6_datagram_recv_ctl, which is exported to
modules.
I needed to shuffle the code for ping around a bit to make it easier to
implement dual personality for ping ipv6 sockets in future.
Reported-by: Gert Doering <gert@space.net >
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org >
Signed-off-by: David S. Miller <davem@davemloft.net >
2014-01-19 19:53:18 -08:00
..
2014-01-09 23:25:48 +01:00
2014-01-13 11:22:55 -08:00
2013-06-03 00:07:42 -07:00
2014-01-02 00:08:38 -05:00
2013-12-26 13:43:21 -05:00
2013-12-06 07:24:39 +01:00
2014-01-14 15:15:25 -08:00
2013-10-29 06:39:42 +01:00
2013-10-18 13:53:59 -04:00
2013-12-28 17:01:46 -05:00
2013-12-10 17:54:23 -05:00
2013-12-28 17:01:46 -05:00
2013-11-15 09:32:20 +09:00
2014-01-06 20:28:34 -05:00
2014-01-16 16:08:27 -08:00
2014-01-13 11:22:55 -08:00
2014-01-14 15:15:25 -08:00
2014-01-14 15:15:25 -08:00
2014-01-13 22:35:46 -08:00
2013-10-23 17:01:41 -04:00
2013-10-19 19:45:35 -04:00
2013-12-29 16:34:25 -05:00
2013-10-08 23:19:24 -04:00
2013-12-28 17:03:20 -05:00
2014-01-13 11:22:54 -08:00
2013-12-17 16:36:21 -05:00
2014-01-18 23:08:02 -08:00
2013-08-08 22:24:59 -07:00
2014-01-02 03:30:36 -05:00
2014-01-14 15:03:33 -08:00
2014-01-19 19:53:18 -08:00
2013-12-17 16:36:21 -05:00
2014-01-18 23:08:02 -08:00
2014-01-18 23:08:02 -08:00
2013-06-03 00:07:42 -07:00
2013-04-02 14:35:33 -04:00
2014-01-18 23:08:02 -08:00
2014-01-18 00:55:41 -08:00
2013-09-03 21:41:43 -04:00
2014-01-06 20:28:34 -05:00
2013-04-18 20:27:55 +02:00
2014-01-19 19:53:18 -08:00
2014-01-02 03:30:36 -05:00
2013-11-28 18:47:51 -05:00
2014-01-18 23:04:16 -08:00
2014-01-13 11:22:54 -08:00
2013-12-26 13:43:21 -05:00
2014-01-13 11:22:54 -08:00
2013-11-04 19:57:59 -05:00
2013-11-04 19:57:59 -05:00
2013-11-04 19:57:59 -05:00
2012-01-11 12:56:06 -08:00
2013-11-04 19:57:47 -05:00
2013-11-04 19:57:59 -05:00
2013-11-04 19:57:59 -05:00
2013-11-04 19:57:59 -05:00
2013-11-04 19:57:59 -05:00
2013-12-29 16:34:24 -05:00
2013-12-26 13:43:21 -05:00
2013-11-04 19:57:59 -05:00
2013-12-05 21:01:01 -05:00
2014-01-18 00:55:41 -08:00
2014-01-17 17:56:33 -08:00
2014-01-14 18:53:48 -08:00
2013-12-29 16:34:24 -05:00
2013-12-26 13:43:21 -05:00
2013-11-04 19:57:59 -05:00
2013-10-29 22:50:41 -04:00
2013-11-04 19:57:59 -05:00
2013-10-19 19:12:11 -04:00
2013-11-04 19:57:59 -05:00
2013-03-21 11:47:50 -04:00
2013-12-26 13:43:55 -05:00
2014-01-06 16:34:34 -05:00
2012-03-11 23:42:51 -07:00
2013-04-19 14:57:56 -04:00
2013-10-19 19:12:11 -04:00
2014-01-02 19:06:47 -05:00
2014-01-18 23:04:16 -08:00
2012-03-12 17:05:21 -07:00
2013-02-15 15:10:37 -05:00
2013-12-26 13:43:21 -05:00
2007-10-10 16:55:54 -07:00
2013-09-30 15:24:57 -04:00
2013-08-26 12:40:53 +02:00
2013-11-01 07:08:46 +01:00
2013-12-18 16:58:20 -05:00
2013-05-31 17:19:05 -07:00