Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\net\xfrm.h Create Date:2022-07-28 19:14:11
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:xfrm_flowi_addr_get

Proto:static inline void xfrm_flowi_addr_get(const struct flowi *fl, xfrm_address_t *saddr, xfrm_address_t *daddr, unsigned short family)

Type:void

Parameter:

TypeParameterName
const struct flowi *fl
xfrm_address_t *saddr
xfrm_address_t *daddr
unsigned shortfamily
1263  Case family == Internet IP Protocol
1264  memcpy( & a4, & (saddr,daddr) must be grouped, same order as in IP header , size of a4 )
1265  memcpy( & a4, & daddr, size of a4 )
1266  Break
1267  Case family == IP version 6
1268  in6 = saddr
1269  in6 = daddr
1270  Break