Home
last modified time | relevance | path

Searched refs:can_addr (Results 1 – 3 of 3) sorted by relevance

/Zephyr-latest/samples/net/sockets/can/src/
Dmain.c76 struct sockaddr_can can_addr; in create_socket() local
85 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() local
121 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() local
193 can_addr.can_ifindex = net_if_get_by_iface(iface); in setup_socket()
194 can_addr.can_family = PF_CAN; in setup_socket()
[all …]
/Zephyr-latest/subsys/net/lib/sockets/
Dsockets_can.c192 struct sockaddr_can *can_addr = (struct sockaddr_can *)addr; in zcan_bind_ctx() local
200 iface = net_if_get_by_index(can_addr->can_ifindex); in zcan_bind_ctx()
229 struct sockaddr_can can_addr; in zcan_sendto_ctx() local
252 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()
/Zephyr-latest/subsys/net/ip/
Dnet_context.c768 struct sockaddr_can can_addr; in bind_default() local
782 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() local
1141 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 …]