Sponsored Content
Full Discussion: Acess HD from live CD
Top Forums UNIX for Dummies Questions & Answers Acess HD from live CD Post 302071892 by jjvacc on Tuesday 25th of April 2006 11:36:22 AM
Old 04-25-2006
Alright, thanks..I'll check it out sometime.

-John
 

8 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

compare files acess time

I need to compare x file with y file. If x file is newer than y file do xxxx; (I used touch -t yymmddxxx to chnage the time for y file) How can i do that? I tried use if then echo "Xxx";; fi But cant....any other good ways to do it? (2 Replies)
Discussion started by: AkumaTay
2 Replies

2. IP Networking

router and internat acess

Hello, My 2nd post... Here is my case: Now, I have a router. I have installed fresh freebsd and apache web server. I opened port 80 in router...and I am unable to access to it within my network if I use my 'external' IP. People not from my network however can acess to it. I also installed... (3 Replies)
Discussion started by: kasia
3 Replies

3. UNIX for Dummies Questions & Answers

Acess DAT with SCO 3.2

Hi, I've just get a SCO UNIX computer that includes DAT reader. This computer also run a professionnal software i do not know. It runs Kornshell too. I tried so use ls /dev/rmt, but I always have the same files... so, I think /dev/rmt is not the right file. My question is : how can I get... (1 Reply)
Discussion started by: chodaboy
1 Replies

4. UNIX for Dummies Questions & Answers

Acess to X server on AIX

Hello, I want to allow all users on my server (AIX 5.3) to have access to X server. If they export DISPLAY=localhost:0.0, they should be able do use X server on the same machine. What should I do to do it? I've read that I must create the /etc/X0.hosts file and place in it localhost. Would it be... (0 Replies)
Discussion started by: piooooter
0 Replies

5. AIX

Ftp acess problem

Hello I've just installed openSSL and SSH on my AIX 5.3 TL04 and started having a problem with acces to ftp. When I try to log in to ftp on my AIX server, I always get message like this: "530 User root access denied". The same problem occurres with all users. Can anyone help me? Regards Pit (3 Replies)
Discussion started by: piooooter
3 Replies

6. Programming

How to acess unix from windows

Hai Everyone, I am newcomer to UNIX. I am interested to write a prograame in windows which connects to unix server and executing a script and return the result. Is it possibele or not. Please suggest me. Thank you in advance. With Regards sanjeeb (3 Replies)
Discussion started by: Sanjeeb
3 Replies

7. Ubuntu

Wireless Acess Point Mapping

I am doing a site survey for possibly a new contract and am using kismet for analysis. The are several buildings and was wondering if there was a utility that will map out the location of access points o report and to help out with analyses. Is there anything in the open source community that can... (0 Replies)
Discussion started by: metallica1973
0 Replies

8. What is on Your Mind?

Update: UserCP Screeching Frog 0.7641 - Changed Live Chat to Live Updates

Update: UserCP Screeching Frog 0.7641 - Changed Live Chat to Live Updates In this version of the UserCP, I have changed "Live Chat" to "Live Updates" by disabling the ability to post in the "live chat" area and changed the name to "Live Updates" The reason for this change is that experienced... (6 Replies)
Discussion started by: Neo
6 Replies
PCAP_LOOP(3PCAP)														  PCAP_LOOP(3PCAP)

NAME
pcap_loop, pcap_dispatch - process packets from a live capture or savefile SYNOPSIS
#include <pcap/pcap.h> typedef void (*pcap_handler)(u_char *user, const struct pcap_pkthdr *h, const u_char *bytes); int pcap_loop(pcap_t *p, int cnt, pcap_handler callback, u_char *user); int pcap_dispatch(pcap_t *p, int cnt, pcap_handler callback, u_char *user); DESCRIPTION
pcap_loop() processes packets from a live capture or ``savefile'' until cnt packets are processed, the end of the ``savefile'' is reached when reading from a ``savefile'', pcap_breakloop() is called, or an error occurs. It does not return when live read timeouts occur. A value of -1 or 0 for cnt is equivalent to infinity, so that packets are processed until another ending condition occurs. pcap_dispatch() processes packets from a live capture or ``savefile'' until cnt packets are processed, the end of the current bufferful of packets is reached when doing a live capture, the end of the ``savefile'' is reached when reading from a ``savefile'', pcap_breakloop() is called, or an error occurs. Thus, when doing a live capture, cnt is the maximum number of packets to process before returning, but is not a minimum number; when reading a live capture, only one bufferful of packets is read at a time, so fewer than cnt packets may be processed. A value of -1 or 0 for cnt causes all the packets received in one buffer to be processed when reading a live capture, and causes all the packets in the file to be processed when reading a ``savefile''. (In older versions of libpcap, the behavior when cnt was 0 was undefined; different platforms and devices behaved differently, so code that must work with older versions of libpcap should use -1, nor 0, as the value of cnt.) callback specifies a pcap_handler routine to be called with three arguments: a u_char pointer which is passed in the user argument to pcap_loop() or pcap_dispatch(), a const struct pcap_pkthdr pointer pointing to the packet time stamp and lengths, and a const u_char pointer to the first caplen (as given in the struct pcap_pkthdr a pointer to which is passed to the callback routine) bytes of data from the packet. The struct pcap_pkthdr and the packet data are not to be freed by the callback routine, and are not guaranteed to be valid after the callback routine returns; if the code needs them to be valid after the callback, it must make a copy of them. RETURN VALUE
pcap_loop() returns 0 if cnt is exhausted, -1 if an error occurs, or -2 if the loop terminated due to a call to pcap_breakloop() before any packets were processed. It does not return when live read timeouts occur; instead, it attempts to read more packets. pcap_dispatch() returns the number of packets processed on success; this can be 0 if no packets were read from a live capture (if, for example, they were discarded because they didn't pass the packet filter, or if, on platforms that support a read timeout that starts before any packets arrive, the timeout expires before any packets arrive, or if the file descriptor for the capture device is in non-blocking mode and no packets were available to be read) or if no more packets are available in a ``savefile.'' It returns -1 if an error occurs or -2 if the loop terminated due to a call to pcap_breakloop() before any packets were processed. If your application uses pcap_breakloop(), make sure that you explicitly check for -1 and -2, rather than just checking for a return value < 0. If -1 is returned, pcap_geterr() or pcap_perror() may be called with p as an argument to fetch or display the error text. SEE ALSO
pcap(3PCAP), pcap_geterr(3PCAP), pcap_breakloop(3PCAP) 24 December 2008 PCAP_LOOP(3PCAP)
All times are GMT -4. The time now is 06:20 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy