Skip to content

mctpd method_net_learn_endpoint creates endpoints even when the endpoints don't response #112

@jinliangw

Description

@jinliangw

mctp version "ef0d2dc8cfd520fda58c48e45ea285f07fff7680".

There is no error check between:

	query_peer_properties(peer);

	publish_peer(peer);
Sep 22 23:29:59  mctpd[1004]: Adding route to peer eid 9 net 1 phys physaddr if 18 hw len 0 0x state 0
Sep 22 23:29:59  mctpd[1004]: physaddr if 18 hw len 0 0x requested allocation of pool size = 4
Sep 22 23:29:59  mctpd[1004]: Adding route to peer eid 9 net 1 phys physaddr if 18 hw len 0 0x state 0
Sep 22 23:29:59  mctpd[1004]: mctpd: emitting endpoint add: /au/com/codeconstruct/mctp1/networks/1/endpoints/9
Sep 22 23:29:59  mctpd[1004]: Allocation accepted
Sep 22 23:29:59  mctpd[1004]: Allocated size of 4, starting from EID 10
Sep 22 23:29:59  mctpd[1004]: Bridge (eid 9) assigned pool [10, 13], size 4

# busctl call au.com.codeconstruct.MCTP1 /au/com/codeconstruct/mctp1/networks/1 au.com.codeconstruct.MCTP.Network1 LearnEndpoint y 9
sb "/au/com/codeconstruct/mctp1/networks/1/endpoints/9" false
# busctl call au.com.codeconstruct.MCTP1 /au/com/codeconstruct/mctp1/networks/1 au.com.codeconstruct.MCTP.Network1 LearnEndpoint y 10
sb "/au/com/codeconstruct/mctp1/networks/1/endpoints/10" true
# busctl call au.com.codeconstruct.MCTP1 /au/com/codeconstruct/mctp1/networks/1 au.com.codeconstruct.MCTP.Network1 LearnEndpoint y 11
sb "/au/com/codeconstruct/mctp1/networks/1/endpoints/11" true
# busctl call au.com.codeconstruct.MCTP1 /au/com/codeconstruct/mctp1/networks/1 au.com.codeconstruct.MCTP.Network1 LearnEndpoint y 12
sb "/au/com/codeconstruct/mctp1/networks/1/endpoints/12" true
# busctl call au.com.codeconstruct.MCTP1 /au/com/codeconstruct/mctp1/networks/1 au.com.codeconstruct.MCTP.Network1 LearnEndpoint y 13
sb "/au/com/codeconstruct/mctp1/networks/1/endpoints/13" true
# busctl call au.com.codeconstruct.MCTP1 /au/com/codeconstruct/mctp1/networks/1 au.com.codeconstruct.MCTP.Network1 LearnEndpoint y 14
sb "/au/com/codeconstruct/mctp1/networks/1/endpoints/14" true
# busctl call au.com.codeconstruct.MCTP1 /au/com/codeconstruct/mctp1/networks/1 au.com.codeconstruct.MCTP.Network1 LearnEndpoint y 15
sb "/au/com/codeconstruct/mctp1/networks/1/endpoints/15" true
# busctl call au.com.codeconstruct.MCTP1 /au/com/codeconstruct/mctp1/networks/1 au.com.codeconstruct.MCTP.Network1 LearnEndpoint y 16
sb "/au/com/codeconstruct/mctp1/networks/1/endpoints/16" true

Sep 22 23:33:19  mctpd[1004]: mctpd: endpoint_query_addr: receive timed out from sockaddr_mctp_ext eid 10 net 1 type 0x00 if 0 hw len 0 0x
Sep 22 23:33:19  mctpd[1004]: mctpd: Error getting endpoint types for peer eid 10 net 1 phys physaddr if 0 hw len 0 0x state 0. Ignoring error -110 Connection timed out
Sep 22 23:33:20  mctpd[1004]: mctpd: endpoint_query_addr: receive timed out from sockaddr_mctp_ext eid 10 net 1 type 0x00 if 0 hw len 0 0x
Sep 22 23:33:20  mctpd[1004]: mctpd: Error getting UUID for peer eid 10 net 1 phys physaddr if 0 hw len 0 0x state 0. Ignoring error -110 Connection timed out
Sep 22 23:33:20  mctpd[1004]: mctpd: emitting endpoint add: /au/com/codeconstruct/mctp1/networks/1/endpoints/10
Sep 22 23:33:22  mctpd[1004]: mctpd: endpoint_query_addr: receive timed out from sockaddr_mctp_ext eid 11 net 1 type 0x00 if 0 hw len 0 0x
Sep 22 23:33:22  mctpd[1004]: mctpd: Error getting endpoint types for peer eid 11 net 1 phys physaddr if 0 hw len 0 0x state 0. Ignoring error -110 Connection timed out
Sep 22 23:33:23  mctpd[1004]: mctpd: endpoint_query_addr: receive timed out from sockaddr_mctp_ext eid 11 net 1 type 0x00 if 0 hw len 0 0x
Sep 22 23:33:23  mctpd[1004]: mctpd: Error getting UUID for peer eid 11 net 1 phys physaddr if 0 hw len 0 0x state 0. Ignoring error -110 Connection timed out
Sep 22 23:33:23  mctpd[1004]: mctpd: emitting endpoint add: /au/com/codeconstruct/mctp1/networks/1/endpoints/11
Sep 22 23:33:25  mctpd[1004]: mctpd: endpoint_query_addr: receive timed out from sockaddr_mctp_ext eid 12 net 1 type 0x00 if 0 hw len 0 0x
Sep 22 23:33:25  mctpd[1004]: mctpd: Error getting endpoint types for peer eid 12 net 1 phys physaddr if 0 hw len 0 0x state 0. Ignoring error -110 Connection timed out
Sep 22 23:33:26  mctpd[1004]: mctpd: endpoint_query_addr: receive timed out from sockaddr_mctp_ext eid 12 net 1 type 0x00 if 0 hw len 0 0x
Sep 22 23:33:26  mctpd[1004]: mctpd: Error getting UUID for peer eid 12 net 1 phys physaddr if 0 hw len 0 0x state 0. Ignoring error -110 Connection timed out
Sep 22 23:33:26  mctpd[1004]: mctpd: emitting endpoint add: /au/com/codeconstruct/mctp1/networks/1/endpoints/12
Sep 22 23:33:28  mctpd[1004]: mctpd: endpoint_query_addr: receive timed out from sockaddr_mctp_ext eid 13 net 1 type 0x00 if 0 hw len 0 0x
Sep 22 23:33:28  mctpd[1004]: mctpd: Error getting endpoint types for peer eid 13 net 1 phys physaddr if 0 hw len 0 0x state 0. Ignoring error -110 Connection timed out
Sep 22 23:33:28  mctpd[1004]: mctpd: endpoint_query_addr: receive timed out from sockaddr_mctp_ext eid 13 net 1 type 0x00 if 0 hw len 0 0x
Sep 22 23:33:28  mctpd[1004]: mctpd: Error getting UUID for peer eid 13 net 1 phys physaddr if 0 hw len 0 0x state 0. Ignoring error -110 Connection timed out
Sep 22 23:33:28  mctpd[1004]: mctpd: emitting endpoint add: /au/com/codeconstruct/mctp1/networks/1/endpoints/13
Sep 22 23:33:30  mctpd[1004]: mctpd: endpoint_query_addr: sendto(sockaddr_mctp_ext eid 14 net 1 type 0x00 if 0 hw len 0 0x) 2 bytes failed. No route to host
Sep 22 23:33:30  mctpd[1004]: mctpd: Error getting endpoint types for peer eid 14 net 1 phys physaddr if 0 hw len 0 0x state 0. Ignoring error -113 No route to host
Sep 22 23:33:30  mctpd[1004]: mctpd: endpoint_query_addr: sendto(sockaddr_mctp_ext eid 14 net 1 type 0x00 if 0 hw len 0 0x) 2 bytes failed. No route to host
Sep 22 23:33:30  mctpd[1004]: mctpd: Error getting UUID for peer eid 14 net 1 phys physaddr if 0 hw len 0 0x state 0. Ignoring error -113 No route to host
Sep 22 23:33:30  mctpd[1004]: mctpd: emitting endpoint add: /au/com/codeconstruct/mctp1/networks/1/endpoints/14
Sep 22 23:33:33  mctpd[1004]: mctpd: endpoint_query_addr: sendto(sockaddr_mctp_ext eid 15 net 1 type 0x00 if 0 hw len 0 0x) 2 bytes failed. No route to host
Sep 22 23:33:33  mctpd[1004]: mctpd: Error getting endpoint types for peer eid 15 net 1 phys physaddr if 0 hw len 0 0x state 0. Ignoring error -113 No route to host
Sep 22 23:33:33  mctpd[1004]: mctpd: endpoint_query_addr: sendto(sockaddr_mctp_ext eid 15 net 1 type 0x00 if 0 hw len 0 0x) 2 bytes failed. No route to host
Sep 22 23:33:33  mctpd[1004]: mctpd: Error getting UUID for peer eid 15 net 1 phys physaddr if 0 hw len 0 0x state 0. Ignoring error -113 No route to host
Sep 22 23:33:33  mctpd[1004]: mctpd: emitting endpoint add: /au/com/codeconstruct/mctp1/networks/1/endpoints/15
Sep 22 23:33:35  mctpd[1004]: mctpd: endpoint_query_addr: sendto(sockaddr_mctp_ext eid 16 net 1 type 0x00 if 0 hw len 0 0x) 2 bytes failed. No route to host
Sep 22 23:33:35  mctpd[1004]: mctpd: Error getting endpoint types for peer eid 16 net 1 phys physaddr if 0 hw len 0 0x state 0. Ignoring error -113 No route to host
Sep 22 23:33:35  mctpd[1004]: mctpd: endpoint_query_addr: sendto(sockaddr_mctp_ext eid 16 net 1 type 0x00 if 0 hw len 0 0x) 2 bytes failed. No route to host
Sep 22 23:33:35  mctpd[1004]: mctpd: Error getting UUID for peer eid 16 net 1 phys physaddr if 0 hw len 0 0x state 0. Ignoring error -113 No route to host
Sep 22 23:33:35  mctpd[1004]: mctpd: emitting endpoint add: /au/com/codeconstruct/mctp1/networks/1/endpoints/16

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions