diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-08-15 21:06:53 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-08-15 21:06:53 +0200 |
commit | adf0e7c6d710535951bbe23f96a186fa582a6074 (patch) | |
tree | 3fb8c9e1b02a3e971fe303a75945443269db867d /lib/sockopt.c | |
parent | Merge pull request #2844 from donaldsharp/unused (diff) | |
download | frr-adf0e7c6d710535951bbe23f96a186fa582a6074.tar.xz frr-adf0e7c6d710535951bbe23f96a186fa582a6074.zip |
lib, ripngd, zebra: Remove pre-solaris 9 special cased code
The CMSG_FIRSTHDR was broken on solaris pre version 9. Version 9
was released in May of 2002 and EOL'ed in 2014. Version 8 EOL'ed
in 2012. Remove special case code for a little used platform
that has not seen the light of day in a very long time.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/sockopt.c')
-rw-r--r-- | lib/sockopt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sockopt.c b/lib/sockopt.c index e979bef17..4ebc43815 100644 --- a/lib/sockopt.c +++ b/lib/sockopt.c @@ -73,7 +73,7 @@ static void *getsockopt_cmsg_data(struct msghdr *msgh, int level, int type) struct cmsghdr *cmsg; void *ptr = NULL; - for (cmsg = ZCMSG_FIRSTHDR(msgh); cmsg != NULL; + for (cmsg = CMSG_FIRSTHDR(msgh); cmsg != NULL; cmsg = CMSG_NXTHDR(msgh, cmsg)) if (cmsg->cmsg_level == level && cmsg->cmsg_type == type) return (ptr = CMSG_DATA(cmsg)); |