netlink: Break out netlink_host_deliver
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 13 Apr 2014 14:33:50 +0000 (15:33 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 24 Apr 2014 01:09:59 +0000 (02:09 +0100)
commitf928f0694ff6b90d5fc429cfe910eaba9fdd3fd0
treee765bdb49b17d6b6e4ae0cf49e128a3204e48f55
parent311e11e48b5f4b846ac2dced385185881baadf7f
netlink: Break out netlink_host_deliver

Provide a helper function for calling deliver_to_host, and use it at
the two call sites.

A side effect is that packets which came via point-to-point links are
properly counted.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
netlink.c