LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-03-2009, 03:55 PM   #1
quantt
Member
 
Registered: Aug 2008
Posts: 62

Rep: Reputation: 15
pcap send


hi there, how I can change addres while reading from the dump?
I'm collecting the data to pcap_t and then injecting it and there I'm unsure with 2 and 3 arguments, where I can get it?

Code:
pcap_t *p;
// int pcap_inject(pcap_t *p, const void *buf, size_t size)
sentbytes=pcap_inject(p, (void*)&data , sizeof(data) ));
and more over, I can't change second argument, because it's a const.

actually, I can filtering the dump by this...
Code:
pcap_compile();
pcap_setfilter();
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I'm having trouble with pcap... trist007 Slackware 1 03-10-2009 11:03 AM
Trouble with pcap... trist007 Programming 0 03-07-2009 09:19 PM
Postfix : mail cannot send to send outside ( can send/receive locally) bobbinsupport Linux - Networking 3 12-15-2007 10:40 PM
pcap error ilnli Programming 2 05-26-2007 06:47 PM
Questions on pcap.h Traveler_Q Programming 2 02-25-2004 03:03 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration