The virtue of MACSec paired with the requirements of Confidentiality, Integrity, and Availability (CIA) results in CloudSec. In essence, CloudSec is MACSec-in-UDP using Transport Mode, similar to ESP-in-UDP in Transport Mode as described in RFC3948. In addition to the specifics of transporting MACSec encrypted data over IP networks, CloudSec also carries a UDP header for entropy as well as an encrypted payload for Network Virtualization use-cases.
可见该函数中会申请内存,而malloc内部会有锁.一旦在信号处理函数(冲断)中调用,可能导致重入,从而引起死锁.
同时该函数时线程安全的,可以在多线程中使用,因为内部有锁,保证了不可重入.