Thread: master raw device?

  1. #1
    template<typename T> threahdead's Avatar
    Join Date
    Sep 2002
    Posts
    214

    master raw device?

    hi
    this code here should simply create a socket.
    Code:
    /*...*/
       int sockfd;
       if((sockfd = socket(AF_INET, SOCK_RAW, 0)) < 0)
          perror("socket");
       else
          return 0;
    /*...*/
    }
    when i compile my code i get no warnings but when running the program
    linux tells me:
    "cannot open master raw device: '/dev/rawctl' (no such file.....)

    i am running knoppix booting from cd, if that helps.

    thanks
    cu

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Try looking through these
    http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=cannot+open+master+raw+device%3A+%27%2Fdev%2Fr awctl%27&sa=N&tab=wg

    (put the url back together in your browser)
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

  3. #3
    template<typename T> threahdead's Avatar
    Join Date
    Sep 2002
    Posts
    214
    i was looking through the search results, but there was no solution
    showing up.

    would anyone of mind to help me please?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Reading raw device data
    By zacs7 in forum Linux Programming
    Replies: 10
    Last Post: 05-09-2007, 03:19 PM
  2. Device Driver: sysfs confusion
    By filker0 in forum Linux Programming
    Replies: 0
    Last Post: 12-02-2005, 11:36 AM
  3. Replies: 4
    Last Post: 06-30-2004, 03:11 PM
  4. Rtfm
    By XSquared in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 03-13-2003, 05:19 PM
  5. Obtaining raw device data in Win 98
    By minesweeper in forum Windows Programming
    Replies: 0
    Last Post: 11-06-2002, 04:08 PM