Re: POSIX Threads

From: Dan Nelson (dnelson_at_allantgroup.com)
Date: 10/29/03

  • Next message: Vinod R. Kashyap: "freeing data segment"
    Date: Wed, 29 Oct 2003 10:24:47 -0600
    To: Isaac Gelado <igf@tid.es>
    
    

    In the last episode (Oct 29), Isaac Gelado said:
    > I am developing a distributed application based on MICO (mico-2.3.9),
    > which uses Packet Capture Library (PCapLib).
    >
    > In the code, I create a posix thread to execute the pcap_loop
    > function (this function waits until certain number of packets have
    > been captured or infinite if the number is 0). When PCapLib captures
    > a packet and pcap_loop is running it calls to a handle function
    > inside the same thread.
    >
    > This schema is working correctly in a linux machine, so when a packet
    > is captured an CORBA event is sent to clients. But, when the server
    > is running under FreeBSD 5.0, the handle function isn't executed when
    > a packet is received. In FreeBSD the handle function is executed, for
    > each packet, after certain time (maybe when the buffer of PCapLib is
    > full), which is a problem because it sends events too fast to clients
    > so the CORBA event service fails.

    When you called pcap_open_live, what timeout did you set?

    -- 
    	Dan Nelson
    	dnelson@allantgroup.com
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
    

  • Next message: Vinod R. Kashyap: "freeing data segment"

    Relevant Pages

    • IP protocol checksum errors
      ... Frame 3484 ... Time delta from previous packet: ... Capture Length: 254 bytes ... Fragment offset: 0 ...
      (comp.os.linux.embedded)
    • Re: POSIX Threads
      ... >>which uses Packet Capture Library (PCapLib). ... >>is captured an CORBA event is sent to clients. ...
      (freebsd-hackers)
    • RE: Snort + (OpenBSD or Linux)
      ... Snort + (OpenBSD or Linux) ... >on the same packet. ... Regarding OpenBSD vs. Linux packet capture performance (this is a really old ...
      (Focus-IDS)
    • [TOOL] WinPcap, the Free Packet Capture Architecture for Windows
      ... the Free Packet Capture Architecture for Windows ...
      (Securiteam)
    • Re: POSIX Threads
      ... > which uses Packet Capture Library. ... I create a posix thread to execute the pcap_loop function ... > is captured an CORBA event is sent to clients. ...
      (freebsd-hackers)