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

Layer3 #195

Closed
fujiapple852 opened this issue May 27, 2022 · 0 comments · Fixed by #196
Closed

Layer3 #195

fujiapple852 opened this issue May 27, 2022 · 0 comments · Fixed by #196
Milestone

Comments

@fujiapple852
Copy link
Owner

fujiapple852 commented May 27, 2022

Rework the network code to use layer 3 (IP) via raw sockets.

The following raw sockets are required:

Family Direction Tracer Socket Field
IPv4 Send ICMP+UDP socket(AF_INET, SOCK_RAW, IPPROTO_RAW) ip4_send_socket
IPv4 Recieve ICMP+UDP socket(AF_INET, SOCK_RAW, IPPROTO_ICMP) ip4_recv_socket
IPv6 Send ICMP socket(AF_INET6, SOCK_RAW, IPPROTO_ICMPV6) icmp6_send_socket
IPv6 Send UDP socket(AF_INET6, SOCK_RAW, IPPROTO_UDP) udp6_send_socket
IPv6 Recieve ICMP+UDP socket(AF_INET6, SOCK_RAW, IPPROTO_ICMPV6) ip6_recv_socket
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant