一个假的Admin
获得 114 次赞
帮助过247人
我在某个大型工程中梳理出一些模块儿,想自己写个工程使用,有没有类似windows下vs一类的工程建立工具,只能自己写makefile吗?感觉这一锅内容不是短时间能学会的,曾经这样走过的大牛们给点心路历程或者支个招
看Strongswan的Android实现,发现Android自己的vpnService已经有使用了,那Strongswan的内容只实现IKE部分吗?
找到了Android客户端的源码的地址“wiki.strongswan.org/projects/strongswan/repository/entry/src/frontends/android”可是好像没有下载的地方,啥情况?回答1中最上边的download是整个工程的源码包下载,可是源码包里没有这部分Android的源码,坑就坑在这儿
Strongswan网站上直接下载的代码包中没有frontend部分的源码,而git中是有的,这是啥情况?除了用git clone还有没有别的方法下载完整的源码
/** * Method declaration/definition macro providing private and public interface. * * Defines a method name with this as first parameter and a return value ret * and an alias for this method with a _ prefix having the this argument * safely casted to the public interface iface. * _name is provided a function pointer but will get optimized out by GCC. */#define METHOD(iface name ret this ...) \ static ret name(union {iface *_public; this;} \ __attribute__((transparent_union)) ##__VA_ARGS__); \ static typeof(name) *_##name = (typeof(name)*)name; \ static ret name(this ##__VA_ARGS__)以上是Method的宏定义 ,以下是个真实的方法定义,来个大神给分析下METHOD(private_key_t get_type key_type_t private_openssl_rsa_private_key_t *this){ return KEY_RSA;}我把上面的宏替换了,大牛给解释下这儿的三句都实现了个啥功能吧 static key_type_t get_type (union {private_key_t *_public; this;} \ __attribute__((transparent_union)) ); \ static typeof(name) *_get_type = (typeof(get_type )*)get_type ; \ static key_type_t get_type (this )
在lwip的几乎最上层加了一些东西,udp协议pc直接给板发包收不到,板给pc发可以。发现pc发的arp包开发板不响应了,arp的响应时间有要求?改动导致反应时间过长?有人解决过类似问题吗?