Lines Matching refs:tb
369 static void bond_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[]) in bond_print_opt() argument
373 if (!tb) in bond_print_opt()
376 if (tb[IFLA_BOND_MODE]) { in bond_print_opt()
378 rta_getattr_u8(tb[IFLA_BOND_MODE])); in bond_print_opt()
382 if (tb[IFLA_BOND_ACTIVE_SLAVE] && in bond_print_opt()
383 (ifindex = rta_getattr_u32(tb[IFLA_BOND_ACTIVE_SLAVE]))) { in bond_print_opt()
393 if (tb[IFLA_BOND_MIIMON]) in bond_print_opt()
394 fprintf(f, "miimon %u ", rta_getattr_u32(tb[IFLA_BOND_MIIMON])); in bond_print_opt()
396 if (tb[IFLA_BOND_UPDELAY]) in bond_print_opt()
397 fprintf(f, "updelay %u ", rta_getattr_u32(tb[IFLA_BOND_UPDELAY])); in bond_print_opt()
399 if (tb[IFLA_BOND_DOWNDELAY]) in bond_print_opt()
401 rta_getattr_u32(tb[IFLA_BOND_DOWNDELAY])); in bond_print_opt()
403 if (tb[IFLA_BOND_USE_CARRIER]) in bond_print_opt()
405 rta_getattr_u8(tb[IFLA_BOND_USE_CARRIER])); in bond_print_opt()
407 if (tb[IFLA_BOND_ARP_INTERVAL]) in bond_print_opt()
409 rta_getattr_u32(tb[IFLA_BOND_ARP_INTERVAL])); in bond_print_opt()
411 if (tb[IFLA_BOND_ARP_IP_TARGET]) { in bond_print_opt()
417 tb[IFLA_BOND_ARP_IP_TARGET]); in bond_print_opt()
438 if (tb[IFLA_BOND_ARP_VALIDATE]) { in bond_print_opt()
440 rta_getattr_u32(tb[IFLA_BOND_ARP_VALIDATE])); in bond_print_opt()
444 if (tb[IFLA_BOND_ARP_ALL_TARGETS]) { in bond_print_opt()
446 rta_getattr_u32(tb[IFLA_BOND_ARP_ALL_TARGETS])); in bond_print_opt()
450 if (tb[IFLA_BOND_PRIMARY] && in bond_print_opt()
451 (ifindex = rta_getattr_u32(tb[IFLA_BOND_PRIMARY]))) { in bond_print_opt()
461 if (tb[IFLA_BOND_PRIMARY_RESELECT]) { in bond_print_opt()
463 rta_getattr_u8(tb[IFLA_BOND_PRIMARY_RESELECT])); in bond_print_opt()
467 if (tb[IFLA_BOND_FAIL_OVER_MAC]) { in bond_print_opt()
469 rta_getattr_u8(tb[IFLA_BOND_FAIL_OVER_MAC])); in bond_print_opt()
473 if (tb[IFLA_BOND_XMIT_HASH_POLICY]) { in bond_print_opt()
475 rta_getattr_u8(tb[IFLA_BOND_XMIT_HASH_POLICY])); in bond_print_opt()
479 if (tb[IFLA_BOND_RESEND_IGMP]) in bond_print_opt()
481 rta_getattr_u32(tb[IFLA_BOND_RESEND_IGMP])); in bond_print_opt()
483 if (tb[IFLA_BOND_NUM_PEER_NOTIF]) in bond_print_opt()
485 rta_getattr_u8(tb[IFLA_BOND_NUM_PEER_NOTIF])); in bond_print_opt()
487 if (tb[IFLA_BOND_ALL_SLAVES_ACTIVE]) in bond_print_opt()
489 rta_getattr_u8(tb[IFLA_BOND_ALL_SLAVES_ACTIVE])); in bond_print_opt()
491 if (tb[IFLA_BOND_MIN_LINKS]) in bond_print_opt()
493 rta_getattr_u32(tb[IFLA_BOND_MIN_LINKS])); in bond_print_opt()
495 if (tb[IFLA_BOND_LP_INTERVAL]) in bond_print_opt()
497 rta_getattr_u32(tb[IFLA_BOND_LP_INTERVAL])); in bond_print_opt()
499 if (tb[IFLA_BOND_PACKETS_PER_SLAVE]) in bond_print_opt()
501 rta_getattr_u32(tb[IFLA_BOND_PACKETS_PER_SLAVE])); in bond_print_opt()
503 if (tb[IFLA_BOND_AD_LACP_RATE]) { in bond_print_opt()
505 rta_getattr_u8(tb[IFLA_BOND_AD_LACP_RATE])); in bond_print_opt()
509 if (tb[IFLA_BOND_AD_SELECT]) { in bond_print_opt()
511 rta_getattr_u8(tb[IFLA_BOND_AD_SELECT])); in bond_print_opt()
515 if (tb[IFLA_BOND_AD_INFO]) { in bond_print_opt()
519 tb[IFLA_BOND_AD_INFO]); in bond_print_opt()
546 if (tb[IFLA_BOND_AD_ACTOR_SYS_PRIO]) { in bond_print_opt()
548 rta_getattr_u16(tb[IFLA_BOND_AD_ACTOR_SYS_PRIO])); in bond_print_opt()
551 if (tb[IFLA_BOND_AD_USER_PORT_KEY]) { in bond_print_opt()
553 rta_getattr_u16(tb[IFLA_BOND_AD_USER_PORT_KEY])); in bond_print_opt()
556 if (tb[IFLA_BOND_AD_ACTOR_SYSTEM]) { in bond_print_opt()
560 ll_addr_n2a(RTA_DATA(tb[IFLA_BOND_AD_ACTOR_SYSTEM]), in bond_print_opt()
561 RTA_PAYLOAD(tb[IFLA_BOND_AD_ACTOR_SYSTEM]), in bond_print_opt()
565 if (tb[IFLA_BOND_TLB_DYNAMIC_LB]) { in bond_print_opt()
567 rta_getattr_u8(tb[IFLA_BOND_TLB_DYNAMIC_LB])); in bond_print_opt()