Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pcap_can_set_rfmon(3) [freebsd man page]

PCAP_CAN_SET_RFMON(3)					     Library Functions Manual					     PCAP_CAN_SET_RFMON(3)

NAME
pcap_can_set_rfmon - check whether monitor mode can be set for a not-yet-activated capture handle SYNOPSIS
#include <pcap/pcap.h> int pcap_can_set_rfmon(pcap_t *p); DESCRIPTION
pcap_can_set_rfmon() checks whether monitor mode could be set on a capture handle when the handle is activated. RETURN VALUE
pcap_can_set_rfmon() returns 0 if monitor mode could not be set, 1 if monitor mode could be set, PCAP_ERROR_NO_SUCH_DEVICE if the capture source specified when the handle was created doesn't exist, PCAP_ERROR_PERM_DENIED if the process doesn't have permission to check whether monitor mode could be supported, PCAP_ERROR_ACTIVATED if called on a capture handle that has been activated, or PCAP_ERROR if an error occurred. If PCAP_ERROR 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(3), pcap_create(3), pcap_activate(3), pcap_set_rfmon(3) 18 May 2010 PCAP_CAN_SET_RFMON(3)

Check Out this Related Man Page

PCAP_CAN_SET_RFMON(3PCAP)												 PCAP_CAN_SET_RFMON(3PCAP)

NAME
pcap_can_set_rfmon - check whether monitor mode can be set for a not-yet-activated capture handle SYNOPSIS
#include <pcap/pcap.h> int pcap_can_set_rfmon(pcap_t *p); DESCRIPTION
pcap_can_set_rfmon() checks whether monitor mode could be set on a capture handle when the handle is activated. RETURN VALUE
pcap_can_set_rfmon() returns 0 if monitor mode could not be set, 1 if monitor mode could be set, PCAP_ERROR_NO_SUCH_DEVICE if the capture source specified when the handle was created doesn't exist, PCAP_ERROR_PERM_DENIED if the process doesn't have permission to check whether monitor mode could be supported, PCAP_ERROR_ACTIVATED if called on a capture handle that has been activated, or PCAP_ERROR if an error occurred. If PCAP_ERROR 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_create(3PCAP), pcap_activate(3PCAP), pcap_set_rfmon(3PCAP) 18 May 2010 PCAP_CAN_SET_RFMON(3PCAP)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

"cannot display this video mode"

I have a Sun Blade 150 that I'm trying to connect to my Dell 1901FP LCD monitor. However, when I connect the workstation to the monitor and power up the workstation, the only thing I get on the screen is "cannot display this video mode". This workstation works fine connected to an CRT monitor. ... (1 Reply)
Discussion started by: here2learn
1 Replies

2. Shell Programming and Scripting

Capturing text between ()

Heyo all, I'm looking for the most effective way to capture the text in between a set of parenthesis. For example, my input is this(IBM WebSphereMQ Queue Manager Status): QMNAME(Q1) STATUS(Ended immediately) QMNAME(Q2) ... (7 Replies)
Discussion started by: sysera
7 Replies

3. Shell Programming and Scripting

Help with for loop within two scripts

Hello All, I have a problem in executing the following - I have a monitor.sh that kicks off and then the config.sh which sends message to the monitor.sh. So If I recieve a Failed message, the monitor.sh will kill the config.sh process and outputs a message. monitor.sh: message= FAILED... (3 Replies)
Discussion started by: chiru_h
3 Replies

4. Linux

fedora core 6 not supported for acer lcd monitor

hi all i brought a new acer 17" widescreen lcd monitor . fedora core linux 6 in not displaying on the monitor . giving a error input not supported please let me know wht i can do (1 Reply)
Discussion started by: nageshrk
1 Replies

5. AIX

monitor on rs/6000

I bought an old IBM RS/6000 9114-275 1,00 GHz + 4 GB with AIX 6 Beta preinstalled. I have a TFT monitor at home. There's no fitting connector on the server for it. Does anyone know what type of monitor, or cable is common for this type of machine? I just never had to deal with things like this at... (4 Replies)
Discussion started by: rein
4 Replies

6. Solaris

sun ultra 10 monitor

hi all, it seem hard to see on a regular monitor the ultra 10 converter to rgb so that it can go to a pc monitor. do u know how can i fix the monitor properly? it's not easy to see on the monitor there's so many lines. thanks in advance. (2 Replies)
Discussion started by: itik
2 Replies

7. HP-UX

monitor memory usuage

Hi, We have HP-UX 11.23 and i want to use glance utility to monitor the memory usuage. Can someone tell me how to sort by memory usuage in glance utility? Thx (1 Reply)
Discussion started by: rockcapri
1 Replies

8. Shell Programming and Scripting

not able to monitor the process

hi all I am running a script monitor using source command. the shell script monitor is used to execute a pl/sql procedure. when i do source monitor and then ps -ef | grep <procedure name> i do not get any info but when i do sh monitor and then ps -ef | grep <procedure name> i... (8 Replies)
Discussion started by: infyanurag
8 Replies

9. UNIX for Advanced & Expert Users

capture text from applications

i want to capture all text appearing on the screen, ie whatever the user is typing or whatever text contained in the application the user opens... how to do that... can anyone guide me plz... one solution is to hook the XDrawString library , but by doing that we are able to get the text from... (5 Replies)
Discussion started by: manchester
5 Replies

10. Emergency UNIX and Linux Support

How to monitor a process memory utilization?

hi frnds, I want to monitor a particular process very closly on how much memory it is taking. i tried with TOP and PRSTAT commands that is not giving what exactly i need. In my application, there is a memory leak happening, i want to know when it is occuering, means which transcation is... (9 Replies)
Discussion started by: vij_krr
9 Replies

11. Programming

From Processor To Display

What is the programming side of the keyboard's PrintScreen? When I hit this button, what is the computer doing to give me the image that my monitor is displaying? In the same arena, how does the computer tell the monitor what to display visually? I move the mouse and the cursor appears to be... (2 Replies)
Discussion started by: ciNG
2 Replies

12. Shell Programming and Scripting

Capturing content of a temporarily created file

Hi, Can you tell me some techniques to capture contents of a temporary file created by a script. The script runs and creates a file called process.$$, how can I capture the contents being written to the file without making any changes to the script that's creating the temp file. I have no... (3 Replies)
Discussion started by: wilsonee
3 Replies

13. Shell Programming and Scripting

How to monitor process that consumes 100% during more than 01 hour ?

Hi, On Linux RedHat 5 ( 2.6.18-194.el5 ) I need to monitor process that consumes 100% CPU during more than 01 Hour. Are there command lines ? scripts ? Regards, (11 Replies)
Discussion started by: htaieb1
11 Replies

14. Ubuntu

Ubuntu 16.04 doesn't detect my second monitor

I have Ubuntu 16.04 (dual boot with Windows 10) and a HP Spectre x360 laptop. I have recently bought a Dell Ultrasharp U2515H monitor, which I connect via a Dell docking station. When I plug the docking station to my laptop on Windows, both monitors are detected and everything works fine. ... (23 Replies)
Discussion started by: twelth_hour
23 Replies

15. Shell Programming and Scripting

Script to count matched string then check again from last read position

Hi all, I am currently trying to figure out how can i capture a particular string from a log file, then search again but from the last line it read before onward. Basically let's say that the check runs every 5 mins via cron, counting the number of matched strings "Cannot assign requested... (5 Replies)
Discussion started by: nms
5 Replies