Lines Matching refs:tb
632 void xfrm_xfrma_print(struct rtattr *tb[], __u16 family,
635 if (tb[XFRMA_ALG_AUTH]) {
636 struct rtattr *rta = tb[XFRMA_ALG_AUTH];
641 if (tb[XFRMA_ALG_AEAD]) {
642 struct rtattr *rta = tb[XFRMA_ALG_AEAD];
647 if (tb[XFRMA_ALG_CRYPT]) {
648 struct rtattr *rta = tb[XFRMA_ALG_CRYPT];
653 if (tb[XFRMA_ALG_COMP]) {
654 struct rtattr *rta = tb[XFRMA_ALG_COMP];
659 if (tb[XFRMA_ENCAP]) {
667 if (RTA_PAYLOAD(tb[XFRMA_ENCAP]) < sizeof(*e)) {
672 e = (struct xfrm_encap_tmpl *) RTA_DATA(tb[XFRMA_ENCAP]);
696 if (tb[XFRMA_TMPL]) {
697 struct rtattr *rta = tb[XFRMA_TMPL];
702 if (tb[XFRMA_COADDR]) {
710 coa = (xfrm_address_t *)RTA_DATA(tb[XFRMA_COADDR]);
712 if (RTA_PAYLOAD(tb[XFRMA_COADDR]) < sizeof(*coa)) {
725 if (tb[XFRMA_LASTUSED]) {
732 if (RTA_PAYLOAD(tb[XFRMA_LASTUSED]) < sizeof(lastused)) {
738 lastused = *(__u64 *)RTA_DATA(tb[XFRMA_LASTUSED]);
755 struct rtattr *tb[], FILE *fp, const char *prefix,
790 xfrm_xfrma_print(tb, xsinfo->family, fp, buf);
808 struct rtattr *tb[], FILE *fp, const char *prefix,
856 if (tb[XFRMA_POLICY_TYPE]) {
861 if (RTA_PAYLOAD(tb[XFRMA_POLICY_TYPE]) < sizeof(*upt))
864 upt = (struct xfrm_userpolicy_type *)RTA_DATA(tb[XFRMA_POLICY_TYPE]);
886 xfrm_xfrma_print(tb, xpinfo->sel.family, fp, buf);