[Winpcap-users] Real time sending packets

Carlo Medas carlomedas at gmail.com
Fri Oct 24 08:08:03 GMT 2008


Yes I call exactly that method: as per my code snippet below.

if (pcap_sendpacket(m_impl->pcapSession, packet, size) != 0)
{
std::string error = pcap_geterr(m_impl->pcapSession);
throw SendPacketErrorException(error);
}


On Fri, Oct 24, 2008 at 9:36 AM, <ceo at triplebit.com> wrote:

>  Thanks,
> Since you probably know better that me, which function did you use- was it pcap_sendpacket
> ?
> Regards
> I. lesher
>
> ----- Original Message -----
> *From:* Carlo Medas <carlomedas at gmail.com>
> *To:* winpcap-users at winpcap.org
> *Sent:* Friday, October 24, 2008 8:41 AM
> *Subject:* Re: [Winpcap-users] Real time sending packets
>
> Dear Lesher,
> please take my answer until Gianluca or some other guru officially answers
> you.
>
> I've been doing something like you and I use a single pcap session with
> success. Tested on Linux, Windows and Mac.
>
> Br,
>
> \Carlo
>
> On Thu, Oct 23, 2008 at 6:33 PM, <ceo at triplebit.com> wrote:
>
>> I want to inject UDP packets to the interface in real time. In other
>> words, the program should run endlessly,capturing  the interface and for
>> every input packet(with the right filter), it should establish a packet from
>> this data and send it again to a third address.
>> What is the most aprroprite function for that- the users guide speaks
>> about pcap_sendpacket and pcap_sndqueue_transmit?
>>
>> Another question-
>> Does the open function, pcap_open should be called once or twice(once
>> again for the packet send) for the above procedure?
>>
>> I. Lesher
>>
>>
>>
>> _______________________________________________
>> Winpcap-users mailing list
>> Winpcap-users at winpcap.org
>> https://www.winpcap.org/mailman/listinfo/winpcap-users
>>
>
>  ------------------------------
>
> _______________________________________________
> Winpcap-users mailing list
> Winpcap-users at winpcap.org
> https://www.winpcap.org/mailman/listinfo/winpcap-users
>
>
> _______________________________________________
> Winpcap-users mailing list
> Winpcap-users at winpcap.org
> https://www.winpcap.org/mailman/listinfo/winpcap-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-users/attachments/20081024/0315b258/attachment.htm


More information about the Winpcap-users mailing list