Lines Matching defs:protocol
1143 static inline int default_protocol_stream(int protocol)
1145 return (protocol == IPPROTO_IP || protocol == IPPROTO_TCP ||
1146 protocol == IPPROTO_MPTCP);
1149 static inline int default_protocol_dgram(int protocol)
1151 return (protocol == IPPROTO_IP || protocol == IPPROTO_UDP);
1154 static inline u16 socket_type_to_security_class(int family, int type, int protocol)
1174 if (default_protocol_stream(protocol))
1176 else if (extsockclass && protocol == IPPROTO_SCTP)
1181 if (default_protocol_dgram(protocol))
1183 else if (extsockclass && (protocol == IPPROTO_ICMP ||
1184 protocol == IPPROTO_ICMPV6))
1195 switch (protocol) {
4284 *proto = ih->protocol;
4286 switch (ih->protocol) {
4492 * @family: protocol family
4585 int protocol, int kern)
4595 secclass = socket_type_to_security_class(family, type, protocol);
4604 int type, int protocol, int kern)
4609 u16 sclass = socket_type_to_security_class(family, type, protocol);
5083 if (family == PF_INET6 && skb->protocol == htons(ETH_P_IP))
5174 if (skb && skb->protocol == htons(ETH_P_IP))
5176 else if (skb && skb->protocol == htons(ETH_P_IPV6))
5272 if (family == PF_INET6 && skb->protocol == htons(ETH_P_IP))
5425 * SCTP protocol layer, the socket is already locked,
5432 * the SCTP protocol layer and is handled via
5527 if (family == PF_INET6 && skb->protocol == htons(ETH_P_IP))
5936 " message: protocol=%hu nlmsg_type=%hu sclass=%s"