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

UDP Support #6

Merged
merged 38 commits into from
Feb 2, 2021
Merged

UDP Support #6

merged 38 commits into from
Feb 2, 2021

Conversation

yuuki
Copy link
Owner

@yuuki yuuki commented Jan 28, 2021

UDP client

$ sudo ./conntop
LADDR                     RADDR                     LPORT                PID        COMM                 CONNECTIONS
10.0.150.1                10.0.150.2                9200                 52358      connperf             0
10.0.150.1                10.0.150.2                9200                 52358      connperf             0
10.0.150.1                10.0.150.2                9200                 52358      connperf             0
127.0.0.1                 127.0.0.53                53                   440        ntpd                 0
127.0.0.53                127.0.0.1                 53                   383        systemd-resolve      0
127.0.0.1                 127.0.0.53                53                   440        ntpd                 0
127.0.0.53                127.0.0.1                 53                   383        systemd-resolve      0
10.0.150.1                91.189.89.199             123                  440        ntpd                 0
127.0.0.1                 127.0.0.53                53                   440        ntpd                 0
127.0.0.53                127.0.0.1                 53                   383        systemd-resolve      0
10.0.150.1                91.189.89.198             123                  440        ntpd                 0

UDP server

LADDR                     RADDR                     LPORT                PID        COMM                 CONNECTIONS
$ sudo ./conntop
10.0.150.2                10.0.150.1                9200                 720        connperf             0
10.0.150.2                10.0.150.1                9200                 720        connperf             0
10.0.150.2                10.0.150.1                9200                 720        connperf             0
10.0.150.2                10.0.150.1                9200                 720        connperf             0
127.0.0.1                 127.0.0.53                53                   439        ntpd                 0
127.0.0.53                127.0.0.1                 53                   380        systemd-resolve      0
127.0.0.1                 127.0.0.53                53                   439        ntpd                 0
127.0.0.53                127.0.0.1                 53                   380        systemd-resolve      0
127.0.0.1                 127.0.0.53                53                   439        ntpd                 0
127.0.0.53                127.0.0.1                 53                   380        systemd-resolve      0

This reverts commit cd17fc2.
The method to pupulate MAP in kernel from user-space encountered an error of "trace type programs with run-time allocated hash maps are unsafe.
Switch to preallocated hash maps." by BPF verifier.
@yuuki yuuki merged commit 9a3659c into main Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant