D | ipvrf.c | 55 char *vrf, *end; in vrf_identify() local 70 vrf = strstr(buf, "/vrf/"); in vrf_identify() 71 if (vrf) { in vrf_identify() 72 vrf += 5; /* skip past "/vrf/" */ in vrf_identify() 73 end = strchr(vrf, '\n'); in vrf_identify() 77 strlcpy(name, vrf, len); in vrf_identify() 89 char vrf[32]; in ipvrf_identify() local 100 rc = vrf_identify(pid, vrf, sizeof(vrf)); in ipvrf_identify() 102 if (vrf[0] != '\0') in ipvrf_identify() 103 printf("%s\n", vrf); in ipvrf_identify() [all …]
|