{"id":18382369,"url":"https://github.com/li-plus/cs144","last_synced_at":"2025-04-11T20:45:41.342Z","repository":{"id":114149350,"uuid":"381974270","full_name":"li-plus/cs144","owner":"li-plus","description":"An elegant implementation for Stanford CS144 TCP Lab","archived":false,"fork":false,"pushed_at":"2022-08-02T15:37:28.000Z","size":787,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T23:41:58.443Z","etag":null,"topics":["network-stack","tcp","tcp-ip"],"latest_commit_sha":null,"homepage":"https://github.com/li-plus/cs144/blob/master/writeups/notes.md","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/li-plus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-07-01T09:09:43.000Z","updated_at":"2023-04-24T14:31:10.000Z","dependencies_parsed_at":"2023-07-18T16:30:51.390Z","dependency_job_id":null,"html_url":"https://github.com/li-plus/cs144","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/li-plus%2Fcs144","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/li-plus%2Fcs144/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/li-plus%2Fcs144/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/li-plus%2Fcs144/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/li-plus","download_url":"https://codeload.github.com/li-plus/cs144/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248480235,"owners_count":21110935,"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":["network-stack","tcp","tcp-ip"],"created_at":"2024-11-06T01:04:49.069Z","updated_at":"2025-04-11T20:45:41.320Z","avatar_url":"https://github.com/li-plus.png","language":"C++","readme":"For solution, see [CS144 Notes](https://github.com/li-plus/cs144/blob/master/writeups/notes.md).\n\nFor build prereqs, see [the CS144 VM setup instructions](https://web.stanford.edu/class/cs144/vm_howto).\n\n## Sponge quickstart\n\nTo set up your build directory:\n\n\t$ mkdir -p \u003cpath/to/sponge\u003e/build\n\t$ cd \u003cpath/to/sponge\u003e/build\n\t$ cmake ..\n\n**Note:** all further commands listed below should be run from the `build` dir.\n\nTo build:\n\n    $ make\n\nYou can use the `-j` switch to build in parallel, e.g.,\n\n    $ make -j$(nproc)\n\nTo test (after building; make sure you've got the [build prereqs](https://web.stanford.edu/class/cs144/vm_howto) installed!)\n\n    $ make check_labN *(replacing N with a checkpoint number)*\n\nThe first time you run `make check_lab...`, it will run `sudo` to configure two\n[TUN](https://www.kernel.org/doc/Documentation/networking/tuntap.txt) devices for use during\ntesting.\n\n### build options\n\nYou can specify a different compiler when you run cmake:\n\n    $ CC=clang CXX=clang++ cmake ..\n\nYou can also specify `CLANG_TIDY=` or `CLANG_FORMAT=` (see \"other useful targets\", below).\n\nSponge's build system supports several different build targets. By default, cmake chooses the `Release`\ntarget, which enables the usual optimizations. The `Debug` target enables debugging and reduces the\nlevel of optimization. To choose the `Debug` target:\n\n    $ cmake .. -DCMAKE_BUILD_TYPE=Debug\n\nThe following targets are supported:\n\n- `Release` - optimizations\n- `Debug` - debug symbols and `-Og`\n- `RelASan` - release build with [ASan](https://en.wikipedia.org/wiki/AddressSanitizer) and\n  [UBSan](https://developers.redhat.com/blog/2014/10/16/gcc-undefined-behavior-sanitizer-ubsan/)\n- `RelTSan` - release build with\n  [ThreadSan](https://developer.mozilla.org/en-US/docs/Mozilla/Projects/Thread_Sanitizer)\n- `DebugASan` - debug build with ASan and UBSan\n- `DebugTSan` - debug build with ThreadSan\n\nOf course, you can combine all of the above, e.g.,\n\n    $ CLANG_TIDY=clang-tidy-6.0 CXX=clang++-6.0 .. -DCMAKE_BUILD_TYPE=Debug\n\n**Note:** if you want to change `CC`, `CXX`, `CLANG_TIDY`, or `CLANG_FORMAT`, you need to remove\n`build/CMakeCache.txt` and re-run cmake. (This isn't necessary for `CMAKE_BUILD_TYPE`.)\n\n### other useful targets\n\nTo generate documentation (you'll need `doxygen`; output will be in `build/doc/`):\n\n    $ make doc\n\nTo format (you'll need `clang-format`):\n\n    $ make format\n\nTo see all available targets,\n\n    $ make help\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fli-plus%2Fcs144","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fli-plus%2Fcs144","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fli-plus%2Fcs144/lists"}