473,406 Members | 2,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

What is the data-type of pcap?

In reading up on raw socket programming under RedHat 9.2,
I come across 'typedef struct pcap pcap_t' in pcap.h.
Ok, so pcap_t is of type pcap, but I can't find any
include file that tells me what pcap is itself. Ideas,
anyone?

--Tony
Nov 14 '05 #1
5 7762
Tony Gahlinger wrote:
In reading up on raw socket programming under RedHat 9.2,
I come across 'typedef struct pcap pcap_t' in pcap.h.
Ok, so pcap_t is of type pcap, but I can't find any
include file that tells me what pcap is itself. Ideas,
anyone?

--Tony


There's no requirement that struct pcap be defined, as long as there is
no attempt to use it's members or take it's size. If you need to find
out what it contains, try asking in a RedHat or Linux forum.
Nov 14 '05 #2
Tony Gahlinger <tg******@ieeeREMOVECAPS.org> writes:
In reading up on raw socket programming under RedHat 9.2,
I come across 'typedef struct pcap pcap_t' in pcap.h.
Ok, so pcap_t is of type pcap, but I can't find any
include file that tells me what pcap is itself. Ideas,
anyone?


Quite possibly you're not supposed to know. `struct pcap' might
be defined only in the implementation of pcap, with its contents
supposed to be opaque to users.
--
Go not to Usenet for counsel, for they will say both no and yes.
Nov 14 '05 #3
Tony Gahlinger wrote:

In reading up on raw socket programming under RedHat 9.2,
I come across 'typedef struct pcap pcap_t' in pcap.h.
Ok, so pcap_t is of type pcap, but I can't find any
include file that tells me what pcap is itself. Ideas,
anyone?

Your post is off-topic for comp.lang.c. Likely a linux newsgroup would
suit you. If pcap is a POSIX entity (and I don't recognize it at such)
then comp.unix.programmer would be useful.

Please visit:

http://www.csclub.uwaterloo.ca/u/dj3...lc-welcome.txt
http://www.eskimo.com/~scs/C-faq/top.html
http://benpfaff.org/writings/clc/off-topic.html

for posting guidelines and frequently asked questions. Thank you.

Brian Rodenborn
Nov 14 '05 #4
Tony Gahlinger <tg******@ieeeREMOVECAPS.org> writes:
I come across 'typedef struct pcap pcap_t' in pcap.h.
Ok, so pcap_t is of type pcap,


No, `pcap_t' is of type `struct pcap'.

Martin
Nov 14 '05 #5
"Martin Dickopp" <ex****************@zero-based.org> wrote in message
news:bu*************@news.t-online.com...
Tony Gahlinger <tg******@ieeeREMOVECAPS.org> writes:
I come across 'typedef struct pcap pcap_t' in pcap.h.
Ok, so pcap_t is of type pcap,


No, `pcap_t' is of type `struct pcap'.


No, 'pcap_t' is an alias for the type 'struct pcap'.
Nov 14 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ravi Tallury | last post by:
Hi We are having issues with our application, certain portions of it stop responding while the rest of the application is fine. I am attaching the Java Core dump. If someone can let me know what...
125
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
2
by: yee young han | last post by:
I need a fast data structure and algorithm like below condition. (1) this data structure contain only 10,000 data entry. (2) data structure's one entry is like below typedef struct _DataEntry_...
19
by: Charles Law | last post by:
Take a solution with a project hierarchy along the lines of an n-tier system, so that we have a data layer, business layer and presentation layer. The presentation layer is coupled to the business...
4
by: Hyphessobrycon | last post by:
Private Sub btnrubriekbij_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnrubriekbij.Click 'insert hier Dim cn As New OleDb.OleDbConnection(constr) Dim dc As...
1
by: Gg | last post by:
In attempt to file a combo box I had the following code - copied and modified the suggestion from Cur ( and thank you Cor) in other thread Dim Conn As New...
3
by: smorrey | last post by:
Howdy folks, I recently purchased a book on C++ MUD creation and it features alot of nifty tidbits. The book is MUD GAME PROGRAMMING by Ron Penton Publisher: Premier Press Anyways of...
4
by: Boki | last post by:
Hi All, I have a timer, if my data queue Q has data, the timer should start work, if there is no data in Q, the timer should stop. However, there is an event can fire timer to start. Should I...
4
by: Dave | last post by:
I have a global.asax file with Application_Start defined and create some static data there and in another module used in the asp.net application and I realize that static data is shared amongst...
1
by: truedecembr | last post by:
Hi everyone, I am brand new to Java and not really even sure what I'm doing... I'm supposed to be writing a Timer class that is part of a stop watch application, and it seems to me that the program...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.