Lines Matching refs:tb
57 struct rtattr * tb[FRA_MAX+1]; in print_rule() local
68 parse_rtattr(tb, FRA_MAX, RTM_RTA(r), len); in print_rule()
75 if (tb[FRA_PRIORITY]) in print_rule()
76 fprintf(fp, "%u:\t", *(unsigned*)RTA_DATA(tb[FRA_PRIORITY])); in print_rule()
83 if (tb[FRA_SRC]) { in print_rule()
86 RTA_PAYLOAD(tb[FRA_SRC]), in print_rule()
87 RTA_DATA(tb[FRA_SRC]), in print_rule()
93 RTA_PAYLOAD(tb[FRA_SRC]), in print_rule()
94 RTA_DATA(tb[FRA_SRC]), in print_rule()
104 if (tb[FRA_DST]) { in print_rule()
107 RTA_PAYLOAD(tb[FRA_DST]), in print_rule()
108 RTA_DATA(tb[FRA_DST]), in print_rule()
114 RTA_PAYLOAD(tb[FRA_DST]), in print_rule()
115 RTA_DATA(tb[FRA_DST]), in print_rule()
127 if (tb[FRA_FWMARK] || tb[FRA_FWMASK]) { in print_rule()
130 if (tb[FRA_FWMARK]) in print_rule()
131 mark = rta_getattr_u32(tb[FRA_FWMARK]); in print_rule()
133 if (tb[FRA_FWMASK] && in print_rule()
134 (mask = rta_getattr_u32(tb[FRA_FWMASK])) != 0xFFFFFFFF) in print_rule()
140 if (tb[FRA_IFNAME]) { in print_rule()
141 fprintf(fp, "iif %s ", rta_getattr_str(tb[FRA_IFNAME])); in print_rule()
146 if (tb[FRA_OIFNAME]) { in print_rule()
147 fprintf(fp, "oif %s ", rta_getattr_str(tb[FRA_OIFNAME])); in print_rule()
152 if (tb[FRA_UID_START] || tb[FRA_UID_END]) { in print_rule()
154 if (tb[FRA_UID_START]) in print_rule()
155 fprintf(fp, "%u", rta_getattr_u32(tb[FRA_UID_START])); in print_rule()
159 if (tb[FRA_UID_END]) in print_rule()
160 fprintf(fp, "-%u ", rta_getattr_u32(tb[FRA_UID_END])); in print_rule()
165 table = rtm_get_table(r, tb); in print_rule()
169 if (tb[FRA_SUPPRESS_PREFIXLEN]) { in print_rule()
170 int pl = rta_getattr_u32(tb[FRA_SUPPRESS_PREFIXLEN]); in print_rule()
175 if (tb[FRA_SUPPRESS_IFGROUP]) { in print_rule()
176 int group = rta_getattr_u32(tb[FRA_SUPPRESS_IFGROUP]); in print_rule()
184 if (tb[FRA_FLOW]) { in print_rule()
185 __u32 to = rta_getattr_u32(tb[FRA_FLOW]); in print_rule()
197 if (tb[RTA_GATEWAY]) { in print_rule()
200 RTA_PAYLOAD(tb[RTA_GATEWAY]), in print_rule()
201 RTA_DATA(tb[RTA_GATEWAY]), in print_rule()
207 if (tb[FRA_GOTO]) in print_rule()
208 fprintf(fp, "%u", rta_getattr_u32(tb[FRA_GOTO])); in print_rule()
501 struct rtattr * tb[FRA_MAX+1]; in flush_rule() local
507 parse_rtattr(tb, FRA_MAX, RTM_RTA(r), len); in flush_rule()
509 if (tb[FRA_PRIORITY]) { in flush_rule()