Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4338994
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T11:09:24+00:00 2026-05-21T11:09:24+00:00

So, I am trying to make a toy (bash?) implementation of TCP on top

  • 0

So, I am trying to make a toy (bash?) implementation of TCP on top of raw sockets, to better understand the protocol.

I understand that /dev/raw is deprecated in favor of O_DIRECT (why?) and is not enabled in my kernel.

$ zgrep -i raw /proc/config.gz
CONFIG_IP_NF_RAW=m
CONFIG_IP6_NF_RAW=m
CONFIG_SERIO_RAW=m
# CONFIG_RAW_DRIVER is not set
CONFIG_SND_RAWMIDI=m
CONFIG_SND_RAWMIDI_SEQ=m
CONFIG_HIDRAW=y
CONFIG_USB_SERIAL_SIERRAWIRELESS=m
CONFIG_USB_GADGET_VBUS_DRAW=2
# CONFIG_LINE6_USB_RAW is not set
CONFIG_ATH6KL_HTC_RAW_INTERFACE=y

I cannot find information on how to send data without linux’s TCP implementation using O_DIRECT which is what I guess I should use.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T11:09:24+00:00Added an answer on May 21, 2026 at 11:09 am

    Here’s an informative paper on raw sockets in FreeBSD 7.0 and Linux 2.6.

    SOCK_RAW Demystified

    SOCK_RAW Demystified is a paper I wrote about explaining the implementation of the raw sockets mechanism in the kernels of FreeBSD 7.0 and Linux 2.6. It delves into network internals showing the details of this powerful socket type and how it works behind the scene.

    http://sock-raw.org/papers.html

    If you do not have /dev/tcp in Bash, you may want to look at Richard Stevens’ sock program (http://www.icir.org/christian/sock.html).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to make a simple scroll to top button that smoothly scrolls up and
I'm trying to make a toy script in GreaseMonkey that will cause my screen
I'm trying make an entity with doctrine that has three associations with other entities
Trying to make this jQuery filter that uses .find case-insensitive. For example, when the
Trying to make a cross protocol, same domain request from https to http. I
I've been trying to figure out how to make a powder toy style game
I am trying to make my chunk of code non-thread-safe, in order to toy
Trying to make a regex that can handle input like either: Beverly Hills, CA
Trying to make a make generic select control that I can dynamically add elements
I'm trying make an WPF application that I could copy/cut and paste files info

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.