Re: raw socket, IP_HDRINCL byteorder
[email protected] Thu, 26 Sep 2002 18:19:39 +0900
| Newsgroups | gmane.os.bsd.api.general |
|---|---|
| Message-ID | <[email protected]> |
>Can someone pull together the total semantics of IP_HDR_RAW (or >whatever we decide to call it?) I'd do this myself but I deleted some >of the earlier messages of this thread... >What about handling of ip_id and ip_sum? how about this. all fields are in network byteorder. outgoing: ip_len: the whole IP packet length (not the payload) ip_off: offset portion and MF bit has to be zero. ip_id: overwritten by the kernel ip_sum: overwritten by the kernel ip option: ???? interaction with IP_OPTIONS? incoming: ip_len: the whole IP packet length (not the payload) = as is ip_off: as is (same as the packet on the wire) ip_id: as is (same as the packet on the wire) ip_sum: as is (same as the packet on the wire) ip option: as is (same as the packet on the wire) itojun --------------------------------------------------------------------- The BSD APIs Discussion Mailing List To unsubscribe: send "unsubscribe bsd-api-discuss" to majordomo-DZEk9q7Sfju/3pe1ocb+swC/[email protected]