|
楼主 |
发表于 2010-3-18 15:59:38
|
显示全部楼层
显示是下面的字符串拷贝出错,感觉是info没分配空间,但
strncpy(info->protocol, line, MAX_PROTOCOL_LEN);
但它是
static int parse(int c, char **argv, int invert, unsigned int *flags,
const struct ipt_entry *entry, unsigned int *nfcache,
struct ipt_entry_match **match)
{
struct ipt_layer7_info *layer7info =
(struct ipt_layer7_info *)(*match)->data;
由iptables提供的空间啊?!! |
|