Searched refs:can_addr (Results 1 – 3 of 3) sorted by relevance
76 struct sockaddr_can can_addr; in create_socket() local85 can_addr.can_ifindex = net_if_get_by_iface( in create_socket()87 can_addr.can_family = PF_CAN; in create_socket()89 ret = bind(fd, (struct sockaddr *)&can_addr, sizeof(can_addr)); in create_socket()109 struct sockaddr_can can_addr; in rx() local121 addr_len = sizeof(can_addr); in rx()124 0, (struct sockaddr *)&can_addr, &addr_len); in rx()173 struct sockaddr_can can_addr; in setup_socket() local193 can_addr.can_ifindex = net_if_get_by_iface(iface); in setup_socket()194 can_addr.can_family = PF_CAN; in setup_socket()[all …]
192 struct sockaddr_can *can_addr = (struct sockaddr_can *)addr; in zcan_bind_ctx() local200 iface = net_if_get_by_index(can_addr->can_ifindex); in zcan_bind_ctx()229 struct sockaddr_can can_addr; in zcan_sendto_ctx() local252 memset(&can_addr, 0, sizeof(can_addr)); in zcan_sendto_ctx()254 can_addr.can_ifindex = -1; in zcan_sendto_ctx()255 can_addr.can_family = AF_CAN; in zcan_sendto_ctx()257 dest_addr = (struct sockaddr *)&can_addr; in zcan_sendto_ctx()
768 struct sockaddr_can can_addr; in bind_default() local782 can_addr.can_ifindex = net_if_get_by_iface(iface); in bind_default()783 context->iface = can_addr.can_ifindex; in bind_default()789 can_addr.can_family = AF_CAN; in bind_default()791 return net_context_bind(context, (struct sockaddr *)&can_addr, in bind_default()792 sizeof(can_addr)); in bind_default()1134 struct sockaddr_can *can_addr = (struct sockaddr_can *)addr; in net_context_bind() local1141 if (can_addr->can_ifindex < 0) { in net_context_bind()1145 iface = net_if_get_by_index(can_addr->can_ifindex); in net_context_bind()1148 can_addr->can_ifindex); in net_context_bind()[all …]