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 8978345
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:35:20+00:00 2026-06-15T19:35:20+00:00

I am working on a program where I’m reading from a Tap. The only

  • 0

I am working on a program where I’m reading from a Tap. The only issue is, I have no clue how to detect the end of one transmission to the tap and the start of another.

Does reading from the tap act the same way as a SOCK_STREAM ?

  • 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-06-15T19:35:21+00:00Added an answer on June 15, 2026 at 7:35 pm

    Tun/tap tries to look like a regular ethernet controller, but the tap device itself is accessed just like any other file descriptor.

    Since it pretends to be an ethernet controller, you have to know in advance how big the ethernet frame itself was that was transmitted – this comes either from the software bridge that the tap device was attached to or the “length” field in the raw ethernet frame.

    This, of course can only be the maximum of the MTU size of the tap device, which typically defaults to 1500 bytes.

    So, before you do a read() on the file descriptor for the tap device, you’ve gotta figure out how big the ethernet frame actually is.

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

Sidebar

Related Questions

is there any small working program for recieving from and sending data to client
I have a working program in C++ that generates data for a Mandelbrot Set.
I have a working C program where the length of an array of strings
I am working on Program(in c) which require sorting. One of the requirement of
I have an otherwise working iPhone program. A recent change means that it generates
I'm working a program that will have a bunch of threads processing data. Each
I have a working program to compute the longest collatz chain in a given
So I have my FTP program working great with static file names for the
I got a almost good working program to count words from standard input. The
I'm trying to make a working program from this example: http://msdn.microsoft.com/en-us/library/ms741870.aspx . I think

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.