Displaying 3 results from an estimated 3 matches for "fragmentlength".
2017 Nov 21
2
[PATCH] EFI TCP buffer reuse bug
...cp_fill_buffer(struct inode *
iotoken.Packet.RxData = &rxdata;
rxdata.FragmentCount = 1;
- rxdata.DataLength = sizeof(databuf);
+ rxdata.DataLength = sizeof(socket->tcp_databuf);
frag = &rxdata.FragmentTable[0];
- frag->FragmentBuffer = databuf;
- frag->FragmentLength = sizeof(databuf);
+ frag->FragmentBuffer = socket->tcp_databuf;
+ frag->FragmentLength = sizeof(socket->tcp_databuf);
status = uefi_call_wrapper(tcp->Receive, 2, tcp, &iotoken);
if (status == EFI_CONNECTION_FIN) {
@@ -244,10 +241,8 @@ void core_tcp_fill_buffer(...
2016 Feb 28
0
[PATCH 0/1] UEFI UDP/TFTP
...- if (cb_status == 0)
- rv = 0;
- /* Reset */
- cb_status = -1;
-
- if (rv)
- goto bail;
-
- rxdata = token.Packet.RxData;
- frag = &rxdata->FragmentTable[0];
+ token = zalloc(sizeof(EFI_UDP4_COMPLETION_TOKEN));
+ if (!token)
+ goto bail;
- size = min(frag->FragmentLength, *buf_len);
- memcpy(buf, frag->FragmentBuffer, size);
- *buf_len = size;
+ txdata = zalloc(sizeof(EFI_UDP4_TRANSMIT_DATA));
+ if (!txdata)
+ goto bail;
- memcpy(src_port, &rxdata->UdpSession.SourcePort, sizeof(*src_port));
- memcpy(src_ip, &rxdata->UdpSession....
2016 Feb 24
6
[PATCH 2/5] ntfs: remove unused variable and have ntfssect use char API calls
The variable 'ok' is never used and generates a warning. Remove it. Also
ntfssect.c is designed to be compiled in non Unicode mode when using
MSVC compilers, so remove all ambiguity about it (LPCTSTR -> LPCSTR, use
of 'A' API calls) so that it doesn't break when compiled in Unicode
mode, which is what Rufus uses with MSVC.
-------------- next part --------------