additional pointer into skb - where to initialize ??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

i have struct


typedef struct stat{
char probe[10];
int  cycle;
char sec[10];
char usec[10];
int id;
}stat;


i would like to add pointer (tab of pointers) to struct stat, into struct
skb (skbuff.h);

e.x

struct skb{
...

	char *data[5];

...
}


WHERE should i initialize (kmalloc) structures pointed to by *data[], to be
accesible just after skb was allocated...?


regards

adam

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux