• Home
  • Raw
  • Download

Lines Matching refs:dp

107 static void nh_dump_line(struct rtnl_nexthop *nh, struct nl_dump_params *dp)  in nh_dump_line()  argument
114 nl_dump(dp, "via"); in nh_dump_line()
117 nl_dump(dp, " %s", nl_addr2str(nh->rtnh_gateway, in nh_dump_line()
122 nl_dump(dp, " dev %s", in nh_dump_line()
127 nl_dump(dp, " dev %d", nh->rtnh_ifindex); in nh_dump_line()
130 nl_dump(dp, " "); in nh_dump_line()
133 static void nh_dump_details(struct rtnl_nexthop *nh, struct nl_dump_params *dp) in nh_dump_details() argument
140 nl_dump(dp, "nexthop"); in nh_dump_details()
143 nl_dump(dp, " via %s", nl_addr2str(nh->rtnh_gateway, in nh_dump_details()
148 nl_dump(dp, " dev %s", in nh_dump_details()
153 nl_dump(dp, " dev %d", nh->rtnh_ifindex); in nh_dump_details()
157 nl_dump(dp, " weight %u", nh->rtnh_weight); in nh_dump_details()
160 nl_dump(dp, " realm %04x:%04x", in nh_dump_details()
165 nl_dump(dp, " <%s>", rtnl_route_nh_flags2str(nh->rtnh_flags, in nh_dump_details()
169 static void nh_dump_env(struct rtnl_nexthop *nh, struct nl_dump_params *dp) in nh_dump_env() argument
177 nl_dump_line(dp, "ROUTE_NH%d_VIA=%s\n", dp->dp_ivar, in nh_dump_env()
182 nl_dump_line(dp, "ROUTE_NH%d_DEV=%s\n", dp->dp_ivar, in nh_dump_env()
187 nl_dump_line(dp, "ROUTE_NH%d_DEV=%d\n", dp->dp_ivar, in nh_dump_env()
192 nl_dump_line(dp, "ROUTE_NH%d_WEIGHT=%u\n", dp->dp_ivar, in nh_dump_env()
196 nl_dump_line(dp, "ROUTE_NH%d_REALM=%04x:%04x\n", dp->dp_ivar, in nh_dump_env()
201 nl_dump_line(dp, "ROUTE_NH%d_FLAGS=<%s>\n", dp->dp_ivar, in nh_dump_env()
205 void rtnl_route_nh_dump(struct rtnl_nexthop *nh, struct nl_dump_params *dp) in rtnl_route_nh_dump() argument
207 switch (dp->dp_type) { in rtnl_route_nh_dump()
209 nh_dump_line(nh, dp); in rtnl_route_nh_dump()
214 if (dp->dp_ivar == NH_DUMP_FROM_DETAILS) in rtnl_route_nh_dump()
215 nh_dump_details(nh, dp); in rtnl_route_nh_dump()
219 nh_dump_env(nh, dp); in rtnl_route_nh_dump()