mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-11-04 21:24:20 +00:00
iproute2: display xfrm socket policy direction
display socket policy direction Signed-off-by: Ulrich Weber <uweber@astaro.com>
This commit is contained in:
parent
cb4bd0ec8d
commit
66abc09072
@ -861,7 +861,12 @@ void xfrm_policy_info_print(struct xfrm_userpolicy_info *xpinfo,
|
||||
STRBUF_CAT(buf, "\t");
|
||||
|
||||
fputs(buf, fp);
|
||||
if (xpinfo->dir >= XFRM_POLICY_MAX) {
|
||||
xpinfo->dir -= XFRM_POLICY_MAX;
|
||||
fprintf(fp, "socket ");
|
||||
} else
|
||||
fprintf(fp, "dir ");
|
||||
|
||||
switch (xpinfo->dir) {
|
||||
case XFRM_POLICY_IN:
|
||||
fprintf(fp, "in");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user