General :: Just Use Dumpfile Function Of Libpcap?
Jul 15, 2010
These days i try make a simple sniffer for a embedded system. and it need the function of dump all the packets into a file, which can be read by wireshark..etc. First i copy a code called simplesniffer.c from the Internet,and and now I want to add the dumpfile funtion to it. i find some problems.Quote:
/* Come from ---- http://blog.chinaunix.net/u/24474/showart_226419.html */
/* simplesniffer.c */
#include <stdio.h>
[code]...
View 2 Replies
ADVERTISEMENT
Apr 6, 2010
I am trying to install Libpcap version 1.0.0 on Fedora 9. During 'make, i get the following error:
"/usr/bin/install: cannot stat `libpcap.so.1.0.0': No such file or directory
make: *** [install] Error 1"
View 4 Replies
View Related
Aug 7, 2010
Mencoder has not a support for my webcam.
However "
Quote:
" works flawlessly well.
So option dumpfile in man page is there to help us!
But well the command
Quote:
results in a 0kylobytes files.
How to force mplayer to dump file -tv flow data to file?
View 5 Replies
View Related
Jan 27, 2011
we want to enhance the current libpcap version 1.1.x to provide timestamp in nanosecond resolution.
While searching related to same, we found that enhanced libpcap requires x64 architecture.
Is that so?
Do we need 64-bit architecture for using enhanced libpcap for nanosecond timestamping ?
View 1 Replies
View Related
Dec 9, 2010
I'm running Ubuntu 10.04.1 and am trying to get packet capturing working for my Bluetooth dongle using hcidump.From what I've read, libpcap must be compiled to enable Bluetooth sniffing and given that hcidump isn't finding a single packet, I'm guessing the version Ubuntu has installed for me isn't compiled with bluetooth support.So I downloaded a newer version of libpcap and installed the bluez header files. Configured libpcap and it gave a "Yes" for bluetooth support. It is now installed and sitting in /usr/local/lib/. Now I'm trying to compile hcidump to use this lib rather than the system default but I can't figure out how...I've read that GCC can be passed the -lpcap flag to set the path but I haven't figured out how to do this.
View 1 Replies
View Related
Apr 14, 2011
One of my clients needs a backup of his svn repository. I see that this is possible using svadmin dump command. I see where the location of the source repository is, but I don't see anything in documentation as to where the actual dump file is located. I need to know where the dump file is so I can scp or rsync the file to another server for backup.
View 5 Replies
View Related
Feb 21, 2010
the function terminates if no key is pressed for 10 consecutive seconds. I tried using the -t option as suggested in some forums, but my version of showkey doesn't have the option of changing the timeout. The options I get are:
-h --helpdisplay this help text
-a --asciidisplay the decimal/octal/hex values of the keys
-s --scancodesdisplay only the raw scan-codes
-k --keycodesdisplay only the interpreted keycodes (default).
Is it possible to write a script to use this function and still keep the function active until an interrupt is recieved?
View 6 Replies
View Related
Mar 1, 2011
I am running slackware-current and I have tcpdump-4.1.1-i486-1.txz installed. If I remember right libpcap used to be part of tcpdump, but since recently i cannot find it in my system anymore! Tools like nmap give me the error message:
"error while loading shared libraries: libpcap.so.1: cannot open shared object file: No such file or directory"
View 2 Replies
View Related
Jun 20, 2010
I am trying to install libpcap and tcpdump, but even if I have already installed Flex, as the terminal tells me to do. What else could I do?
Code:
configure: error: Your operating system's lex is insufficient to compile libpcap. Flex is a lex replacement that has many advantages, including being able to compile libpcap. For more information, see [URL].
View 1 Replies
View Related
May 27, 2011
I use libpcap to write a program to detect network device in Ubuntu but not sucess. The result is no suitable device found. How many reasons are there for that? The code i used is the main user page.
[code]
#define HAVE_REMOTE
#define WPCAP
#include <pcap.h>
#include <stdlib.h>
#include <sys/socket.h>
[Code]....
View 4 Replies
View Related
Dec 8, 2010
I am running Ubuntu Hardy Heron. Trying to configure a ax25 packet software to connect to the internet by way of a port called tun0 that I've created within the software. I can connect within the LAN but not outside. If I execute tcpdump while the tun0 is up, I first receive the message, "WARNING: arptype 65534 not supported by libpcap - falling back to cooked socket."Question: Does this warning relate to my connectivity issue and if so, how can I 'fix' the problem?
View 1 Replies
View Related
Oct 27, 2010
I am trying to install libpcap version 1 on my centos 5.5 (which supply libpcap 0.9.4 as built in). I need libpcap>=1.0 to install snort 2.9. I tried to install by downloading source code from tcpdump.org but failed to update libpcap-0.9.4 by libpcap-1.0.0.
View 4 Replies
View Related
Mar 11, 2011
How can I send and receive packets using libpcap, reply as early as possible.
View 1 Replies
View Related
Apr 6, 2010
i've been trying to "./configure" the bandwitdhd package. When i do it i get :
configure: error: Bandwidthd requires but cannot find libpcap
I have installed the libpcap and libpcap-devel:
linux-1a6o:/home/alex/bandwidthd-2.0.1 # locate libpcap
/alex/Win32/Prj/libpcap.dsp
/alex/Win32/Prj/libpcap.dsw
/usr/lib/libpcap.a
[Code]....
View 6 Replies
View Related
Jun 24, 2011
For compiling ArpON on my server the cmake command says 'libpcap not found' when a newer version libpcap-1.0.0-5.20091201git117cb5.fc13.i686.rpm is already exiting which I am unable to erase as other rpms depend on it.
View 5 Replies
View Related
Mar 24, 2011
I bought a multifunction stylus sx218 Espon model and I can not run the scanner function. I did some research and found a few solutions and very functional. I hope someone solves the problem. My version of openSUSE 11.2.
View 9 Replies
View Related
Nov 16, 2010
Code:
#include <iostream>
using namespace std;
[code]...
View 1 Replies
View Related
May 18, 2010
I am doing some Linux kernel programming for my research project. I need to record the timestamp (by using cpuid and rdtsc) when an interrupt handler (top half) is first invoked. Due to the time critical nature of the problem itself, I have to do the timestamping inside the interrupt handler itself (the first operation when the handler is called). However, I understand that tasks that are not so time critical should be deferred to a tasklet function (bottom half) for processing because other interrupts are disabled in a (top-half) interrupt handler. I am currently out of idea on how I can pass the timestamp information that I have obtained in the interrupt handler to the corresponding tasklet function.
View 2 Replies
View Related
Mar 30, 2011
I'm currently using OpenSuse 11.1 web server. This is bad since 11.1 is no longer supported. the reason why I am using it is because Function set_magic_quotes_runtime() was no longer being used. (so I was told)
That being said, is there a way to get Function set_magic_quotes_runtime() to function on the newer versions of OpenSuSE?
View 9 Replies
View Related
Jun 20, 2010
I looked on the net for such function or example and didin't find anything, thus after having made one i guess it would be legitimate to drop it to see what others thinks of it.
#!/bin/bash
addelementtoarray()
{
local arrayname=$1
[code]....
View 10 Replies
View Related
Mar 29, 2010
I am developing a function say my_abc() which does the same thing as kernel function abc(). Now I want that instead of using predefined kernel function kernel starts using my function. It might be possible that the kernel function has been used so many places.
View 7 Replies
View Related
Jun 19, 2010
If you set or export an environment variable in bash, you can unset it. If you set an alias in bash, you can unalias it. But there doesn't seem to be an unfunction.
Consider this (trivial) bash function, for example, set in a .bash_aliases file and read at shell initialization.
function foo () { echo "bar" ; }
How can I clear this function definition from my current shell? (Changing the initialization files or restarting the shell doesn't count.)
View 1 Replies
View Related
Jul 6, 2010
I've got a sticky little problem with a bash script. Please consider the following code:
Code:
#! /bin/bash
processArgs() {
echo "Count = $#"
while [[ $# -ne 0 ]]; do
echo $1
shift
done
}
processArgs $* If I call this script with Code: ./script first second third it'll print each of the argument on a new line - exactly what I would expect. However if I call it with
Code: ./script "Single Argument" "Second-Argument" it splits the first argument in two using the space as a delimitor. The problem appears to be the call to processArgs, where $* doesn't honour the quotes around the variables sent to the script.
View 4 Replies
View Related
Feb 25, 2010
I'd like a function in my .bashrc file that would allow me to pass text to it and echo the text to a specified file. I know it's simple as "echo 'text' >> file," but ideally, I would want to alias the function so I execute something like:
Code:
user~ $ write 'this is a test' with "write" being the function, and 'this is a test' being echoed to the file. I hope I explained that well enough.
View 3 Replies
View Related
Dec 23, 2010
Is there any function to delete a folder which has few files in it ?I tried rimdir() bit it can only delete empty folders; unlink() can not delete directory entries. any other function ?
View 7 Replies
View Related
Jan 21, 2011
i have been using turbo C for a while to do programing . can u plz let me know the replacement for clrscr() function in linux
View 1 Replies
View Related
Jun 23, 2011
what is the function of resize2fs command and how this command works internally , how it is related to inodenumber or does it format the partition
View 6 Replies
View Related
Jul 28, 2010
What i want to do is create multiple informix sql statements & later run them via a bash script.
Here is what i have so far (this works) but is meant to be run from a cron job so it only does one day at a time:
echo "
update hst`date --date='yesterday' +%m%d%y`
set x = 'GARP'
where y in ('CRE', 'LAC', 'SRL', 'JAG', 'JNM', 'BIM')
and appl = '';
[Code].....
The problem here is it doesnt want to read the variable $x correctly so the statement fails.
View 1 Replies
View Related
Jan 26, 2011
I had a dream least night in which I was on my computer and I was typing the command Netstat -a in command prompt in Ms-Dos. And I was wondering why it looks so much like a Linux terminal command? This question persisted in my mind after I woke up. So what is the story about it?
View 3 Replies
View Related
Jul 23, 2010
I have to unzip only files in zipped folder in current directory by c program. For that I am using system() function. This function returns zero.
when I write system("unzip -jo /storage/conf.zip") but folder will not be unzipped. Same will be successful if tried on command line.
View 1 Replies
View Related