https://github.com/joexbayer/networking_c
MacOS TAP Ethernet interface that responds ICMP, UDP over IPv4.
https://github.com/joexbayer/networking_c
networking
Last synced: 3 months ago
JSON representation
MacOS TAP Ethernet interface that responds ICMP, UDP over IPv4.
- Host: GitHub
- URL: https://github.com/joexbayer/networking_c
- Owner: joexbayer
- Created: 2021-06-23T12:16:23.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-07-18T17:38:50.000Z (almost 4 years ago)
- Last Synced: 2025-02-09T12:25:45.156Z (5 months ago)
- Topics: networking
- Language: C
- Homepage:
- Size: 1.22 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Networking code for macOS with Tun/Tap
## Using TAP as a network interface to read and write packets.
### UDP
### ARP

### ICMP

Currently working:
Parsing Ethernett Packets.
Accepting and parsing IPv4 packets.
Calculate checksum based on RFC 1071 #4.1.
Using a sk_buff.
Configurable net device with IP and MAC.
Parsing ICMP and responding ping.
Printing UDP messages from netcat.
Parsing ARP, sending ARP reply and saving ARP cache
For TAP on MacOS: TunTap
Inspired by:
Linux Network Stack and
Networking History