cma_hdr
struct cma_hdr *hdr,
struct cma_hdr *hdr,
struct cma_hdr *hdr;
const struct cma_hdr *hdr = vhdr;
return sizeof(struct cma_hdr);
struct cma_hdr *cma_hdr;
cma_hdr = hdr;
cma_hdr->cma_version = CMA_VERSION;
cma_set_ip_ver(cma_hdr, 4);
cma_hdr->src_addr.ip4.addr = src4->sin_addr.s_addr;
cma_hdr->dst_addr.ip4.addr = dst4->sin_addr.s_addr;
cma_hdr->port = src4->sin_port;
cma_set_ip_ver(cma_hdr, 6);
cma_hdr->src_addr.ip6 = src6->sin6_addr;
cma_hdr->dst_addr.ip6 = dst6->sin6_addr;
cma_hdr->port = src6->sin6_port;
cma_ip6_clear_scope_id(&cma_hdr->src_addr.ip6);
cma_ip6_clear_scope_id(&cma_hdr->dst_addr.ip6);
static inline u8 cma_get_ip_ver(const struct cma_hdr *hdr)
static inline void cma_set_ip_ver(struct cma_hdr *hdr, u8 ip_ver)