Skip to content

Commit

Permalink
add l4proto for IPV6_SERVSOCK
Browse files Browse the repository at this point in the history
Signed-off-by: sanyangji <songyujie@zju.edu.cn>
  • Loading branch information
sanyangji committed Mar 27, 2023
1 parent e9ce59e commit 2a1910c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions probe/src/cgo/kindling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ int getEvent(void** pp_kindling_event) {
p_kindling_event->context.fdInfo.dport = fdInfo->m_sockinfo.m_ipv6info.m_fields.m_dport;
break;
case SCAP_FD_IPV6_SERVSOCK:
p_kindling_event->context.fdInfo.protocol = get_protocol(fdInfo->get_l4proto());
p_kindling_event->context.fdInfo.role = fdInfo->is_role_server();
memcpy(p_kindling_event->context.fdInfo.dip, fdInfo->m_sockinfo.m_ipv6serverinfo.m_ip.m_b, sizeof(fdInfo->m_sockinfo.m_ipv6serverinfo.m_ip.m_b));
p_kindling_event->context.fdInfo.dport = fdInfo->m_sockinfo.m_ipv6serverinfo.m_port;
Expand Down

0 comments on commit 2a1910c

Please sign in to comment.