Lines Matching defs:encap
46 enum l2tp_encap_type encap;
111 addattr16(&req.n, 1024, L2TP_ATTR_ENCAP_TYPE, p->encap);
115 if (p->encap == L2TP_ENCAPTYPE_UDP) {
229 printf("Tunnel %u, encap %s\n",
231 p->encap == L2TP_ENCAPTYPE_UDP ? "UDP" :
232 p->encap == L2TP_ENCAPTYPE_IP ? "IP" : "??");
238 if (p->encap == L2TP_ENCAPTYPE_UDP)
290 p->encap = rta_getattr_u16(attrs[L2TP_ATTR_ENCAP_TYPE]);
489 fprintf(stderr, " [ encap { ip | udp } ]\n");
517 if (strcmp(*argv, "encap") == 0) {
520 p->encap = L2TP_ENCAPTYPE_IP;
522 p->encap = L2TP_ENCAPTYPE_UDP;
657 if (p.encap == L2TP_ENCAPTYPE_UDP) {