Lines Matching refs:header
773 udp_header header;
774 if (gBufferModule->read(buffer, 0, &header,
785 source.SetPort(header.source_port);
786 destination.SetPort(header.destination_port);
802 udp_header& header = bufferHeader.Data();
815 source.SetPort(header.source_port);
816 destination.SetPort(header.destination_port);
821 uint16 udpLength = ntohs(header.udp_length);
831 if (header.udp_checksum != 0) {
832 // check UDP-checksum (simulating a so-called "pseudo-header"):
842 // remove UDP-header from buffer before passing it on
1026 // add and fill UDP-specific header:
1027 NetBufferPrepend<udp_header> header(buffer);
1028 if (header.Status() < B_OK)
1029 return header.Status();
1031 header->source_port = AddressModule()->get_port(buffer->source);
1032 header->destination_port = AddressModule()->get_port(buffer->destination);
1033 header->udp_length = htons(buffer->size);
1034 // the udp-header is already included in the buffer-size
1035 header->udp_checksum = 0;
1037 header.Sync();