Skip to content

Commit

Permalink
ON-13142: update calls to ci_rx_pkt_ifindex in cloud profile
Browse files Browse the repository at this point in the history
  • Loading branch information
jfeather-amd committed Jan 26, 2024
1 parent 8a9a378 commit d330f07
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/transport/ip/tcp_rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -2916,7 +2916,7 @@ static void handle_rx_listen(ci_netif* netif, ci_tcp_socket_listen* tls,
sock_cp.laddr = RX_PKT_DADDR(pkt);
#if CI_CFG_IPV6
if( CI_IPX_IS_LINKLOCAL(sock_cp.laddr) &&
(sock_cp.so_bindtodevice = ci_rx_pkt_ifindex(netif, pkt)) == 0 ) {
(sock_cp.so_bindtodevice = ci_rx_pkt_ifindex(netif, pkt, 0)) == 0 ) {
LOG_U(ci_log("%s: no interface matching link-local address " IPX_FMT
" found", __FUNCTION__, IPX_ARG(AF_IP_L3(sock_cp.laddr))));
goto freepkt_out;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/transport/ip/tcp_synrecv.c
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ int ci_tcp_listenq_try_promote(ci_netif* netif, ci_tcp_socket_listen* tls,
TS_IPX_TCP(ts)->tcp_check_be16 = 0;

if( CI_IPX_IS_LINKLOCAL(ts->s.cp.laddr) &&
(ts->s.cp.so_bindtodevice = ci_rx_pkt_ifindex(netif, pkt)) == 0 ) {
(ts->s.cp.so_bindtodevice = ci_rx_pkt_ifindex(netif, pkt, 0)) == 0 ) {
#if CI_CFG_FD_CACHING
if( ci_tcp_is_cached(ts) )
oo_p_dllink_add(netif, cache_list,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/transport/ip/udp_recv.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ ci_inline void ci_udp_recvmsg_fill_msghdr(ci_netif* ni, ci_msghdr* msg,

#if CI_CFG_IPV6
if( CI_IPX_IS_LINKLOCAL(saddr) )
s->cp.so_bindtodevice = ci_rx_pkt_ifindex(ni, pkt);
s->cp.so_bindtodevice = ci_rx_pkt_ifindex(ni, pkt, 0);
#endif

ci_addr_to_user(CI_SA(msg->msg_name), &msg->msg_namelen, af, s->domain,
Expand Down

0 comments on commit d330f07

Please sign in to comment.