diff options
author | shin <shin@FreeBSD.org> | 2000-03-03 11:13:12 +0000 |
---|---|---|
committer | shin <shin@FreeBSD.org> | 2000-03-03 11:13:12 +0000 |
commit | 73d476cc6479c6344b1bd61ca4519254b46d544c (patch) | |
tree | d561c1b7b5d50f03f48de22a70eff74d82d43c59 /sys/netinet6/ip6_output.c | |
parent | 91b0fd96fd89837d8fb4bcf2d16d5dca2213c1a4 (diff) | |
download | FreeBSD-src-73d476cc6479c6344b1bd61ca4519254b46d544c.zip FreeBSD-src-73d476cc6479c6344b1bd61ca4519254b46d544c.tar.gz |
CMSG_XXX macros alignment fixes to follow RFC2292.
Approved by: jkh
Submitted by: Partly from tech@openbsd
Reviewed by: itojun
Diffstat (limited to 'sys/netinet6/ip6_output.c')
-rw-r--r-- | sys/netinet6/ip6_output.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/ip6_output.c b/sys/netinet6/ip6_output.c index b901751..fb85454 100644 --- a/sys/netinet6/ip6_output.c +++ b/sys/netinet6/ip6_output.c @@ -1980,8 +1980,8 @@ ip6_setpktoptions(control, opt, priv) opt->ip6po_m = control; - for (; control->m_len; control->m_data += CMSG_ALIGN(cm->cmsg_len), - control->m_len -= CMSG_ALIGN(cm->cmsg_len)) { + for (; control->m_len; control->m_data += ALIGN(cm->cmsg_len), + control->m_len -= ALIGN(cm->cmsg_len)) { cm = mtod(control, struct cmsghdr *); if (cm->cmsg_len == 0 || cm->cmsg_len > control->m_len) return(EINVAL); |