02-13-2013
I see nothing wrong with how you assign packet structures or accessing them, I think there is something wrong with how you save/display them. What is 'pktFeatures'? I guess it has to be a global variable because I do not see you defining/declaring it anywhere in the code snippet. Should not use global variables in critical parts like this because they can not be put into registers, meaning code is not going to be anywhere as fast as with local variables, also your code automatically is not thread/signal safe.
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How do I use snoop command to capture multicast packets in the network? (1 Reply)
Discussion started by: caden312
1 Replies
2. AIX
Hi,
I am using smitty to create and configure a print queue. I am giving a print of a text file to the print queue created. I am using this in network.
How to capture network packets of the print from AIX to the printer and printer to AIX.
I tried Wireshark to capture network packets.
I am... (16 Replies)
Discussion started by: meeraramanathan
16 Replies
3. Infrastructure Monitoring
Hi,
I want to capture snmp packets in AIX.
When i give print from AIX6.1, Printer will give its response thru' snmp.
I used iptrace command like below, but it is not capturing snmp packets other packets are captured like udp, tcp..
1. iptrace command:
/usr/sbin/iptrace -a -i en0... (1 Reply)
Discussion started by: meeraramanathan
1 Replies
4. IP Networking
Hi,
I want to capture a certain type of packets (selected according to the protocol) coming to my PC and then transmit them to another PC. I had the idea to use tcpdump to filter input packets and extract those chosen. Well my questions are:
1- after filtering input packets, those that have not... (1 Reply)
Discussion started by: ziedf
1 Replies
5. Programming
Hello
I try to send DHCP RENEW packets to the network and receive the responses. I broadcast the packet and I can see that it's successfully sent using Wireshark. But I have difficulties receiving the responses.I use packet sockets to catch the packets. I can see that there are responses to my... (0 Replies)
Discussion started by: xyzt
0 Replies
6. Programming
can anyone tell me how can i capture the packets. i have tried ethernet software to capture them but its not doing what i want it to do it (1 Reply)
Discussion started by: dazdseg
1 Replies
7. Programming
Hi, I have got sample linux driver written in C.
I got also some assembly code, compiled into .o file (using as compiler).
In my Makefile I got:
obj-m += someDriver.o
someDriver-objs := CFile1.o CFile2.o ASMFile.o
default:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modulesUnfortunatelly I cannot... (0 Replies)
Discussion started by: Chrisdot
0 Replies
8. UNIX for Advanced & Expert Users
Hi,
Its been a long time since i programmed a multithreaded application that can do Tx and Rx of datagrams over unix sockets.
I well remember that though the threads were efficiently designed to be independent of each other, and was writing to different sockets, there was a limitation ,... (0 Replies)
Discussion started by: binnyjeshan
0 Replies
LEARN ABOUT DEBIAN
gen-ctl-io
GEN-CTL-IO(1) libctl GEN-CTL-IO(1)
NAME
gen-ctl-io - generate C interface code for libctl control files
SYNOPSIS
gen-ctl-io [OPTION]... [spec-file]
DESCRIPTION
gen-ctl-io generates C code to import/export the input/output variables used in a libctl control file. gen-ctl-io generates files like
ctl-io.h and ctl-io.c. These files define global variables, data structures, and functions for the input/output variables, classes, and
function interfaces defined in the spec-file argument, automating the interaction between C and Guile.
The arguments such as --code and --header are used to control whether ctl-io.c or ctl-io.h, etcetera, are generated. If no argument is
specified then both of these files are generated by default, for backwards compatibility.
libctl is a free library to aid in interfacing scientific software with the GNU Guile scripting and extension language. Documentation for
it may be found online at the libctl home page: http://ab-initio.mit.edu/libctl
OPTIONS
--code Generate C (or C++) source code to implement the Guile interface functions. The default output file name is ctl-io.c (in C) or ctl-
io.cpp (in C++).
--header
Generate the header file declaring the interface data types and functions. The default output file name is ctl-io.h (in C) or ctl-
io.hpp (in C++).
--swig Generate a SWIG interface definition file declaring automatic conversions for the various libctl data types. The default output
file name is ctl-io.i.
--cxx Generate C++ code instead of C code.
-o file
Use file as the output file name instead of the defaults (above).
BUGS
Send bug reports to S. G. Johnson, stevenj@alum.mit.edu.
AUTHORS
Written by Steven G. Johnson.
libctl March 27, 2006 GEN-CTL-IO(1)