Lines Matching refs:proto
17 static inline int sepol2ipproto(sepol_handle_t * handle, int proto)
20 switch (proto) {
30 ERR(handle, "unsupported protocol %u", proto);
35 static inline int ipproto2sepol(sepol_handle_t * handle, int proto)
38 switch (proto) {
48 ERR(handle, "invalid protocol %u " "found in policy", proto);
66 int proto = sepol_port_get_proto(data);
73 tmp_proto = sepol2ipproto(handle, proto);
110 low, high, sepol_port_get_proto_str(proto));
119 int proto = port->u.port.protocol;
131 rec_proto = ipproto2sepol(handle, proto);
183 int low, high, proto;
185 sepol_port_key_unpack(key, &low, &high, &proto);
186 proto_str = sepol_port_get_proto_str(proto);
187 proto = sepol2ipproto(handle, proto);
188 if (proto < 0)
197 if (proto == proto2 && low2 == low && high2 == high) {
221 int low, high, proto;
223 sepol_port_key_unpack(key, &low, &high, &proto);
224 proto_str = sepol_port_get_proto_str(proto);
225 proto = sepol2ipproto(handle, proto);
226 if (proto < 0)
235 if (proto == proto2 && low2 == low && high2 == high) {
261 int low, high, proto;
264 sepol_port_key_unpack(key, &low, &high, &proto);
265 proto_str = sepol_port_get_proto_str(proto);
266 proto = sepol2ipproto(handle, proto);
267 if (proto < 0)