Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uwm.edu!bionet!agate!ucbvax!NUSDISCS.BITNET!TAYBENGH From: TAYBENGH@NUSDISCS.BITNET (THE AGEIS) Newsgroups: comp.protocols.tcp-ip Subject: Is the data received using recvfrom() in SOCK_RAW fragmented by IP? Message-ID: <912473B7FC7F400347@nusdiscs.bitnet> Date: 12 Apr 91 04:44:21 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 15 X-Unparsable-Date: Wed, 10 Apr 91 16:42 SST Hi netlander, In BSD socket, one can implement a new protocol on top of IP using SOCK_RAW with the designated protocol number. Then, one can receive the data using recvfrom() call. The recvfrom() returns the data with the IP header. So far so good. But if the sender sends large amount of data in one single send(), and the IP layer needs to fragment the data to a few packets, then can we receive the data in onr single recvfrom() [Note: this implies the IP layer on the receiver side re-assemble all the packets b4 passing the data up to us]? Or do we need to take care of the fragments ourself by inspecting the IP header and do re-assemble if necessary? Which one is true? Could somebody shed some light on me please? Thanks a lot. - Beng Hang (email: taybengh@nusdiscs.bitnet)