problem with netfilter hook function struct skbuff *sock is null..
iam trying to built a firewall.so i have used netfilter for it.
in function main_hook sock_buff is returning null and in my log file continuously "sock buff null" is printed plse help to solve this problem..
(using print_string iam printing strings on current terminal (terminal we ping))
Friends I'm facing a big problem trying to extend the netfilter. Somone please help me with your quick reply (any hint) as I've to meet a deadline.
My problem is that I've written a new netfilter target module and its corresponding userspace program for iptables to change the packet type of a... (0 Replies)
I receive an integer as argument for a function.
within function definition i want it to be of type struct tm.
eg..
main()
{
int a;
......
}
function(...,..,a,..)
int a;
{
struct tm tm;
if(!a)
^ time(&a);
^ ... (4 Replies)
I have a struct as follows...
struct A
{
int a;
ucontext_t X; //ucontext_t is another structure
}
How do I define a pointer to the above structure variable X of the type ucontext_t from within another function?
eg. void foo()
{
struct A a;
/////WHAT COMES IN... (1 Reply)
hi am senthil
am doing my server-client prog in C++ to send and receive sms through the API ..
in which server is a webserver(remote server)
and my prog act as a client..
i will form a url based on the HTTP 1.0 protocol..
and hit the server through socket send funtion..
by hitting the... (1 Reply)
Hey Guys,
I need your help where I have a C structure and I want it to be converted into corresponding function.
Example:
typedef struct
{
unsigned long LineNum; //1025-4032
unsigned short KeyNum; /*tbd*/
char Key; /*between 1-3*/... (1 Reply)
I have the following code and getting the compilation errors
baseLib/DynBaseObj.h:80: error: expected constructor, destructor, or type conversion before ‘(' token
baseLib/DynBaseObj.h:89: error: expected constructor, destructor, or type conversion before ‘(' token
baseLib/DynBaseObj.h:101:... (0 Replies)
Hello,
i'm trying to implement the times() function and i'm programming in C.
I'm using the "struct tms" structure which consists of the fields:
The tms_utime structure member is the CPU time charged for the execution of user instructions of the calling process.
The tms_stime structure... (1 Reply)
Hi,
I have received an application that stores some properties in a file. The existing struct looks like this:
struct TData
{
UINT uSizeIncludingStrings;
// copy of Telnet data struct
UINT uSize;
// basic properties:
TCHAR szHost; //defined in Sshconfig
UINT iPortNr;
TCHAR... (2 Replies)
I have this code where I have declared a struct with some functions. Trying to write the function implementation outside the struct declaration and do not know how to proceed.
#ifndef ParseEl_hh
#define ParseEl_hh
#include <iostream>
#include <fstream>
#include "DynBaseObj.hh"... (7 Replies)
Hi All,
I am using malloc function for allocating dynamic memory.
When I am using below code on Linux server its working fine, but When I am trying the same code on HP UNIX server its returning NULL.
below is a fragment of code in which it is giving problem.
tmp = (format_tree... (4 Replies)
Discussion started by: Taher Saifuddin
4 Replies
LEARN ABOUT CENTOS
struct_ieee80211_tx_rate_control
STRUCT IEEE80211_TX_(9) Rate control interface STRUCT IEEE80211_TX_(9)NAME
struct_ieee80211_tx_rate_control - rate control information for/from RC algo
SYNOPSIS
struct ieee80211_tx_rate_control {
struct ieee80211_hw * hw;
struct ieee80211_supported_band * sband;
struct ieee80211_bss_conf * bss_conf;
struct sk_buff * skb;
struct ieee80211_tx_rate reported_rate;
bool rts;
bool short_preamble;
u8 max_rate_idx;
u32 rate_idx_mask;
u8 * rate_idx_mcs_mask;
bool bss;
};
MEMBERS
hw
The hardware the algorithm is invoked for.
sband
The band this frame is being transmitted on.
bss_conf
the current BSS configuration
skb
the skb that will be transmitted, the control information in it needs to be filled in
reported_rate
The rate control algorithm can fill this in to indicate which rate should be reported to userspace as the current rate and used for
rate calculations in the mesh network.
rts
whether RTS will be used for this frame because it is longer than the RTS threshold
short_preamble
whether mac80211 will request short-preamble transmission if the selected rate supports it
max_rate_idx
user-requested maximum (legacy) rate (deprecated; this will be removed once drivers get updated to use rate_idx_mask)
rate_idx_mask
user-requested (legacy) rate mask
rate_idx_mcs_mask
user-requested MCS rate mask (NULL if not in use)
bss
whether this frame is sent out in AP or IBSS mode
AUTHOR
Johannes Berg <johannes@sipsolutions.net>
Author.
COPYRIGHT Kernel Hackers Manual 3.10 June 2014 STRUCT IEEE80211_TX_(9)