Lines Matching refs:proto

108 		conn, conn->proto, conn->family, conn->flags,  in conn_register_debug()
158 uint16_t proto, uint8_t family, in conn_find_handler() argument
171 if (conn->proto != proto) { in conn_find_handler()
328 int net_conn_register(uint16_t proto, uint8_t family, in net_conn_register() argument
343 proto, family, remote_addr, local_addr, in net_conn_register()
410 conn->proto = proto; in net_conn_register()
582 struct net_conn *conn, uint8_t proto) in conn_raw_socket() argument
586 if (proto == ETH_P_ALL) { in conn_raw_socket()
598 conn->proto != ETH_P_ALL && in conn_raw_socket()
599 conn->proto != net_pkt_ll_proto_type(pkt)) { in conn_raw_socket()
622 net_stats_update_per_proto_drop(pkt_iface, proto); in conn_raw_socket()
628 net_stats_update_per_proto_drop(pkt_iface, proto); in conn_raw_socket()
631 net_stats_update_per_proto_recv(pkt_iface, proto); in conn_raw_socket()
639 uint8_t proto, in net_conn_input() argument
652 if (IS_ENABLED(CONFIG_NET_UDP) && proto == IPPROTO_UDP) { in net_conn_input()
655 } else if (IS_ENABLED(CONFIG_NET_TCP) && proto == IPPROTO_TCP) { in net_conn_input()
667 if (proto != ETH_P_ALL && proto != IPPROTO_RAW) { in net_conn_input()
671 if (proto != CAN_RAW) { in net_conn_input()
680 " family %d", net_proto2str(net_pkt_family(pkt), proto), pkt, in net_conn_input()
749 if (conn->proto != proto) { in net_conn_input()
756 if (proto != ETH_P_ALL && proto != IPPROTO_RAW) { in net_conn_input()
776 if (proto == ETH_P_ALL) { in net_conn_input()
782 if ((proto == ETH_P_ALL && conn->proto != IPPROTO_RAW) || in net_conn_input()
783 conn->proto == proto) { in net_conn_input()
784 enum net_verdict ret = conn_raw_socket(pkt, conn, proto); in net_conn_input()
868 net_stats_update_per_proto_drop(pkt_iface, proto); in net_conn_input()
871 net_stats_update_per_proto_recv(pkt_iface, proto); in net_conn_input()
924 net_stats_update_per_proto_recv(pkt_iface, proto); in net_conn_input()
933 if (IS_ENABLED(CONFIG_NET_TCP) && proto == IPPROTO_TCP && in net_conn_input()
943 net_stats_update_per_proto_drop(pkt_iface, proto); in net_conn_input()