Search Results

Search: Posts Made By: zampya
Forum: Programming 06-24-2004
4,798
Posted By zampya
How to set the MSS programatically.
I'm sending a SYN packet and now I want to specify the MSS (The maximum segment size option in a TCP packet ) through it.

How can I do that? Also, I'm not getting a SYN-ACK back from the remote...
Forum: Programming 05-24-2004
15,876
Posted By zampya
Yes. I'm using gcc. Btw, I'm getting a very...
Yes. I'm using gcc.

Btw, I'm getting a very strange error with sendto. Here's my code. I have compiled it with gcc and I get error :

sendto:invalid argument.

int main(int argc, char *argv[])...
Forum: Programming 05-22-2004
9,163
Posted By zampya
#include <stdio.h> #include <string.h> // for...
#include <stdio.h>
#include <string.h> // for access
#include <fcntl.h>
#include <dirent.h> // for struct dirent
#include <sys/stat.h> //for struct stat and the functions related to it

int...
Forum: Programming 05-19-2004
15,876
Posted By zampya
Even after that, the problem remains.
Even after that, the problem remains.
Forum: Programming 05-19-2004
15,876
Posted By zampya
Can you tell me what's the problem in this code...
Can you tell me what's the problem in this code of mine. I have used your checksum code. I'm not entirely sure, if it's correct or not.

Thanks.

#include<stdlib.h>
#include <stdio.h>
#include...
Forum: Programming 05-18-2004
15,876
Posted By zampya
Andryk, thanks for your reply. Please post...
Andryk, thanks for your reply.

Please post the checksum portion of the pseudo header.

Haha, I'm not trying to implement anything like DoS or Man-in-the-middle, but if happens accidenly, I won't...
Forum: Programming 05-18-2004
15,876
Posted By zampya
Thanks for the reply. Here is the complete code,...
Thanks for the reply. Here is the complete code, with all the includes and accessory functions.

This code compiles on Linux machines on which I'm working.

I can't use struct tcphdr and iphdr,...
Forum: IP Networking 05-17-2004
147,903
Posted By zampya
It's Linux on i686. Please detail the...
It's Linux on i686.

Please detail the procedure I have to do.

Thanks.
Forum: IP Networking 05-17-2004
147,903
Posted By zampya
I was the root on this occasion. Thanks.
I was the root on this occasion.

Thanks.
Forum: IP Networking 05-17-2004
147,903
Posted By zampya
tcpdump error: no suitable device found
Hi,

I'm trying to use tcpdump for the first time. I installed tcpdump from the rpm. Now when I issue the command tcpdump port 6666, I get an error

tcpdump: no suitable device found

Can you...
Forum: Programming 05-17-2004
6,631
Posted By zampya
tcpdump error: no suitable device found
Hi,

I'm trying to use tcpdump for the first time. I installed tcpdump from the rpm. Now when I issue the command tcpdump port 6666, I get an error

tcpdump: no suitable device found

Can you...
Forum: Programming 05-17-2004
15,876
Posted By zampya
typedef struct ip_header_t { unsigned char...
typedef struct ip_header_t {
unsigned char ihl:4,
version:4;
unsigned char tos;
unsigned short tot_len;
unsigned short id;
unsigned short frag_off;
unsigned char ttl;
unsigned...
Forum: Programming 05-04-2004
15,876
Posted By zampya
>I can't see how this guarantees that your packet...
>I can't see how this guarantees that your packet is ``well-formed''. Maybe we have differing definitions of ``well-formed'' on this issue, but I mean a packet with valid TCP >content too, not just...
Forum: Programming 05-03-2004
15,876
Posted By zampya
>How do you know this? I know this, since when...
>How do you know this?
I know this, since when I do a revcfrom on the peer, I receive the exact no. of bytes I sent.. If my packet was malformed, I should have got an ICMP error message, which I...
Forum: Programming 05-02-2004
15,876
Posted By zampya
Getting an ACK for RAW SYN packet
Hi,

I'm trying to create a RAW TCP SYN packet and send it from one Linux machine to another. I know the packet I have created is well formed and is received by the peer.

Now what I want is to...
Showing results 1 to 15 of 15

 
All times are GMT -4. The time now is 02:53 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy