rust-lang / rust-lang/libc

Adding SCTP support (Linux/FreeBSD)

Open
#2,962 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-API-request E-medium
Dominant language
Rust
Stars
2.6k
Forks
1.3k
Avg merge
1d 22h
Merged PRs (30d)
69

Description

I'm looking at adding SCTP support to the socket2 crate, and it would be useful to have definitions of constants and structs from netinet/sctp.h to do so. It seems like this crate is the most appropriate place to have those defined, given that definitions for similar protocols (TCP/UDP, or even the Linux-specific Netlink) are found here.

I would be happy to add the appropriate bindings and submit a PR for it here; I just wanted to check to see if such an addition would be desired.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the socket2 crate's existing TCP, UDP, and Linux Netlink definitions, then compare them with the platform header netinet/sctp.h on Linux and FreeBSD. Done means adding the requested SCTP constants and structs for both platforms; the issue does not name specific files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, rust
Domain
networking, operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.