{"id":18021391,"url":"https://github.com/ianseyler/minip","last_synced_at":"2025-03-26T22:30:53.320Z","repository":{"id":21585501,"uuid":"24905519","full_name":"IanSeyler/minIP","owner":"IanSeyler","description":"A minimalist IP stack written in ANSI C.","archived":false,"fork":false,"pushed_at":"2023-11-11T17:11:23.000Z","size":81,"stargazers_count":52,"open_issues_count":0,"forks_count":14,"subscribers_count":15,"default_branch":"master","last_synced_at":"2025-03-22T14:22:17.998Z","etag":null,"topics":["baremetal","c"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IanSeyler.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-10-07T18:38:35.000Z","updated_at":"2024-08-24T14:18:17.000Z","dependencies_parsed_at":"2024-10-30T06:30:09.770Z","dependency_job_id":null,"html_url":"https://github.com/IanSeyler/minIP","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IanSeyler%2FminIP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IanSeyler%2FminIP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IanSeyler%2FminIP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IanSeyler%2FminIP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IanSeyler","download_url":"https://codeload.github.com/IanSeyler/minIP/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245747499,"owners_count":20665800,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["baremetal","c"],"created_at":"2024-10-30T06:09:52.006Z","updated_at":"2025-03-26T22:30:53.053Z","avatar_url":"https://github.com/IanSeyler.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"minIP\n========\n\nA minimalist IP stack written in ANSI C.\n\nThis needs to be run on a Linux machine with root access - ideally on a network interface that does not have an IP address already associated with it.\n\nThis also runs on top of the BareMetal exokernel.\n\n\nGoals\n--------\n\nProvide enough of a stack to serve a simple static webpage.\n\n\nBuilding\n--------\n\nLinux:\n\n\tmake\n\nBareMetal:\n\nThis version uses hardcoded IP addresses. Make sure to update them if needed in main().\n\n\t./build.sh\n\n\nUsage\n--------\n\nLinux:\n\n\t./minIP eth1 192.168.0.99 255.255.255.0 192.168.0.1\n\nBareMetal:\n\n\tminIP.app\n\n\nWhy\n--------\n\nIf this can be done in Python (see [teeceepee](https://github.com/jvns/teeceepee) and its [blog post](http://jvns.ca/blog/2014/08/12/what-happens-if-you-write-a-tcp-stack-in-python/)), then it can be done in C!\n\nAlso, its a great proof of concept to learn the fundamentals in preparation for an x86-64 assembly re-write I plan on doing in the future.\n\n\nWhat works\n--------\n\nProtocol | Functional\n-----|-----\nARP | yes\nIP | partially\nICMP | yes\nTCP | partially\nUDP | no\nTCPv6 | no\nUDPv6 | no\n\n\nTodo\n--------\n- Resending dropped packets\n- Large packet support\n- Handling more than one incoming connection at once\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fianseyler%2Fminip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fianseyler%2Fminip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fianseyler%2Fminip/lists"}