Searched defs:packet (Results 1 - 25 of 83) sorted by relevance

1234

/freebsd-10-stable/sbin/dhclient/tests/
H A Dfake.c56 bootp(struct packet *packet) argument
61 dhcp(struct packet *packet) argument
/freebsd-10-stable/sys/boot/i386/common/
H A Ddrv.c56 static struct edd_packet packet; variable in typeref:struct:edd_packet
[all...]
/freebsd-10-stable/crypto/heimdal/appl/test/
H A Dtcp_client.c46 krb5_data packet; local
H A Dtcp_server.c48 krb5_data packet; local
[all...]
H A Duu_client.c51 krb5_data packet; local
H A Duu_server.c48 krb5_data packet; local
/freebsd-10-stable/crypto/heimdal/lib/krb5/
H A Dread_message.c79 krb5_data packet; local
96 krb5_data packet; local
H A Dwrite_message.c63 krb5_data packet; local
80 krb5_data packet; local
/freebsd-10-stable/sys/dev/wtap/
H A Dif_medium.h41 struct packet { struct
/freebsd-10-stable/tools/regression/netipx/ipxdgramloopback/
H A Dipxdgramloopback.c51 u_char packet[PACKETLEN]; local
[all...]
/freebsd-10-stable/lib/libc/resolv/
H A Dres_update.c100 u_char *packet; local
/freebsd-10-stable/sys/netinet/
H A Daccf_dns.c42 struct packet { struct
/freebsd-10-stable/tools/regression/netipx/spxloopback/
H A Dspxloopback.c52 packet_fill(u_char *packet) argument
61 packet_check(u_char *packet, size_t totlen, ssize_t len) argument
75 u_char packet[PACKETLEN]; local
101 u_char packet[PACKETLEN]; local
[all...]
/freebsd-10-stable/tools/tools/ether_reflect/
H A Dether_reflect.c75 unsigned char *packet = NULL; local
[all...]
/freebsd-10-stable/tools/tools/netrate/netblast/
H A Dnetblast.c68 blast_loop(int s, long duration, u_char *packet, u_int packet_len) argument
146 char *dummy, *packet; local
/freebsd-10-stable/contrib/gdb/gdb/
H A Dxmodem.c163 xmodem_send_packet (struct serial *desc, unsigned char *packet, int len, int hashmark) argument
[all...]
/freebsd-10-stable/contrib/ldns/
H A Dhost2wire.c228 ldns_hdr2buffer_wire(ldns_buffer *buffer, const ldns_pkt *packet) argument
267 ldns_pkt2buffer_wire(ldns_buffer *buffer, const ldns_pkt *packet) argument
375 ldns_pkt2wire(uint8_t **dest, const ldns_pkt *packet, size_t *result_size) argument
[all...]
H A Dwire2host.c364 ldns_wire2pkt_hdr(ldns_pkt *packet, const uint8_t *wire, size_t max, size_t *pos) argument
392 ldns_buffer2pkt_wire(ldns_pkt **packet, ldns_buffer *buffer) argument
406 ldns_pkt *packet = ldns_pkt_new(); local
[all...]
/freebsd-10-stable/contrib/llvm/tools/lldb/source/Plugins/Process/gdb-remote/
H A DGDBRemoteCommunicationServer.cpp111 StringExtractorGDBRemote packet; local
357 char packet[16]; local
359 assert(packet_len < (int)sizeof(packet)); return SendPacketNoLock (packet, packet_len); } GDBRemoteCommunication::PacketResult GDBRemoteCommunicationServer::SendOKResponse () { return SendPacketNoLock (�, 2); } bool GDBRemoteCommunicationServer::HandshakeWithClient(Error *error_ptr) { return GetAck() == PacketResult::Success; } GDBRemoteCommunication::PacketResult GDBRemoteCommunicationServer::Handle_qHostInfo (StringExtractorGDBRemote &packet) { StreamString response; ArchSpec host_arch (Host::GetArchitecture ()); const llvm::Triple &host_triple = host_arch.GetTriple(); response.PutCString(�); response.PutCStringAsRawHex8(host_triple.getTriple().c_str()); response.Printf (�,host_arch.GetAddressByteSize()); const char* distribution_id = host_arch.GetDistributionId ().AsCString (); if (distribution_id) { response.PutCString(�); response.PutCStringAsRawHex8(distribution_id); response.PutCString(�); } uint32_t cpu = host_arch.GetMachOCPUType(); uint32_t sub = host_arch.GetMachOCPUSubType(); if (cpu != LLDB_INVALID_CPUTYPE) response.Printf (�, cpu); if (sub != LLDB_INVALID_CPUTYPE) response.Printf (�, sub); if (cpu == ArchSpec::kCore_arm_any) response.Printf(�); else response.Printf(�); switch (lldb::endian::InlHostByteOrder()) { case eByteOrderBig: response.PutCString (�); break; case eByteOrderLittle: response.PutCString (�); break; case eByteOrderPDP: response.PutCString (�); break; default: response.PutCString (�); break; } uint32_t major = UINT32_MAX; uint32_t minor = UINT32_MAX; uint32_t update = UINT32_MAX; if (Host::GetOSVersion (major, minor, update)) { if (major != UINT32_MAX) { response.Printf(�, major); if (minor != UINT32_MAX) { response.Printf(�, minor); if (update != UINT32_MAX) response.Printf(�, update); } response.PutChar(�); } } std::string s; if (Host::GetOSBuildString (s)) { response.PutCString (�); response.PutCStringAsRawHex8(s.c_str()); response.PutChar(�); } if (Host::GetOSKernelDescription (s)) { response.PutCString (�); response.PutCStringAsRawHex8(s.c_str()); response.PutChar(�); } response.PutCString (�); response.PutCStringAsRawHex8(�); response.PutChar(�); return SendPacketNoLock (response.GetData(), response.GetSize()); } static void CreateProcessInfoResponse (const ProcessInstanceInfo &proc_info, StreamString &response) { response.Printf (� PRIu64 � PRIu64 �, proc_info.GetProcessID(), proc_info.GetParentProcessID(), proc_info.GetUserID(), proc_info.GetGroupID(), proc_info.GetEffectiveUserID(), proc_info.GetEffectiveGroupID()); response.PutCString (�); response.PutCStringAsRawHex8(proc_info.GetName()); response.PutChar(�); const ArchSpec &proc_arch = proc_info.GetArchitecture(); if (proc_arch.IsValid()) { const llvm::Triple &proc_triple = proc_arch.GetTriple(); response.PutCString(�); response.PutCStringAsRawHex8(proc_triple.getTriple().c_str()); response.PutChar(�); } } GDBRemoteCommunication::PacketResult GDBRemoteCommunicationServer::Handle_qProcessInfoPID (StringExtractorGDBRemote &packet) { packet.SetFilePos(::strlen (�)); lldb::pid_t pid = packet.GetU32 (LLDB_INVALID_PROCESS_ID); if (pid != LLDB_INVALID_PROCESS_ID) { ProcessInstanceInfo proc_info; if (Host::GetProcessInfo(pid, proc_info)) { StreamString response; CreateProcessInfoResponse (proc_info, response); return SendPacketNoLock (response.GetData(), response.GetSize()); } } return SendErrorResponse (1); } GDBRemoteCommunication::PacketResult GDBRemoteCommunicationServer::Handle_qfProcessInfo (StringExtractorGDBRemote &packet) { m_proc_infos_index = 0; m_proc_infos.Clear(); ProcessInstanceInfoMatch match_info; packet.SetFilePos(::strlen (�)); if (packet.GetChar() == �) { std::string key; std::string value; while (packet.GetNameColonValue(key, value)) { bool success = true; if (key.compare(�) == 0) { StringExtractor extractor; extractor.GetStringRef().swap(value); extractor.GetHexByteString (value); match_info.GetProcessInfo().GetExecutableFile().SetFile(value.c_str(), false); } else if (key.compare(�) == 0) { if (value.compare(�) == 0) { match_info.SetNameMatchType (eNameMatchEquals); } else if (value.compare(�) == 0) { match_info.SetNameMatchType (eNameMatchStartsWith); } else if (value.compare(�) == 0) { match_info.SetNameMatchType (eNameMatchEndsWith); } else if (value.compare(�) == 0) { match_info.SetNameMatchType (eNameMatchContains); } else if (value.compare(�) == 0) { match_info.SetNameMatchType (eNameMatchRegularExpression); } else { success = false; } } else if (key.compare(�) == 0) { match_info.GetProcessInfo().SetProcessID (Args::StringToUInt32(value.c_str(), LLDB_INVALID_PROCESS_ID, 0, &success)); } else if (key.compare(�) == 0) { match_info.GetProcessInfo().SetParentProcessID (Args::StringToUInt32(value.c_str(), LLDB_INVALID_PROCESS_ID, 0, &success)); } else if (key.compare(�) == 0) { match_info.GetProcessInfo().SetUserID (Args::StringToUInt32(value.c_str(), UINT32_MAX, 0, &success)); } else if (key.compare(�) == 0) { match_info.GetProcessInfo().SetGroupID (Args::StringToUInt32(value.c_str(), UINT32_MAX, 0, &success)); } else if (key.compare(�) == 0) { match_info.GetProcessInfo().SetEffectiveUserID (Args::StringToUInt32(value.c_str(), UINT32_MAX, 0, &success)); } else if (key.compare(�) == 0) { match_info.GetProcessInfo().SetEffectiveGroupID (Args::StringToUInt32(value.c_str(), UINT32_MAX, 0, &success)); } else if (key.compare(�) == 0) { match_info.SetMatchAllUsers(Args::StringToBoolean(value.c_str(), false, &success)); } else if (key.compare(�) == 0) { match_info.GetProcessInfo().GetArchitecture().SetTriple (value.c_str(), NULL); } else { success = false; } if (!success) return SendErrorResponse (2); } } if (Host::FindProcesses (match_info, m_proc_infos)) { return Handle_qsProcessInfo (packet); } return SendErrorResponse (3); } GDBRemoteCommunication::PacketResult GDBRemoteCommunicationServer::Handle_qsProcessInfo (StringExtractorGDBRemote &packet) { if (m_proc_infos_index < m_proc_infos.GetSize()) { StreamString response; CreateProcessInfoResponse (m_proc_infos.GetProcessInfoAtIndex(m_proc_infos_index), response); ++m_proc_infos_index; return SendPacketNoLock (response.GetData(), response.GetSize()); } return SendErrorResponse (4); } GDBRemoteCommunication::PacketResult GDBRemoteCommunicationServer::Handle_qUserName (StringExtractorGDBRemote &packet) { packet.SetFilePos(::strlen (�)); uint32_t uid = packet.GetU32 (UINT32_MAX); if (uid != UINT32_MAX) { std::string name; if (Host::GetUserName (uid, name)) { StreamString response; response.PutCStringAsRawHex8 (name.c_str()); return SendPacketNoLock (response.GetData(), response.GetSize()); } } return SendErrorResponse (5); } GDBRemoteCommunication::PacketResult GDBRemoteCommunicationServer::Handle_qGroupName (StringExtractorGDBRemote &packet) { packet.SetFilePos(::strlen (�)); uint32_t gid = packet.GetU32 (UINT32_MAX); if (gid != UINT32_MAX) { std::string name; if (Host::GetGroupName (gid, name)) { StreamString response; response.PutCStringAsRawHex8 (name.c_str()); return SendPacketNoLock (response.GetData(), response.GetSize()); } } return SendErrorResponse (6); } GDBRemoteCommunication::PacketResult GDBRemoteCommunicationServer::Handle_qSpeedTest (StringExtractorGDBRemote &packet) { packet.SetFilePos(::strlen (�)); std::string key; std::string value; bool success = packet.GetNameColonValue(key, value); if (success && key.compare(�) == 0) { uint32_t response_size = Args::StringToUInt32(value.c_str(), 0, 0, &success); if (success) { if (response_size == 0) return SendOKResponse(); StreamString response; uint32_t bytes_left = response_size; response.PutCString(�); while (bytes_left > 0) { if (bytes_left >= 26) argument
[all...]
H A DGDBRemoteCommunication.cpp258 StringExtractorGDBRemote packet; local
288 WaitForPacketWithTimeoutMicroSecondsNoLock(StringExtractorGDBRemote &packet, uint32_t timeout_usec) argument
350 CheckForPacket(const uint8_t *src, size_t src_len, StringExtractorGDBRemote &packet) argument
[all...]
H A DGDBRemoteCommunication.h165 std::string packet; member in struct:GDBRemoteCommunication::History::Entry
/freebsd-10-stable/sys/dev/isci/scil/
H A Dscic_sds_stp_request.h143 } packet; member in union:SCIC_SDS_STP_REQUEST::__anon8932
/freebsd-10-stable/contrib/wpa/src/l2_packet/
H A Dl2_packet_freebsd.c80 const u_char *packet; local
/freebsd-10-stable/sys/boot/i386/libi386/
H A Dbioscd.c268 static struct edd_packet packet; local
/freebsd-10-stable/sys/contrib/octeon-sdk/
H A Dcvmx-debug-uart.c221 static int cvmx_debug_uart_putpacket(char *packet) argument

Completed in 300 milliseconds

1234