chiark / gitweb /
netlink: Break out netlink_client_deliver
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 5 Jan 2014 15:30:09 +0000 (15:30 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 24 Apr 2014 00:30:48 +0000 (01:30 +0100)
commit7b6abafa4e46e77072dbd89f4ee4090268d6da51
treed903f0472010f54d7b6f8c4430c3305c911608c6
parent161f20c2be93bbebb2954a61ef934ccae1c74c0b
netlink: Break out netlink_client_deliver

Provide a helper function for calling client->deliver, and use it at
the two call sites.  We are going to fix a bug in this area and want
to bring the implementations together so we have only one place to
fix.

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

I have verified that I caught all of the call sites by experimentally
changing the field name from "deliver" to "deliverx" in netlink.h, and
inspecting the locations of the resulting compiler errors.

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