can: gw: Properly fill the netlink header when responding to RTM_GETROUTE
authorThomas Graf <tgraf@suug.ch>
Thu, 5 Jul 2012 12:19:57 +0000 (14:19 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Tue, 10 Jul 2012 20:36:01 +0000 (22:36 +0200)
commit1da0faa3801e0dcb585b33266a2ac0842f26e58c
tree30d62927d4601adafc78574deecb7ed0eb3141e3
parent732d35fd08058a678327ec908528fcc9514c9e48
can: gw: Properly fill the netlink header when responding to RTM_GETROUTE

 - set message type to RTM_NEWROUTE
 - relate to original request by inheriting the sequence and port number.
 - set NLM_F_MULTI because it's a dump and more messages will follow

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Tested-by: Oliver Hartkopp <socketcan@hartkopp.net>
Acked-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
net/can/gw.c