Home
last modified time | relevance | path

Searched refs:CMSG_ALIGN (Results 1 – 7 of 7) sorted by relevance

/linux-4.4.14/include/linux/
Dsocket.h93 #define CMSG_ALIGN(len) ( ((len)+sizeof(long)-1) & ~(sizeof(long)-1) ) macro
95 #define CMSG_DATA(cmsg) ((void *)((char *)(cmsg) + CMSG_ALIGN(sizeof(struct cmsghdr))))
96 #define CMSG_SPACE(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + CMSG_ALIGN(len))
97 #define CMSG_LEN(len) (CMSG_ALIGN(sizeof(struct cmsghdr)) + (len))
130 __ptr = (struct cmsghdr*)(((unsigned char *) __cmsg) + CMSG_ALIGN(__cmsg->cmsg_len)); in __cmsg_nxthdr()
/linux-4.4.14/net/ipv6/
Dexthdrs.c746 *p += CMSG_ALIGN(ipv6_optlen(*hdr)); in ipv6_renew_option()
755 *p += CMSG_ALIGN(newoptlen); in ipv6_renew_option()
773 tot_len += CMSG_ALIGN(ipv6_optlen(opt->hopopt)); in ipv6_renew_options()
775 tot_len += CMSG_ALIGN(ipv6_optlen(opt->dst0opt)); in ipv6_renew_options()
777 tot_len += CMSG_ALIGN(ipv6_optlen(opt->srcrt)); in ipv6_renew_options()
779 tot_len += CMSG_ALIGN(ipv6_optlen(opt->dst1opt)); in ipv6_renew_options()
783 tot_len += CMSG_ALIGN(newoptlen); in ipv6_renew_options()
Dip6_flowlabel.c362 olen = optlen - CMSG_ALIGN(sizeof(*freq)); in fl_create()
385 if (copy_from_user(fl->opt+1, optval+CMSG_ALIGN(sizeof(*freq)), olen)) in fl_create()
/linux-4.4.14/net/
Dcompat.c145 CMSG_ALIGN(sizeof(struct cmsghdr))); in cmsghdr_from_user_compat_to_kern()
146 tmp = CMSG_ALIGN(tmp); in cmsghdr_from_user_compat_to_kern()
172 CMSG_ALIGN(sizeof(struct cmsghdr))); in cmsghdr_from_user_compat_to_kern()
173 if ((char *)kcmsg_base + kcmlen - (char *)kcmsg < CMSG_ALIGN(tmp)) in cmsghdr_from_user_compat_to_kern()
176 tmp = CMSG_ALIGN(tmp); in cmsghdr_from_user_compat_to_kern()
/linux-4.4.14/net/core/
Dscm.c74 num = (cmsg->cmsg_len - CMSG_ALIGN(sizeof(struct cmsghdr)))/sizeof(int); in scm_fp_copy()
/linux-4.4.14/net/rxrpc/
Dar-output.c51 len = cmsg->cmsg_len - CMSG_ALIGN(sizeof(struct cmsghdr)); in rxrpc_sendmsg_cmsg()
/linux-4.4.14/net/ipv4/
Dip_sockglue.c251 err = cmsg->cmsg_len - CMSG_ALIGN(sizeof(struct cmsghdr)); in ip_cmsg_send()