4,436
社区成员
发帖
与我相关
我的任务
分享
我现在获取到v6地址:
iph6 = ipv6_hdr(skb);
现在想要修改目标地址怎么设置?
我的代码如下
iph6->daddr = in_aton("64:ff9b::c0a8:6437");
这里就报错了,
./include/linux/inet.h:52:15: note: expected ‘const char *’ but argument is of type ‘char **’
extern __be32 in_aton(const char *str);
如果是ipv4地址就没问题,请问应该怎么办?
求大神帮忙!在线急