Lines Matching refs:proto
99 int xfrm_xfrmproto_is_ipsec(__u8 proto)
101 return (proto == IPPROTO_ESP ||
102 proto == IPPROTO_AH ||
103 proto == IPPROTO_COMP);
106 int xfrm_xfrmproto_is_ro(__u8 proto)
108 return (proto == IPPROTO_ROUTING ||
109 proto == IPPROTO_DSTOPTS);
140 const char *strxf_xfrmproto(__u8 proto)
150 if (t->t_type == proto)
154 sprintf(str, "%u", proto);
247 const char *strxf_proto(__u8 proto)
253 pp = getprotobynumber(proto);
257 sprintf(buf, "%u", proto);
304 fprintf(fp, "proto %s ", strxf_xfrmproto(id->proto));
469 if (sel->proto)
470 fprintf(fp, "proto %s ", strxf_proto(sel->proto));
471 switch (sel->proto) {
834 int force_spi = xfrm_xfrmproto_is_ipsec(xsinfo->id.proto);
1039 } else if (strcmp(*argv, "proto") == 0) {
1046 invarg("\"XFRM-PROTO\" is invalid", *argv);
1048 id->proto = (__u8)ret;
1077 if (loose == 0 && id->proto == 0)
1078 missarg("XFRM-PROTO");
1157 if (strcmp(*argv, "proto") == 0) {
1171 invarg("\"PROTO\" is invalid", *argv);
1174 sel->proto = upspec;
1266 switch (sel->proto) {
1273 fprintf(stderr, "\"sport\" and \"dport\" are invalid with proto=%s\n", strxf_proto(sel->proto));
1278 switch (sel->proto) {
1284 fprintf(stderr, "\"type\" and \"code\" are invalid with proto=%s\n", strxf_proto(sel->proto));
1289 switch (sel->proto) {
1293 fprintf(stderr, "\"key\" is invalid with proto=%s\n", strxf_proto(sel->proto));