{"id":19338184,"url":"https://github.com/jserv/nstack","last_synced_at":"2025-04-05T21:09:13.235Z","repository":{"id":63170110,"uuid":"132707346","full_name":"jserv/nstack","owner":"jserv","description":"Userspace TCP/IP stack for Linux","archived":false,"fork":false,"pushed_at":"2023-08-05T00:31:27.000Z","size":105,"stargazers_count":330,"open_issues_count":1,"forks_count":66,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-03-29T20:06:29.936Z","etag":null,"topics":["linux","network-stack","networking","tcp-ip"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jserv.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}},"created_at":"2018-05-09T05:45:12.000Z","updated_at":"2025-03-13T10:03:00.000Z","dependencies_parsed_at":"2023-01-22T08:30:18.142Z","dependency_job_id":"88ae499c-564a-4fae-87d0-977a5eed385f","html_url":"https://github.com/jserv/nstack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jserv%2Fnstack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jserv%2Fnstack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jserv%2Fnstack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jserv%2Fnstack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jserv","download_url":"https://codeload.github.com/jserv/nstack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247399878,"owners_count":20932880,"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":["linux","network-stack","networking","tcp-ip"],"created_at":"2024-11-10T03:16:34.842Z","updated_at":"2025-04-05T21:09:13.209Z","avatar_url":"https://github.com/jserv.png","language":"C","readme":"# nstack\n\n## Overview\n\nnstack is a Linux userspace TCP/IP stack. It was constructed to meet the following goals:\n* Learn TCP/IP\n* Learn Linux systems/network programming\n* Learn Linux Socket API\n\nCurrent features:\n* One network interface and socket\n* Ethernet frame handling\n* ARP request/reply, simple caching\n* ICMP pings and replies\n* IPv4 packet handling, checksum\n* TCPv4 Handshake\n* TCP data transmission\n\n\n## Build and Test\n\n```shell\nmake\n```\n\nSet up test environment:\n```shell\nsudo tools/testenv.sh start\ntools/run.sh veth1\n```\n\nExecute `ping` inside test environment:\n```shell\ntools/ping_test.sh\n```\n\nExpected nstack messages:\n```\narp_gratuitous: Announce 10.0.0.2\nnstack_ingress_thread: Waiting for rx\nnstack_ingress_thread: Frame received!\nether_input: proto id: 0x800\nip_input: proto id: 0x1\nicmp_input: ICMP type: 8\nnstack_ingress_thread: tick\nnstack_ingress_thread: Waiting for rx\nnstack_ingress_thread: Frame received!\nether_input: proto id: 0x800\nip_input: proto id: 0x1\nicmp_input: ICMP type: 8\n```\n\nEnding the test environment:\n```shell\nsudo tools/testenv.sh stop\n```\n\n# Licensing\n\nnstack is freely redistributable under the two-clause BSD License.\nUse of this source code is governed by a BSD-style license that can be found\nin the `LICENSE` file.\n\n# Reference\n\n* [Level-IP](https://github.com/saminiir/level-ip) and [informative blog](http://www.saminiir.com/)\n* [Linux kernel TCP/IP stack](https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/net/ipv4)\n* [picoTCP](https://github.com/tass-belgium/picotcp)\n* [tapip](https://github.com/chobits/tapip)\n","funding_links":[],"categories":["C"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjserv%2Fnstack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjserv%2Fnstack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjserv%2Fnstack/lists"}