printsock: quote network interface names
* net.c (printsock): Print network interface names returned by if_indextoname() using print_quoted_string.
This commit is contained in:
parent
c92977118d
commit
0e9d594caa
9
net.c
9
net.c
@ -253,8 +253,13 @@ printsock(struct tcb *tcp, long addr, int addrlen)
|
|||||||
|
|
||||||
if (if_indextoname(addrbuf.sa6.sin6_scope_id, scopebuf) == NULL)
|
if (if_indextoname(addrbuf.sa6.sin6_scope_id, scopebuf) == NULL)
|
||||||
numericscope++;
|
numericscope++;
|
||||||
else
|
else {
|
||||||
tprintf(", sin6_scope_id=if_nametoindex(\"%s\")", scopebuf);
|
tprints(", sin6_scope_id=if_nametoindex(");
|
||||||
|
print_quoted_string(scopebuf,
|
||||||
|
sizeof(scopebuf),
|
||||||
|
QUOTE_0_TERMINATED);
|
||||||
|
tprints(")");
|
||||||
|
}
|
||||||
} else
|
} else
|
||||||
numericscope++;
|
numericscope++;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user