头像-166593

一个假的Admin

  • 150
  • 硕士
  • 嵌入式
  • 汽车电子

个人成就

获得 114 次赞

帮助过247人

ubuntu下开发软件,如何进行模块调试?

我在某个大型工程中梳理出一些模块儿,想自己写个工程使用,有没有类似windows下vs一类的工程建立工具,只能自己写makefile吗?感觉这一锅内容不是短时间能学会的,曾经这样走过的大牛们给点心路历程或者支个招

transparent_union 是什么意思

transparent_union跟在attribute 后面,这个字在si中并没有识别成关键字,这是linux的自定义变量吗?

Android有有自己的VPN实现,安装IPsec用啥?

看Strongswan的Android实现,发现Android自己的vpnService已经有使用了,那Strongswan的内容只实现IKE部分吗?

终于找到的源码,只是怎么下载呢?

找到了Android客户端的源码的地址“wiki.strongswan.org/projects/strongswan/repository/entry/src/frontends/android”可是好像没有下载的地方,啥情况?回答1中最上边的download是整个工程的源码包下载,可是源码包里没有这部分Android的源码,坑就坑在这儿

为何Strongswan官网上下载的源码包中代码不全

Strongswan网站上直接下载的代码包中没有frontend部分的源码,而git中是有的,这是啥情况?除了用git clone还有没有别的方法下载完整的源码

在宏定义中两个#是啥意思,一般用来做啥

查看METHOD定义,发现里边有用两个#加变量名称来表达,这个表达 是啥意思,有人用过吗?

终于找到Method的定义,哪个大神给解释下

/** * 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 )​

arp协议开发板没有回复

在lwip的几乎最上层加了一些东西,udp协议pc直接给板发包收不到,板给pc发可以。发现pc发的arp包开发板不响应了,arp的响应时间有要求?改动导致反应时间过长?有人解决过类似问题吗?