| To: | jakub@xxxxxxxxxx |
|---|---|
| Subject: | Re: socklen_t instead of size_t in struct cmsghdr |
| From: | kuznet@xxxxxxxxxxxxx |
| Date: | Tue, 3 Oct 2000 22:23:26 +0400 (MSK DST) |
| Cc: | davem@xxxxxxxxxx, ak@xxxxxx, netdev@xxxxxxxxxxx |
| In-reply-to: | <20001002220155.P9588@sunsite.ms.mff.cuni.cz> from "Jakub Jelinek" at Oct 2, 0 10:01:55 pm |
| Sender: | owner-netdev@xxxxxxxxxxx |
Hello! > Yes, but the different alignment is because of the 64bit type in struct > cmsghdr. No! That's problem. Alignment of cmsgs is forced to unsigned long. Look at macros CMSG_* cmsgs may contain qword aligned objects (which also require translation, by the way). It is problem. F.e. I forced 32bit alignment in rtnetlink to help you and Dave. But thing, which is allowed there, can be not allowed with cmsgs. At least bad alignment smells like you are going to emulate 64bit interface on top of 32bit one. 8) Alexey |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [patch] tcp_tw in 2.4, kuznet |
|---|---|
| Next by Date: | Re: socklen_t instead of size_t in struct cmsghdr, Jakub Jelinek |
| Previous by Thread: | Re: socklen_t instead of size_t in struct cmsghdr, Jakub Jelinek |
| Next by Thread: | Re: socklen_t instead of size_t in struct cmsghdr, Jakub Jelinek |
| Indexes: | [Date] [Thread] [Top] [All Lists] |