[tcpdump-workers] Inject payload with crypto algorithms

2012-06-26 Thread Mamatha
Hi,

   I am implementing one application using libpcap but I am unble to
use pcap_inject is failing it showing undefined reference to this
function...I searched header file also The function is not avalible..

   My requirement:
case1:
   I have to recevie the packets from 3000 port
of one internal device (interface).I have to apply encryption
   and send back (inject payload)to same port
again of interface
 case 2:I have to get the 3001 port for decryption
again I want send back to same using libcap functions
 doubt: If receive the packet payload its in (decrypted format)in original
data but I want to apply double encryption for packets encrypted data..how
should I get the encrypted data..

 I would like ask you send any sample code using any crypto
algorithms and libcap.
 It might be help ful for my application..

Thanks ®ards
Mamatha
mamatha...@gmail.com
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Re: [tcpdump-workers] Inject payload with crypto algorithms

2012-06-26 Thread Guy Harris

On Jun 25, 2012, at 9:49 PM, Mamatha wrote:

>   I am implementing one application using libpcap but I am unble to
> use pcap_inject is failing it showing undefined reference to this
> function...I searched header file also The function is not avalible..

It *isn't* available in libpcap prior to 0.9.0; what version of libpcap do you 
have on your machine?  If it's not 0.9.x or 1.x, you don't have pcap_inject().-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Re: [tcpdump-workers] Inject payload with crypto algorithms

2012-06-26 Thread Esteban Pellegrino
You should specify what version of libpcap you are using and the OS. On
last ubuntu with libpcap 1.1.1 pcpa_inject is defined on pcap/pcap.h and I
can successfully link that function with my code.

Best,

Esteban

On Tue, Jun 26, 2012 at 1:49 AM, Mamatha  wrote:

> Hi,
>
>   I am implementing one application using libpcap but I am unble to
> use pcap_inject is failing it showing undefined reference to this
> function...I searched header file also The function is not avalible..
>
>   My requirement:
>case1:
>   I have to recevie the packets from 3000 port
> of one internal device (interface).I have to apply encryption
>   and send back (inject payload)to same port
> again of interface
> case 2:I have to get the 3001 port for decryption
> again I want send back to same using libcap functions
>  doubt: If receive the packet payload its in (decrypted format)in original
> data but I want to apply double encryption for packets encrypted data..how
> should I get the encrypted data..
>
> I would like ask you send any sample code using any crypto
> algorithms and libcap.
>  It might be help ful for my application..
>
> Thanks ®ards
> Mamatha
> mamatha...@gmail.com
> -
> This is the tcpdump-workers list.
> Visit https://cod.sandelman.ca/ to unsubscribe.
>
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.