473,657 Members | 2,517 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 7777
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******@ieeeR EMOVECAPS.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.progr ammer 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******@ieeeR EMOVECAPS.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******@ieeeR EMOVECAPS.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
6803
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 the issue is. Thanks Ravi
125
14703
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 software giant such as Microsoft SQL Server, Oracle, and Sybase? Is PostgreSQL reliable enough to be used for high-end commercial application? Thanks
2
6452
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_ { char szInput; char szOutput; int iSum;
19
2883
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 layer, and the business layer is coupled to the data layer. So far so good. Suppose the data layer raises an event, and it passes Me (the sender) as an object, and e (MyEventArgs, a descendent of EventArgs) to the layer above (the business...
4
1159
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 New OleDb.OleDbCommand dc.Connection = cn
1
6237
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 OleDb.OleDbConnection(My.Settings.IeStringTmpConnectionString & ";Provider=SQLOLEDB") 'Dim Conn As New OleDb.OleDbConnection("Provider=SQLOLEDB;Data Source=.\IeStringTmp;user=SA;passwrod=;") 'Dim Conn As New OleDb.OleDbConnection(" Dim ad As New OleDb.OleDbDataAdapter("select code,...
3
2002
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 particular interest and what drew me to the book was the crossplatform threading library. But the problem is it appears to be broken at a single line of code,
4
1921
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 add a variable to know how many records inside Q ? Ya, I think so, because timer should use for unknown events, check it in a period.
4
4520
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 child apps of an IIS application and can be used by multiple users during the application life cycle and for multiple page loads for the same or different page under a root application. What I don't understand and need to know is whether that...
1
1616
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 is correct, but when I run the tester, it is obviously not. The goal is to enter a base and a time, and find time % base, then tell how many times it cycled back to zero. I don't know what is wrong with my program, because it appears to me that it...
0
8397
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8310
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8732
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8605
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7333
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6167
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4158
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2731
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1957
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.