Search:

Type: Posts; User: failure_to

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    2,113

    I'm not shure I understand this.Router has two...

    I'm not shure I understand this.Router has two NICs,one with 192.168.2.1 IP and the other with routable IP(which would be my WAN IP)
    So whenever I connect to the internet,the traffic goes trough...
  2. Replies
    5
    Views
    2,113

    Question about My WAN IP

    hi

    My PC is connected to internet(cable internet) via router.I connected to this router and among other info it also says that its WAN IP address is "Y.Y.Y.X".But when I run

    "traceroute...
  3. I found them.I guess I missed them somehow on the...

    I found them.I guess I missed them somehow on the first look(libpcap.a and libnet.a).Can someone tell me so I can be certain,do libpcap and libnet each have only one library?

    If anyone knows where...
  4. I have this header included but that's just what...

    I have this header included but that's just what libnet.h is..a header.It doesn't tell the compiler in which library particular functions are
  5. What libnet libraries to include with compile?

    hi

    I intalled libnet library but I don't know which libraries to include when compiling source code.Same goes for libpcap.I searched the net but couldn't find anything

    Not so important but-I...
  6. Replies
    3
    Views
    2,439

    Stalker.There's a reason I asked in two...

    Stalker.There's a reason I asked in two forums;and that'scos each answer gives birth to more questions and I doubt any person would be willing to answer them all.And besides,if I have a question it...
  7. Replies
    3
    Views
    2,439

    Can TCP sockets also receive ICMP...?

    hi
    I know some ICMP errors are only returned if datagram that caused it is of UDP type(ICMP port unreachable).
    But what ICMP errors do get returned to TPC sockets?
    When TCP socket in an already...
  8. Replies
    2
    Views
    1,812

    I did some searching and found out that when...

    I did some searching and found out that when datagram passes trought all listed hops,each hop replaces its listed address with IP of its outgoing interface.That answered my questions



    I didn't...
  9. Replies
    6
    Views
    3,410

    thank you PS:I use IE cos I use Windows for...

    thank you

    PS:I use IE cos I use Windows for browsing the net
  10. Replies
    2
    Views
    1,812

    Source routing

    hi

    RFC specifies that if client uses source routing option then TCP server must use reverse route for all the segments on that connection.
    But if client specifies strict source routing,how can...
  11. Replies
    6
    Views
    3,410

    It is.Code is writen on linux and I'm using...

    It is.Code is writen on linux and I'm using windows when surfing the net,so I had to retype it.Sorry for the typo
  12. Replies
    6
    Views
    3,410

    Will this do? int len; ...

    Will this do?


    int len; //length of ICMP
    struct icmp ICMP;
    int id=getpid();
    ...
  13. Replies
    6
    Views
    3,410

    bcopy() question

    hi

    If I build ICMP echo request header and put it in char array by copying it with bcopy(&icmp_h, buf, sizeof(icmp_h)),then server won't send back echo reply.
    I know there are other ways to put...
  14. When do I use struct udp and when struct...

    When do I use struct udp and when struct udphdr(same question goes for for struct ip and struct iphdr)?
  15. What members does struct udphdr(linux) have?

    hi

    I need to know the names and members of structs that represent TCP and UDP headers in linux.As far as I know,the following are names of header structures:
    -struct ip
    -struct udphdr
    -struct...
  16. Replies
    1
    Views
    4,021

    SO_ERROR option

    hi

    Does SO_ERROR option in SOL_SOCKET level return value stored in so_error variable?
    Does so_error also store asynchronous errors(ICMP error replies)?
    Shouldn't so_error be reset back to 0...
  17. Unix network programming.But I may have...

    Unix network programming.But I may have miss-interpret what he was saying:)

    thank you very much for all your help
  18. I will probably never use it but I'd like to know...

    I will probably never use it but I'd like to know regardless why same rules(according to my book) apply for sockets as they do for standard files(when using fread() and fwrite())?
    Are there two file...
  19. So if you don't want to modify it, but instead...

    So if you don't want to modify it, but instead write from the point on where fread() stoped reading then no need for fseek()?

    Is this also important when you use fread() and fwrite() on full...
  20. hi I see the logic in "if you write to file...

    hi


    I see the logic in "if you write to file first,you must call fflush() before reading from file".

    But I don't understand why you must call rewind() or fseek() after fread() but before...
  21. File opened for both reading and writing-please help!

    hi

    Im learning C programming in linux and book gave a warning that when file is open for reading and writting the following restrictions apply:
    -Output cannot be directly followed by input...
Results 1 to 21 of 21