Home
last modified time | relevance | path

Searched refs:can_ifindex (Results 1 – 7 of 7) sorted by relevance

/Linux-v6.1/net/can/
Draw.c64 #define RAW_MIN_NAMELEN CAN_REQUIRED_SIZE(struct sockaddr_can, can_ifindex)
173 addr->can_ifindex = skb->dev->ifindex; in raw_rcv()
436 if (ro->bound && addr->can_ifindex == ro->ifindex) in raw_bind()
439 if (addr->can_ifindex) { in raw_bind()
442 dev = dev_get_by_index(sock_net(sk), addr->can_ifindex); in raw_bind()
512 addr->can_ifindex = ro->ifindex; in raw_getname()
812 ifindex = addr->can_ifindex; in raw_sendmsg()
Dbcm.c89 #define BCM_MIN_NAMELEN CAN_REQUIRED_SIZE(struct sockaddr_can, can_ifindex)
367 addr->can_ifindex = op->rx_ifindex; in bcm_send_to_user()
1328 ifindex = addr->can_ifindex; in bcm_sendmsg()
1601 if (addr->can_ifindex) { in bcm_connect()
1604 dev = dev_get_by_index(net, addr->can_ifindex); in bcm_connect()
Disotp.c277 addr->can_ifindex = skb->dev->ifindex; in isotp_rcv_skb()
1250 if (!addr->can_ifindex) in isotp_bind()
1266 dev = dev_get_by_index(net, addr->can_ifindex); in isotp_bind()
1330 addr->can_ifindex = so->ifindex; in isotp_getname()
/Linux-v6.1/net/can/j1939/
Dsocket.c421 if (!addr->can_ifindex) in j1939_sk_sanity_check()
454 if (jsk->ifindex != addr->can_ifindex) { in j1939_sk_bind()
466 ndev = dev_get_by_index(net, addr->can_ifindex); in j1939_sk_bind()
492 jsk->ifindex = addr->can_ifindex; in j1939_sk_bind()
542 if (jsk->ifindex != addr->can_ifindex) { in j1939_sk_connect()
578 addr->can_ifindex = jsk->ifindex; in j1939_sk_sock2sockaddr_can()
841 paddr->can_ifindex = skb->skb_iif; in j1939_sk_recvmsg()
1229 if (addr->can_ifindex && addr->can_ifindex != ifindex) { in j1939_sk_sendmsg()
/Linux-v6.1/include/uapi/linux/
Dcan.h243 int can_ifindex; member
/Linux-v6.1/Documentation/networking/
Dj1939.rst205 int can_ifindex;
221 ``can_family`` & ``can_ifindex`` serve the same purpose as for other SocketCAN sockets.
365 .can_ifindex = if_nametoindex("can0"),
439 .can_ifindex = if_nametoindex("can0"),
Dcan.rst274 int can_ifindex;
315 addr.can_ifindex = ifr.ifr_ifindex;
355 (addr.can_ifindex = 0) it is recommended to use recvfrom(2) if the
369 ifr.ifr_ifindex = addr.can_ifindex;
380 addr.can_ifindex = ifr.ifr_ifindex;
765 addr.can_ifindex = ifr.ifr_ifindex;
779 socket messages the originating CAN interface is provided in can_ifindex.