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...
Type: Posts; User: failure_to
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...
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...
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...
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
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...
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...
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...
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...
thank you
PS:I use IE cos I use Windows for browsing the net
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...
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
Will this do?
int len; //length of ICMP
struct icmp ICMP;
int id=getpid();
...
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...
When do I use struct udp and when struct udphdr(same question goes for for struct ip and struct iphdr)?
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...
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...
Unix network programming.But I may have miss-interpret what he was saying:)
thank you very much for all your help
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...
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...
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...
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...