Commit 66abc090 authored by Ulrich Weber's avatar Ulrich Weber Committed by Stephen Hemminger

iproute2: display xfrm socket policy direction

display socket policy direction
Signed-off-by: default avatarUlrich Weber <uweber@astaro.com>
parent cb4bd0ec
...@@ -861,7 +861,12 @@ void xfrm_policy_info_print(struct xfrm_userpolicy_info *xpinfo, ...@@ -861,7 +861,12 @@ void xfrm_policy_info_print(struct xfrm_userpolicy_info *xpinfo,
STRBUF_CAT(buf, "\t"); STRBUF_CAT(buf, "\t");
fputs(buf, fp); fputs(buf, fp);
if (xpinfo->dir >= XFRM_POLICY_MAX) {
xpinfo->dir -= XFRM_POLICY_MAX;
fprintf(fp, "socket ");
} else
fprintf(fp, "dir "); fprintf(fp, "dir ");
switch (xpinfo->dir) { switch (xpinfo->dir) {
case XFRM_POLICY_IN: case XFRM_POLICY_IN:
fprintf(fp, "in"); fprintf(fp, "in");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment