crypto: fixed undefined dnet_offsetof macros usage