Home | History | Annotate | Download | only in src

Lines Matching full:proto

11 static inline int sepol2ipproto(sepol_handle_t * handle, int proto)
14 switch (proto) {
20 ERR(handle, "unsupported protocol %u", proto);
25 static inline int ipproto2sepol(sepol_handle_t * handle, int proto)
28 switch (proto) {
34 ERR(handle, "invalid protocol %u " "found in policy", proto);
52 int proto = sepol_port_get_proto(data);
59 tmp_proto = sepol2ipproto(handle, proto);
96 low, high, sepol_port_get_proto_str(proto));
105 int proto = port->u.port.protocol;
117 rec_proto = ipproto2sepol(handle, proto);
170 int low, high, proto;
172 sepol_port_key_unpack(key, &low, &high, &proto);
173 proto_str = sepol_port_get_proto_str(proto);
174 proto = sepol2ipproto(handle, proto);
175 if (proto < 0)
184 if (proto == proto2 && low2 == low && high2 == high) {
208 int low, high, proto;
210 sepol_port_key_unpack(key, &low, &high, &proto);
211 proto_str = sepol_port_get_proto_str(proto);
212 proto = sepol2ipproto(handle, proto);
213 if (proto < 0)
222 if (proto == proto2 && low2 == low && high2 == high) {
248 int low, high, proto;
251 sepol_port_key_unpack(key, &low, &high, &proto);
252 proto_str = sepol_port_get_proto_str(proto);
253 proto = sepol2ipproto(handle, proto);
254 if (proto < 0)