Search:

Type: Posts; User: cnb

Search: Search took 0.00 seconds.

  1. Replies
    10
    Views
    6,293

    Hi, Thanks alot for your help.... I have been...

    Hi,
    Thanks alot for your help....
    I have been reading more on the cast operator and in the oreilly book that i have on C programming has a small section which describes the cast operator in C. Now...
  2. Replies
    10
    Views
    6,293

    So the reason for converting expression...

    So the reason for converting expression host->h_addr_list[0] to unsigned long* is because h_addr.s_addr is a type __u32 is this why the cast is used to convert the expression to unsigned long?
    So...
  3. Replies
    10
    Views
    6,293

    Hi, Thanks for your help....just one more...

    Hi,
    Thanks for your help....just one more further clarification


    h_addr.s_addr = *((unsigned long *) host->h_addr_list[0]);

    I am currently looking at the following website which tells some of...
  4. Replies
    10
    Views
    6,293

    Hi, Thanks for your reply. So the following...

    Hi,
    Thanks for your reply.
    So the following line i can read it as:


    h_addr.s_addr = *((unsigned long *) host->h_addr_list[0]);

    host is pointer to pointer to unsigned long or is it host is...
  5. Replies
    10
    Views
    6,293

    Question regarding a this C program

    Hi,
    I am currently looking through a simple C program which basically is a very basic nslookup tool. My question is regarding on how some of the C code in this is working.
    Here is the pieces of...
  6. Replies
    17
    Views
    61,439

    Hi, All i would like to do is write a function...

    Hi,
    All i would like to do is write a function that can retrieve all the IP address's that are currently configured on my system and than use one of those IP address as a source IP address.
    So how...
  7. Replies
    17
    Views
    61,439

    Hi, thanks for your reply. But the IP address...

    Hi,
    thanks for your reply.
    But the IP address it gets from the system is wrong i.e. in the case if you do not specific a -s 192.168.1.1 it assumes that the source is 127.0.1.1, here is the example...
  8. Replies
    6
    Views
    10,677

    Hi, Yes there is typo in my original message:...

    Hi,
    Yes there is typo in my original message:
    The code looks like this:


    #include <stdio.h>

    int main(int argc, char *argv[])
    {
    int i, j;
  9. Replies
    6
    Views
    10,677

    question regarding char *argv[]

    Hi,
    I have question regarding following example from cprogramming faq section:


    #include <stdio.h>

    int main(int argc, char *argv[])
    {
    int i, j;
    for (i = 0; i < argc; i++)
  10. Replies
    17
    Views
    61,439

    Hi, I found the following example in the...

    Hi,
    I found the following example in the networking forum regarding a simple ping to demonstrate the use of Linux raw sockets example. See the code below.
    I was able to compile and run this...
  11. Replies
    17
    Views
    61,439

    Thanks......hope you can find the link..... ...

    Thanks......hope you can find the link.....

    thanks
  12. Replies
    17
    Views
    61,439

    Linux raw socket programming

    Hi,
    I am trying to write a program similar to ping in linux but a simplified version so i can learn the sockets programming under linux.
    I have had a look at the ping.c from the iputils package...
  13. Replies
    3
    Views
    3,254

    Hi, I have tried both and i get the same error...

    Hi,
    I have tried both and i get the same error message, are you able to tell me exact steps i can follow to correct this problem....i have also tried using google with the error message but i still...
  14. Replies
    3
    Views
    3,254

    Compile problem on linux

    Hi,
    what i am trying to do is to compile the iputils from the source code and the reason for this is that later on i want to make changes to ping.c i.e. add my own functionality so i thought the...
Results 1 to 14 of 14