Home | History | Annotate | Download | only in tc

Lines Matching refs:pinfo

41 		    struct tc_rsvp_pinfo *pinfo, int dir, int family)
46 struct tc_rsvp_gpi *pi = dir ? &pinfo->dpi : &pinfo->spi;
86 if (pinfo->protocol == 0)
87 pinfo->protocol = IPPROTO_AH;
99 if (pinfo->protocol == 0)
100 pinfo->protocol = IPPROTO_ESP;
176 struct tc_rsvp_pinfo pinfo = {};
199 if (get_addr_and_pi(&argc, &argv, &addr, &pinfo, 1, family)) {
204 if (pinfo.dpi.mask || pinfo.protocol)
212 if (get_addr_and_pi(&argc, &argv, &addr, &pinfo, 0, family)) {
217 if (pinfo.spi.mask || pinfo.protocol)
229 pinfo.protocol = num;
249 pinfo.tunnelid = tid;
268 pinfo.tunnelhdr = tid;
296 addattr_l(n, 4096, TCA_RSVP_PINFO, &pinfo, sizeof(pinfo));
332 struct tc_rsvp_pinfo *pinfo = NULL;
343 if (RTA_PAYLOAD(tb[TCA_RSVP_PINFO]) < sizeof(*pinfo))
346 pinfo = RTA_DATA(tb[TCA_RSVP_PINFO]);
351 if (!pinfo || pinfo->tunnelhdr == 0)
354 fprintf(f, "tunnel %d skip %d ", rta_getattr_u32(tb[TCA_RSVP_CLASSID]), pinfo->tunnelhdr);
355 } else if (pinfo && pinfo->tunnelhdr)
356 fprintf(f, "tunnel [BAD] skip %d ", pinfo->tunnelhdr);
366 if (pinfo && pinfo->dpi.mask) {
368 fprintf(f, "%s ", sprint_spi(&pinfo->dpi, 1, b2));
372 if (pinfo && pinfo->dpi.mask) {
374 fprintf(f, "session [NONE]%s ", sprint_spi(&pinfo->dpi, 1, b2));
379 if (pinfo && pinfo->protocol) {
381 fprintf(f, "ipproto %s ", inet_proto_n2a(pinfo->protocol, b1, sizeof(b1)));
383 if (pinfo && pinfo->tunnelid)
384 fprintf(f, "tunnelid %d ", pinfo->tunnelid);
394 if (pinfo && pinfo->spi.mask) {
396 fprintf(f, "%s ", sprint_spi(&pinfo->spi, 0, b2));
399 } else if (pinfo && pinfo->spi.mask) {
401 fprintf(f, "sender [NONE]%s ", sprint_spi(&pinfo->spi, 0, b2));