Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Agent]: fix typo for socket #4492

Merged
merged 3 commits into from Oct 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions agent/src/ebpf/user/ctrl_tracer.c
Expand Up @@ -202,7 +202,7 @@ static inline int msg_send(int clt_fd,
res = sendn(clt_fd, data, data_len, MSG_NOSIGNAL);
if (data_len != res) {
fprintf(stderr,
"[%s] scoket msg body send error -- %d/%d sent\n",
"[%s] socket msg body send error -- %d/%d sent\n",
__func__, res, data_len);
return -1;
}
Expand Down Expand Up @@ -308,7 +308,7 @@ static int sockopt_send(enum sockopt_type type, sockoptid_t cmd, const void *in,
clt_fd = socket(PF_UNIX, SOCK_STREAM, 0);
res = connect(clt_fd, (struct sockaddr *)&clt_addr, sizeof(clt_addr));
if (-1 == res) {
fprintf(stderr, "[%s] scoket msg connection error: %s\n",
fprintf(stderr, "[%s] socket msg connection error: %s\n",
__func__, strerror(errno));
free(msg);
return -1;
Expand Down