Searched refs:headerLength (Results 1 – 7 of 7) sorted by relevance
/haiku/src/servers/syslog_daemon/ |
H A D | syslog_output.cpp | 121 int32 headerLength; in syslog_output() local 151 headerLength = pos + strlcpy(header + pos, ": ", sizeof(header) - pos); in syslog_output() 152 if (headerLength >= (int32)sizeof(header)) in syslog_output() 153 headerLength = sizeof(header) - 1; in syslog_output() 167 strlcpy(buffer + headerLength, message.message + pos, length + 1); in syslog_output() 170 length = strlcpy(buffer + headerLength, message.message + pos, in syslog_output() 171 sizeof(buffer) - headerLength); in syslog_output() 176 length += headerLength; in syslog_output() 182 && !strncmp(buffer + headerLength, sLastMessage, in syslog_output() 196 strlcpy(sLastMessage, buffer + headerLength, sizeof(sLastMessage)); in syslog_output()
|
/haiku/src/system/boot/loader/net/ |
H A D | IP.cpp | 93 int headerLength = header->header_length * 4; in HandleEthernetPacket() local 94 if (headerLength < 20 || headerLength > (int)size in HandleEthernetPacket() 115 (uint8*)data + headerLength, in HandleEthernetPacket() 116 ntohs(header->total_length) - headerLength); in HandleEthernetPacket()
|
/haiku/src/add-ons/kernel/network/protocols/ipv4/ |
H A D | ipv4.cpp | 616 uint16 headerLength = originalHeader->HeaderLength(); in send_fragments() local 617 uint32 bytesLeft = buffer->size - headerLength; in send_fragments() 621 net_buffer* headerBuffer = gBufferModule->split(buffer, headerLength); in send_fragments() 632 mtu -= headerLength; in send_fragments() 642 header->total_length = htons(fragmentLength + headerLength); in send_fragments() 647 headerLength); in send_fragments() 666 status = gBufferModule->prepend(fragmentBuffer, header, headerLength); in send_fragments() 1727 uint16 headerLength = 0; in ipv4_receive_data() local 1740 headerLength = header.HeaderLength(); in ipv4_receive_data() 1742 || headerLength < sizeof(ipv4_header)) in ipv4_receive_data() [all …]
|
/haiku/src/add-ons/kernel/partitioning_systems/session/ |
H A D | Disc.cpp | 188 int headerLength = B_BENDIAN_TO_HOST_INT16(header->length); in dump_full_table_of_contents() local 190 if (dataLength < headerLength) { in dump_full_table_of_contents() 192 "enough (%d < %d)\n", dataLength, headerLength)); in dump_full_table_of_contents() 193 headerLength = dataLength; in dump_full_table_of_contents() 199 TRACE((" length = %d\n", headerLength)); in dump_full_table_of_contents() 203 int count = (headerLength - 2) / sizeof(cdrom_full_table_of_contents_entry); in dump_full_table_of_contents()
|
/haiku/src/add-ons/kernel/network/protocols/tcp/ |
H A D | tcp.cpp | 698 uint16 headerLength = header.HeaderLength(); in tcp_receive_data() local 699 if (headerLength < sizeof(tcp_header)) in tcp_receive_data() 721 process_options(segment, buffer, headerLength - sizeof(tcp_header)); in tcp_receive_data() 723 bufferHeader.Remove(headerLength); in tcp_receive_data()
|
/haiku/src/kits/mail/ |
H A D | mail_util.cpp | 1416 int32 headerLength = header.Length(); in extract_from_header() local 1436 crPos = headerLength; in extract_from_header() 1445 if (crPos >= headerLength) in extract_from_header()
|
/haiku/src/kits/debugger/dwarf/ |
H A D | DwarfFile.cpp | 2067 uint64 headerLength = dwarf64 in _ParseLineInfo() local 2071 if ((uint64)dataReader.BytesRemaining() < headerLength) in _ParseLineInfo() 2114 TRACE_LINES(" headerLength: %" B_PRIu64 "\n", headerLength); in _ParseLineInfo() 2282 if ((uint64)readerOffset > readerOffset + headerLength) in _ParseLineInfo() 2284 off_t offsetToProgram = headerOffset + headerLength - readerOffset; in _ParseLineInfo()
|