chiark / gitweb /
udp, polypath: Log `experiencing success receiving', etc.
We want to use the `experienced' mechanism to report success while
receiving.
But, previously, the udp_socks_afterpoll function which does the
reciving didn't have a suitable description (`socksdesc') available:
in particular, for polypath, it should print the interface name.
Solve this as follows:
* Add a `desc' field to struct udpsocks, set by udp_socks_register
(for polypath this duplicates interf->name, but we don't really
care much about that as it's only one pointer).
* Add a new argument to udp_socks_register to ensure we catch
all the creation sites.
* Have have udp_sock_experienced take a struct udpsocks*.
After all that, the new call to udp_sock_experienced is trivial.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>