From: Ian Jackson Date: Wed, 1 Oct 2014 23:55:28 +0000 (+0100) Subject: udp, polypath: Log `experiencing success receiving', etc. X-Git-Tag: base.ipv6-polypath-fixes-2.v1~23 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/secnet/commitdiff_plain/c72d679d2344a22f55889da6932754986fc0a7b9?ds=inline;hp=c72d679d2344a22f55889da6932754986fc0a7b9 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 ---