Search:

Type: Posts; User: Rishi.

Search: Search took 0.01 seconds.

  1. Replies
    14
    Views
    1,769

    well I have solved the initialization problem in...

    well I have solved the initialization problem in the following way.

    if(v==0)
    {
    flow[0].sr=new_flow.sr;
    flow[0].ds=new_flow.ds;
    v++;
    }
    where v is another integer initialized with 0;
  2. Replies
    14
    Views
    1,769

    Thanks roan you helped me a lot I have solved the...

    Thanks roan you helped me a lot I have solved the problem cheers!

    well now m encountering another problem and that is with comparing is it so that I cant compare two struct values.
    while(i<=j)...
  3. Replies
    14
    Views
    1,769

    Sorry to tell you sir, But I guess you dint read...

    Sorry to tell you sir, But I guess you dint read the whole thing, My question was
    how to Initialize a structure can I use

    flows flow[1000] = new_flow;

    and m really sorry to bother you by...
  4. Replies
    14
    Views
    1,769

    Hi now there is another problem Could someone...

    Hi now there is another problem Could someone please tell me how to initialize a structure array like
    flows flow[1000] = new_flow; Cant I initialize it like this? Or if there is some other method do...
  5. Replies
    14
    Views
    1,769

    Heyy Thanks a lot you really helped me many a...

    Heyy Thanks a lot you really helped me many a thanks.
  6. Replies
    14
    Views
    1,769

    and I am getting this error readpacket.c:60:...

    and I am getting this error


    readpacket.c:60: error: invalid operands to binary == (have ‘flows’ and ‘flows’)

    and its occurring at

    while(i<=sizeof(flow))
    {
    if(new_flow == flow[i])
  7. Replies
    14
    Views
    1,769

    #include #include...

    #include<libtrace.h>
    #include<stdio.h>
    #include<inttypes.h>
    #include<arpa/inet.h>
    #include<netinet/tcp.h>

    uint64_t count = 0;


    typedef struct {
  8. Replies
    14
    Views
    1,769

    Hello thanks for replying. I have already...

    Hello thanks for replying.

    I have already tried this in the following way:

    inet_ntop(AF_INET, &(sa_i->sin_addr), new_flow[++i].src, INET_ADDRSTRLEN);

    but it gives this error....
  9. Replies
    14
    Views
    1,769

    Need Help with Socket Programming

    Hi I am new to socket Programming and C. I have done a part of my project which includes passive analysis of packets, extracting the 5 tuple values needed to compare for getting the flows and and...
  10. Replies
    12
    Views
    2,363

    The sequence no. part is: if((*y=*t) ==...

    The sequence no. part is:


    if((*y=*t) == (*z=*(++t)))
    {//printf("%d, %d,", t, ++t);
    count_flow++;

    }
  11. Replies
    12
    Views
    2,363

    Thanks again for replying, As I said earlier m...

    Thanks again for replying, As I said earlier m writing a code for passive analysis of packets. I have a bundle of packets and they are in ".pcap" format. I am not trying to go through all the port...
  12. Replies
    12
    Views
    2,363

    And m comparing all these values to find out the...

    And m comparing all these values to find out the no. of flows and then distinguish them for incoming flows and outgoing flows, between two addresses.
  13. Replies
    12
    Views
    2,363

    Thanks tabstop and MK27 for replying .... I...

    Thanks tabstop and MK27 for replying .... I really appreciate .... MK27 M sorry for using excessive words instead should have asked the way for the "toilet". Well, I have got all the values needed...
  14. Replies
    12
    Views
    2,363

    sa = trace_get_source_address(packet, &addr);...

    sa = trace_get_source_address(packet, &addr);
    printf("packet is type %d af_inet=%d\n", sa->sa_family, AF_INET);
    if (sa->sa_family == AF_INET) {
    /* ipv4 packet */
    struct sockaddr_in *sa_in...
  15. Replies
    12
    Views
    2,363

    Would you please elucidate that ..... what...

    Would you please elucidate that ..... what exactly do you mean to say .....??
  16. Replies
    12
    Views
    2,363

    HELP socket programming!!

    Hi I am Rishi studying in Loughborough University UK, I have got a project to do where I have to use libtrace library to get the standard 5 tuple values(Source and Destination Address, Source and...
Results 1 to 16 of 16