Find the answer to your Linux question:
Results 1 to 2 of 2
I was wondering if you could tell me how you are writing to eth0 using write(). I'm trying to do something similar and haven't been able to find how to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2010
    Posts
    1

    how you are writing to eth0 using write()


    I was wondering if you could tell me how you are writing to eth0 using write(). I'm trying to do something similar and haven't been able to find how to do so.

    Thanks.

  2. #2
    Linux Newbie theNbomr's Avatar
    Join Date
    May 2007
    Location
    BC Canada
    Posts
    155
    Typically, you don't use the bare device that way. You use sockets to communicate with ethernet. If you want to send non-IP packets, you can open a socket using SOCK_RAW protocol. This requires root privileges.
    --- rod.
    Stuff happens. Then stays happened.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •