X-Git-Url: https://git.distorted.org.uk/~mdw/secnet/blobdiff_plain/7cafb08048979850a82b43059b48b947bc2fa9bc..c72d679d2344a22f55889da6932754986fc0a7b9:/polypath.c diff --git a/polypath.c b/polypath.c index 9d5c1b9..af52473 100644 --- a/polypath.c +++ b/polypath.c @@ -321,8 +321,8 @@ static void polypath_record_ifaddr(struct polypath *st, interf->socks.n_socks=0; FILLZERO(interf->experienced_xmit_noaf); LIST_INSERT_HEAD(&st->interfs,interf,entry); - udp_socks_register(&st->uc,&interf->socks); interf->name=strdup(ifname); + udp_socks_register(&st->uc,&interf->socks,interf->name); if (!interf->name) BADE("strdup interface name",errno); found_interf: @@ -439,7 +439,7 @@ static bool_t polypath_sendmsg(void *commst, struct buffer_if *buf, attempted=True; int r=sendto(us->fd,buf->start,buf->size, 0,&dest->ia.sa,iaddr_socklen(&dest->ia)); - udp_sock_experienced(0,&st->uc, interf->name,us, + udp_sock_experienced(0,&st->uc,&interf->socks,us, 1,af, r,errno); if (r>=0) { reasonable=True;