Lines Matching refs:tb
425 struct rtattr * tb[XFRMA_MAX+1];
468 parse_rtattr(tb, XFRMA_MAX, rta, len);
470 if (tb[XFRMA_POLICY_TYPE]) {
473 if (RTA_PAYLOAD(tb[XFRMA_POLICY_TYPE]) < sizeof(*upt)) {
477 upt = (struct xfrm_userpolicy_type *)RTA_DATA(tb[XFRMA_POLICY_TYPE]);
493 if (!tb[XFRMA_POLICY]) {
497 if (RTA_PAYLOAD(tb[XFRMA_POLICY]) < sizeof(*xpinfo)) {
501 xpinfo = (struct xfrm_userpolicy_info *)RTA_DATA(tb[XFRMA_POLICY]);
504 xfrm_policy_info_print(xpinfo, tb, fp, NULL, NULL);
656 struct rtattr *tb[XFRMA_MAX+1];
673 parse_rtattr(tb, XFRMA_MAX, XFRMP_RTA(xpinfo), len);
675 if (tb[XFRMA_POLICY_TYPE]) {
678 if (RTA_PAYLOAD(tb[XFRMA_POLICY_TYPE]) < sizeof(*upt)) {
682 upt = (struct xfrm_userpolicy_type *)RTA_DATA(tb[XFRMA_POLICY_TYPE]);
844 struct rtattr * tb[XFRMA_SPD_MAX+1];
856 parse_rtattr(tb, XFRMA_SPD_MAX, rta, len);
859 if (tb[XFRMA_SPD_INFO]) {
862 if (RTA_PAYLOAD(tb[XFRMA_SPD_INFO]) < sizeof(*si)) {
866 si = RTA_DATA(tb[XFRMA_SPD_INFO]);
884 if (tb[XFRMA_SPD_HINFO]) {
885 if (RTA_PAYLOAD(tb[XFRMA_SPD_HINFO]) < sizeof(*sh)) {
889 sh = RTA_DATA(tb[XFRMA_SPD_HINFO]);