The invocation of sizeof() does not cover the whole allocated memory for IKE SA. That structure has the pointers of other nested structures, the pointers of keys and so on.
2019년 8월 13일 (화) 오후 7:38, Damjan Marion <[email protected]>님이 작성: > > > > On 13 Aug 2019, at 05:01, [email protected] wrote: > > > > Hi, all > > > > I'd like to measure the allocated memory size for the whole structure of > IKE SA (ikev2_sa_t). > > Because ikev2_sa_t has many other struct types, it is not simple for me > to measure the memory size. > > > > Is there any method like API or other function calls to measure the > memory size for IKE SA? > > > maybe print sizeof (ikev2_sa_t) ? > > -- Gmail 모바일에서 보낸 메일
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#13721): https://lists.fd.io/g/vpp-dev/message/13721 Mute This Topic: https://lists.fd.io/mt/32848977/21656 Group Owner: [email protected] Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
