X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/tripe/blobdiff_plain/42da2a58637902f3bba731a83538804e57e340bf..575e728f946cbe7f954a46bce8b86ddb022d404a:/tun-unet.c diff --git a/tun-unet.c b/tun-unet.c index a6b53eb9..c93803ee 100644 --- a/tun-unet.c +++ b/tun-unet.c @@ -94,8 +94,8 @@ static void t_read(int fd, unsigned mode, void *v) return; } IF_TRACING(T_TUNNEL, { - trace(T_TUNNEL, "tunnel: packet arrived"); - trace_block(T_PACKET, "tunnel: packet contents", buf_i, n); + trace(T_TUNNEL, "tun-unet: packet arrived"); + trace_block(T_PACKET, "tun-unet: packet contents", buf_i, n); }) buf_init(&b, buf_i, n); p_tun(t->p, &b); @@ -145,7 +145,7 @@ static tunnel *t_create(peer *p) t->p = p; sel_initfile(&sel, &t->f, fd, SEL_READ, t_read, t); sel_addfile(&t->f); - T( trace(T_TUNNEL, "tunnel: attached interface %s to peer `%s'", + T( trace(T_TUNNEL, "tun-unet: attached interface %s to peer `%s'", t_ifname(t), p_name(p)); ) return (t); } @@ -163,8 +163,8 @@ static tunnel *t_create(peer *p) static void t_inject(tunnel *t, buf *b) { IF_TRACING(T_TUNNEL, { - trace(T_TUNNEL, "tunnel: inject decrypted packet"); - trace_block(T_PACKET, "tunnel: packet contents", BBASE(b), BLEN(b)); + trace(T_TUNNEL, "tun-unet: inject decrypted packet"); + trace_block(T_PACKET, "tun-unet: packet contents", BBASE(b), BLEN(b)); }) write(t->f.fd, BBASE(b), BLEN(b)); }