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;
85 if (pinfo->protocol == 0)
86 pinfo->protocol = IPPROTO_AH;
97 if (pinfo->protocol == 0)
98 pinfo->protocol = IPPROTO_ESP;
172 struct tc_rsvp_pinfo pinfo;
178 memset(&pinfo, 0, sizeof(pinfo));
198 if (get_addr_and_pi(&argc, &argv, &addr, &pinfo, 1, family)) {
203 if (pinfo.dpi.mask || pinfo.protocol)
210 if (get_addr_and_pi(&argc, &argv, &addr, &pinfo, 0, family)) {
215 if (pinfo.spi.mask || pinfo.protocol)
226 pinfo.protocol = num;
244 pinfo.tunnelid = tid;
262 pinfo.tunnelhdr = tid;
283 addattr_l(n, 4096, TCA_RSVP_PINFO, &pinfo, sizeof(pinfo));
319 struct tc_rsvp_pinfo *pinfo = NULL;
330 if (RTA_PAYLOAD(tb[TCA_RSVP_PINFO]) < sizeof(*pinfo))
333 pinfo = RTA_DATA(tb[TCA_RSVP_PINFO]);
338 if (!pinfo || pinfo->tunnelhdr == 0)
341 fprintf(f, "tunnel %d skip %d ", *(__u32*)RTA_DATA(tb[TCA_RSVP_CLASSID]), pinfo->tunnelhdr);
342 } else if (pinfo && pinfo->tunnelhdr)
343 fprintf(f, "tunnel [BAD] skip %d ", pinfo->tunnelhdr);
352 if (pinfo && pinfo->dpi.mask) {
354 fprintf(f, "%s ", sprint_spi(&pinfo->dpi, 1, b2));
358 if (pinfo && pinfo->dpi.mask) {
360 fprintf(f, "session [NONE]%s ", sprint_spi(&pinfo->dpi, 1, b2));
365 if (pinfo && pinfo->protocol) {
367 fprintf(f, "ipproto %s ", inet_proto_n2a(pinfo->protocol, b1, sizeof(b1)));
369 if (pinfo && pinfo->tunnelid)
370 fprintf(f, "tunnelid %d ", pinfo->tunnelid);
379 if (pinfo && pinfo->spi.mask) {
381 fprintf(f, "%s ", sprint_spi(&pinfo->spi, 0, b2));
384 } else if (pinfo && pinfo->spi.mask) {
386 fprintf(f, "sender [NONE]%s ", sprint_spi(&pinfo->spi, 0, b2));