Unofficial Hacker News companion — get notified on comment replies, and more.

A portable SCTP userland stack (opens external site)

42 points by mococa 2 days ago | github.com | 59 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (2)

  1. >It's also that every mainstream operating system prevents normal programs from programming IP directly.

    Well yes, because transport is typically handled by the kernel. Do you think UDP should be the only protocol handled by kernel and kernel TCP stack shouldn't exist?

    Replies (1)
    1. You can't reasonably demand that TCP ride on UDP, because TCP precedes UDP by several years. But if the chronology was reversed, then, yes: it would make more sense for TCP to be a UDP protocol (you'd unify the port spaces, most likely, and obviously strip from the TCP header the duplicative fields).

      There's no coherent "transport" vs. "network" design line here for what does and doesn't belong in the kernel, though if there was, you might just as well say that SCTP needlessly opted into requiring a kernel implementation, which is one of many factors that destroyed its marketability.