Search:

Type: Posts; User: PhilB

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    2,327

    inet_ntoa() or not?

    Hi all,

    char temp[50];

    printf("Current system IP is: %s", inet_ntoa(*((struct in_addr *)temp)));

    I have these lines, and it's basically feeding me with crap IP addresses (one is a 252.x.x.x...
  2. Replies
    6
    Views
    1,924

    Awesome, I will do - I'm awaiting a work permit...

    Awesome, I will do - I'm awaiting a work permit (I come from the UK), so I'm a little strapped for cash, otherwise I'd buy some books :P

    Thanks for your help,
  3. Replies
    6
    Views
    1,924

    Thanks very much, from that I'll be able to...

    Thanks very much, from that I'll be able to decipher networking C a little more.

    The code worked, and compiled for me using cc version 2.96 on Redhat Linux 7.0 kernel 2.4.18
  4. Replies
    6
    Views
    1,924

    Questions about ioctl() or exec() family

    Hi all,

    I'm writing a small program to allow my Linux illiterate wife to obtain system/network diagnostics for our 'net connection on Linux (Redhat 7). I am wanting to provide such things as IP...
Results 1 to 4 of 4