Home
last modified time | relevance | path

Searched refs:packet (Results 1 – 25 of 525) sorted by relevance

12345678910>>...21

/freebsd/contrib/ldns/
H A Dpacket.c41 ldns_pkt_id(const ldns_pkt *packet) in ldns_pkt_id() argument
43 return packet->_header->_id; in ldns_pkt_id()
47 ldns_pkt_qr(const ldns_pkt *packet) in ldns_pkt_qr() argument
49 return packet->_header->_qr; in ldns_pkt_qr()
53 ldns_pkt_aa(const ldns_pkt *packet) in ldns_pkt_aa() argument
55 return packet->_header->_aa; in ldns_pkt_aa()
59 ldns_pkt_tc(const ldns_pkt *packet) in ldns_pkt_tc() argument
61 return packet->_header->_tc; in ldns_pkt_tc()
65 ldns_pkt_rd(const ldns_pkt *packet) in ldns_pkt_rd() argument
67 return packet->_header->_rd; in ldns_pkt_rd()
[all …]
H A Dwire2host.c366 ldns_wire2pkt_hdr(ldns_pkt *packet, const uint8_t *wire, size_t max, size_t *pos) in ldns_wire2pkt_hdr() argument
371 ldns_pkt_set_id(packet, LDNS_ID_WIRE(wire)); in ldns_wire2pkt_hdr()
372 ldns_pkt_set_qr(packet, LDNS_QR_WIRE(wire)); in ldns_wire2pkt_hdr()
373 ldns_pkt_set_opcode(packet, LDNS_OPCODE_WIRE(wire)); in ldns_wire2pkt_hdr()
374 ldns_pkt_set_aa(packet, LDNS_AA_WIRE(wire)); in ldns_wire2pkt_hdr()
375 ldns_pkt_set_tc(packet, LDNS_TC_WIRE(wire)); in ldns_wire2pkt_hdr()
376 ldns_pkt_set_rd(packet, LDNS_RD_WIRE(wire)); in ldns_wire2pkt_hdr()
377 ldns_pkt_set_ra(packet, LDNS_RA_WIRE(wire)); in ldns_wire2pkt_hdr()
378 ldns_pkt_set_ad(packet, LDNS_AD_WIRE(wire)); in ldns_wire2pkt_hdr()
379 ldns_pkt_set_cd(packet, LDNS_CD_WIRE(wire)); in ldns_wire2pkt_hdr()
[all …]
H A Dhost2wire.c329 ldns_hdr2buffer_wire(ldns_buffer *buffer, const ldns_pkt *packet) in ldns_hdr2buffer_wire() argument
335 ldns_buffer_write_u16(buffer, ldns_pkt_id(packet)); in ldns_hdr2buffer_wire()
337 flags = ldns_pkt_qr(packet) << 7 in ldns_hdr2buffer_wire()
338 | ldns_pkt_get_opcode(packet) << 3 in ldns_hdr2buffer_wire()
339 | ldns_pkt_aa(packet) << 2 in ldns_hdr2buffer_wire()
340 | ldns_pkt_tc(packet) << 1 | ldns_pkt_rd(packet); in ldns_hdr2buffer_wire()
343 flags = ldns_pkt_ra(packet) << 7 in ldns_hdr2buffer_wire()
345 | ldns_pkt_ad(packet) << 5 in ldns_hdr2buffer_wire()
346 | ldns_pkt_cd(packet) << 4 in ldns_hdr2buffer_wire()
347 | ldns_pkt_get_rcode(packet); in ldns_hdr2buffer_wire()
[all …]
/freebsd/contrib/processor-trace/libipt/src/
H A Dpt_packet_decoder.c236 int pt_pkt_next(struct pt_packet_decoder *decoder, struct pt_packet *packet, in pt_pkt_next() argument
243 if (!packet || !decoder) in pt_pkt_next()
246 ppkt = psize == sizeof(pkt) ? packet : &pkt; in pt_pkt_next()
255 if (!dfun->packet) in pt_pkt_next()
258 size = dfun->packet(decoder, ppkt); in pt_pkt_next()
262 errcode = pkt_to_user(packet, psize, ppkt); in pt_pkt_next()
272 struct pt_packet *packet) in pt_pkt_decode_unknown() argument
279 size = pt_pkt_read_unknown(packet, decoder->pos, &decoder->config); in pt_pkt_decode_unknown()
287 struct pt_packet *packet) in pt_pkt_decode_pad() argument
291 if (!packet) in pt_pkt_decode_pad()
[all …]
H A Dpt_packet.c52 int pt_pkt_read_unknown(struct pt_packet *packet, const uint8_t *pos, in pt_pkt_read_unknown() argument
59 if (!packet || !pos || !config) in pt_pkt_read_unknown()
67 packet->payload.unknown.packet = pos; in pt_pkt_read_unknown()
68 packet->payload.unknown.priv = NULL; in pt_pkt_read_unknown()
73 size = (*decode)(&packet->payload.unknown, config, pos, in pt_pkt_read_unknown()
81 packet->type = ppt_unknown; in pt_pkt_read_unknown()
82 packet->size = (uint8_t) size; in pt_pkt_read_unknown()
135 int pt_pkt_read_ip(struct pt_packet_ip *packet, const uint8_t *pos, in pt_pkt_read_ip() argument
142 if (!packet || !pos || !config) in pt_pkt_read_ip()
158 packet->ipc = (enum pt_ip_compression) ipc; in pt_pkt_read_ip()
[all …]
H A Dpt_encoder.c220 const struct pt_packet_ip *packet) in pt_encode_ip() argument
226 if (!encoder || !packet) in pt_encode_ip()
229 size = pt_ipc_size(packet->ipc); in pt_encode_ip()
239 ipc = (uint8_t) (packet->ipc << pt_opm_ipc_shr); in pt_encode_ip()
245 encoder->pos = pt_encode_int(pos, packet->ip, size); in pt_encode_ip()
249 int pt_enc_next(struct pt_encoder *encoder, const struct pt_packet *packet) in pt_enc_next() argument
254 if (!encoder || !packet) in pt_enc_next()
258 switch (packet->type) { in pt_enc_next()
311 return pt_encode_ip(encoder, pt_opc_fup, &packet->payload.ip); in pt_enc_next()
314 return pt_encode_ip(encoder, pt_opc_tip, &packet->payload.ip); in pt_enc_next()
[all …]
H A Dpt_query_decoder.c59 static int pt_qry_find_header_fup(struct pt_packet *packet, in pt_qry_find_header_fup() argument
62 if (!packet || !decoder) in pt_qry_find_header_fup()
68 errcode = pt_pkt_next(decoder, packet, sizeof(*packet)); in pt_qry_find_header_fup()
72 switch (packet->type) { in pt_qry_find_header_fup()
371 const struct pt_packet_tsc *packet, in pt_qry_apply_tsc() argument
381 errcode = pt_tcal_update_tsc(tcal, packet, config); in pt_qry_apply_tsc()
388 errcode = pt_time_update_tsc(time, packet, config); in pt_qry_apply_tsc()
397 const struct pt_packet_tsc *packet, in pt_qry_apply_header_tsc() argument
407 errcode = pt_tcal_header_tsc(tcal, packet, config); in pt_qry_apply_header_tsc()
414 errcode = pt_time_update_tsc(time, packet, config); in pt_qry_apply_header_tsc()
[all …]
H A Dpt_time.c131 const struct pt_packet_tsc *packet, in pt_time_update_tsc() argument
136 if (!time || !packet) in pt_time_update_tsc()
142 time->tsc = time->base = packet->tsc; in pt_time_update_tsc()
154 const struct pt_packet_cbr *packet, in pt_time_update_cbr() argument
161 if (!time || !packet) in pt_time_update_cbr()
164 cbr = packet->ratio; in pt_time_update_cbr()
175 const struct pt_packet_tma *packet, in pt_time_update_tma() argument
181 if (!time || !packet || !config) in pt_time_update_tma()
196 ctc = packet->ctc; in pt_time_update_tma()
197 fc = packet->fc; in pt_time_update_tma()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Utility/
H A DTraceGDBRemotePackets.cpp17 bool fromJSON(const json::Value &value, TraceSupportedResponse &packet, in fromJSON() argument
20 return o && o.map("description", packet.description) && in fromJSON()
21 o.map("name", packet.name); in fromJSON()
24 json::Value toJSON(const TraceSupportedResponse &packet) { in toJSON() argument
26 Object{{"description", packet.description}, {"name", packet.name}}); in toJSON()
34 bool fromJSON(const json::Value &value, TraceStartRequest &packet, Path path) { in fromJSON() argument
36 return o && o.map("type", packet.type) && o.map("tids", packet.tids); in fromJSON()
39 json::Value toJSON(const TraceStartRequest &packet) { in toJSON() argument
40 return json::Value(Object{{"tids", packet.tids}, {"type", packet.type}}); in toJSON()
56 bool fromJSON(const json::Value &value, TraceStopRequest &packet, Path path) { in fromJSON() argument
[all …]
H A DTraceIntelPTGDBRemotePackets.cpp45 bool fromJSON(const json::Value &value, TraceIntelPTStartRequest &packet, in fromJSON() argument
48 if (!(o && fromJSON(value, (TraceStartRequest &)packet, path) && in fromJSON()
49 o.map("enableTsc", packet.enable_tsc) && in fromJSON()
50 o.map("psbPeriod", packet.psb_period) && in fromJSON()
51 o.map("iptTraceSize", packet.ipt_trace_size))) in fromJSON()
54 if (packet.IsProcessTracing()) { in fromJSON()
55 if (!o.map("processBufferSizeLimit", packet.process_buffer_size_limit) || in fromJSON()
56 !o.map("perCpuTracing", packet.per_cpu_tracing) || in fromJSON()
57 !o.map("disableCgroupTracing", packet.disable_cgroup_filtering)) in fromJSON()
63 json::Value toJSON(const TraceIntelPTStartRequest &packet) { in toJSON() argument
[all …]
/freebsd/contrib/llvm-project/lldb/source/Plugins/Process/gdb-remote/
H A DGDBRemoteCommunicationServerCommon.h38 PacketResult Handle_A(StringExtractorGDBRemote &packet);
40 PacketResult Handle_qHostInfo(StringExtractorGDBRemote &packet);
42 PacketResult Handle_qProcessInfoPID(StringExtractorGDBRemote &packet);
44 PacketResult Handle_qfProcessInfo(StringExtractorGDBRemote &packet);
46 PacketResult Handle_qsProcessInfo(StringExtractorGDBRemote &packet);
48 PacketResult Handle_qUserName(StringExtractorGDBRemote &packet);
50 PacketResult Handle_qGroupName(StringExtractorGDBRemote &packet);
52 PacketResult Handle_qSpeedTest(StringExtractorGDBRemote &packet);
54 PacketResult Handle_vFile_Open(StringExtractorGDBRemote &packet);
56 PacketResult Handle_vFile_Close(StringExtractorGDBRemote &packet);
[all …]
H A DGDBRemoteCommunicationServerLLGS.h148 PacketResult Handle_k(StringExtractorGDBRemote &packet);
150 PacketResult Handle_vKill(StringExtractorGDBRemote &packet);
152 PacketResult Handle_qProcessInfo(StringExtractorGDBRemote &packet);
154 PacketResult Handle_qC(StringExtractorGDBRemote &packet);
156 PacketResult Handle_QSetDisableASLR(StringExtractorGDBRemote &packet);
158 PacketResult Handle_QSetWorkingDir(StringExtractorGDBRemote &packet);
160 PacketResult Handle_qGetWorkingDir(StringExtractorGDBRemote &packet);
162 PacketResult Handle_QThreadSuffixSupported(StringExtractorGDBRemote &packet);
164 PacketResult Handle_QListThreadsInStopReply(StringExtractorGDBRemote &packet);
169 PacketResult Handle_C(StringExtractorGDBRemote &packet);
[all …]
H A DGDBRemoteCommunicationServerLLGS.cpp228 [this](StringExtractorGDBRemote packet, Status &error, in RegisterPacketHandlers()
231 return this->Handle_k(packet); in RegisterPacketHandlers()
1284 StringExtractorGDBRemote &packet) { in Handle_jLLDBTraceSupported() argument
1296 StringExtractorGDBRemote &packet) { in Handle_jLLDBTraceStop() argument
1302 packet.ConsumeFront("jLLDBTraceStop:"); in Handle_jLLDBTraceStop()
1304 json::parse<TraceStopRequest>(packet.Peek(), "TraceStopRequest"); in Handle_jLLDBTraceStop()
1316 StringExtractorGDBRemote &packet) { in Handle_jLLDBTraceStart() argument
1323 packet.ConsumeFront("jLLDBTraceStart:"); in Handle_jLLDBTraceStart()
1325 json::parse<TraceStartRequest>(packet.Peek(), "TraceStartRequest"); in Handle_jLLDBTraceStart()
1329 if (Error err = m_current_process->TraceStart(packet.Peek(), request->type)) in Handle_jLLDBTraceStart()
[all …]
H A DGDBRemoteCommunicationServerCommon.cpp179 StringExtractorGDBRemote &packet) { in Handle_qHostInfo() argument
315 StringExtractorGDBRemote &packet) { in Handle_qProcessInfoPID() argument
317 packet.SetFilePos(::strlen("qProcessInfoPID:")); in Handle_qProcessInfoPID()
318 lldb::pid_t pid = packet.GetU32(LLDB_INVALID_PROCESS_ID); in Handle_qProcessInfoPID()
332 StringExtractorGDBRemote &packet) { in Handle_qfProcessInfo() argument
337 packet.SetFilePos(::strlen("qfProcessInfo")); in Handle_qfProcessInfo()
338 if (packet.GetChar() == ':') { in Handle_qfProcessInfo()
341 while (packet.GetNameColonValue(key, value)) { in Handle_qfProcessInfo()
408 return Handle_qsProcessInfo(packet); in Handle_qfProcessInfo()
415 StringExtractorGDBRemote &packet) { in Handle_qsProcessInfo() argument
[all …]
H A DGDBRemoteCommunicationServer.cpp31 [this](StringExtractorGDBRemote packet, Status &error, bool &interrupt, in GDBRemoteCommunicationServer()
32 bool &quit) { return this->Handle_QErrorStringEnable(packet); }); in GDBRemoteCommunicationServer()
46 StringExtractorGDBRemote packet; in GetPacketAndSendResponse() local
48 PacketResult packet_result = ReadPacket(packet, timeout, false); in GetPacketAndSendResponse()
51 packet.GetServerPacketType(); in GetPacketAndSendResponse()
63 packet_result = SendUnimplementedResponse(packet.GetStringRef().data()); in GetPacketAndSendResponse()
69 packet_result = SendUnimplementedResponse(packet.GetStringRef().data()); in GetPacketAndSendResponse()
71 packet_result = handler_it->second(packet, error, interrupt, quit); in GetPacketAndSendResponse()
98 char packet[16]; in SendErrorResponse() local
99 int packet_len = ::snprintf(packet, sizeof(packet), "E%2.2x", err); in SendErrorResponse()
[all …]
/freebsd/contrib/netbsd-tests/ipf/expected/
H A Df132 bad-packet
5 bad-packet
8 bad-packet
10 bad-packet
22 bad-packet
25 bad-packet
28 bad-packet
30 bad-packet
42 bad-packet
45 bad-packet
[all …]
H A Df124 bad-packet
7 bad-packet
14 bad-packet
17 bad-packet
24 bad-packet
27 bad-packet
34 bad-packet
37 bad-packet
44 bad-packet
47 bad-packet
[all …]
/freebsd/contrib/processor-trace/libipt/test/src/
H A Dptunit-packet.c47 struct pt_packet packet[2]; member
66 static int pfix_decode_unknown(struct pt_packet_unknown *packet, in pfix_decode_unknown() argument
72 if (!packet || !config) in pfix_decode_unknown()
88 packet->priv = pfix; in pfix_decode_unknown()
98 memset(pfix->packet, 0, sizeof(pfix->packet)); in pfix_init()
147 size = pt_enc_next(&pfix->encoder, &pfix->packet[0]); in pfix_test()
150 pfix->packet[0].size = (uint8_t) size; in pfix_test()
152 size = pt_pkt_next(&pfix->decoder, &pfix->packet[1], in pfix_test()
153 sizeof(pfix->packet[1])); in pfix_test()
156 return ptu_pkt_eq(&pfix->packet[0], &pfix->packet[1]); in pfix_test()
[all …]
H A Dptunit-time.c72 struct pt_packet_tsc packet; in tsc_null() local
75 errcode = pt_time_update_tsc(NULL, &packet, &tfix->config); in tsc_null()
86 struct pt_packet_cbr packet; in cbr_null() local
89 errcode = pt_time_update_cbr(NULL, &packet, &tfix->config); in cbr_null()
100 struct pt_packet_tma packet; in tma_null() local
103 errcode = pt_time_update_tma(NULL, &packet, &tfix->config); in tma_null()
109 errcode = pt_time_update_tma(&tfix->time, &packet, NULL); in tma_null()
117 struct pt_packet_mtc packet; in mtc_null() local
120 errcode = pt_time_update_mtc(NULL, &packet, &tfix->config); in mtc_null()
126 errcode = pt_time_update_mtc(&tfix->time, &packet, NULL); in mtc_null()
[all …]
/freebsd/tests/sys/netpfil/common/
H A Dpft_ping.py107 for packet in sp.fragment6(ip6 / icmp, fragSize=send_frag_length):
108 packets.append(ether / packet)
117 for packet in sp.fragment(ip / icmp / raw, fragsize=send_frag_length):
118 packets.append(ether / packet)
121 for packet in packets:
122 sp.sendp(packet, iface=send_params['sendif'], verbose=False)
158 for packet in sp.fragment6(ip6 / udp / raw, fragSize=send_frag_length):
159 packets.append(ether / packet)
169 for packet in sp.fragment(ip / udp / raw, fragsize=send_frag_length):
170 packets.append(ether / packet)
[all …]
/freebsd/sys/ofed/drivers/infiniband/core/
H A Dib_user_mad.c166 struct ib_umad_packet *packet) in queue_packet() argument
172 for (packet->mad.hdr.id = 0; in queue_packet()
173 packet->mad.hdr.id < IB_UMAD_MAX_AGENTS; in queue_packet()
174 packet->mad.hdr.id++) in queue_packet()
175 if (agent == __get_agent(file, packet->mad.hdr.id)) { in queue_packet()
176 list_add_tail(&packet->list, &file->recv_list); in queue_packet()
188 struct ib_umad_packet *packet) in dequeue_send() argument
191 list_del(&packet->list); in dequeue_send()
199 struct ib_umad_packet *packet = send_wc->send_buf->context[0]; in send_handler() local
201 dequeue_send(file, packet); in send_handler()
[all …]
/freebsd/contrib/processor-trace/libipt/internal/include/
H A Dpt_packet.h72 extern int pt_pkt_read_unknown(struct pt_packet *packet, const uint8_t *pos,
75 extern int pt_pkt_read_ip(struct pt_packet_ip *packet, const uint8_t *pos,
77 extern int pt_pkt_read_tnt_8(struct pt_packet_tnt *packet, const uint8_t *pos,
79 extern int pt_pkt_read_tnt_64(struct pt_packet_tnt *packet, const uint8_t *pos,
81 extern int pt_pkt_read_pip(struct pt_packet_pip *packet, const uint8_t *pos,
83 extern int pt_pkt_read_mode(struct pt_packet_mode *packet, const uint8_t *pos,
85 extern int pt_pkt_read_tsc(struct pt_packet_tsc *packet, const uint8_t *pos,
87 extern int pt_pkt_read_cbr(struct pt_packet_cbr *packet, const uint8_t *pos,
89 extern int pt_pkt_read_tma(struct pt_packet_tma *packet, const uint8_t *pos,
91 extern int pt_pkt_read_mtc(struct pt_packet_mtc *packet, const uint8_t *pos,
[all …]
/freebsd/sbin/dhclient/
H A Doptions.c54 void parse_options(struct packet *);
55 void parse_option_buffer(struct packet *, unsigned char *, int);
58 void expand_domain_search(struct packet *packet);
68 parse_options(struct packet *packet) in parse_options() argument
71 memset(packet->options, 0, sizeof(packet->options)); in parse_options()
74 if (memcmp(packet->raw->options, DHCP_OPTIONS_COOKIE, 4)) { in parse_options()
75 packet->options_valid = 0; in parse_options()
83 parse_option_buffer(packet, &packet->raw->options[4], in parse_options()
84 packet->packet_length - DHCP_FIXED_NON_UDP - 4); in parse_options()
90 if (packet->options_valid && in parse_options()
[all …]
/freebsd/stand/i386/common/
H A Ddrv.c47 static struct edd_packet packet; variable
56 packet.len = sizeof(struct edd_packet); in drvread()
57 packet.count = nblk; in drvread()
58 packet.off = VTOPOFF(buf); in drvread()
59 packet.seg = VTOPSEG(buf); in drvread()
60 packet.lba = lba; in drvread()
65 v86.ds = VTOPSEG(&packet); in drvread()
66 v86.esi = VTOPOFF(&packet); in drvread()
81 packet.len = sizeof(struct edd_packet); in drvwrite()
82 packet.count = nblk; in drvwrite()
[all …]
/freebsd/contrib/llvm-project/lldb/include/lldb/Utility/
H A DTraceGDBRemotePackets.h38 llvm::json::Value toJSON(const TraceSupportedResponse &packet);
56 bool fromJSON(const llvm::json::Value &value, TraceStartRequest &packet,
59 llvm::json::Value toJSON(const TraceStartRequest &packet);
80 bool fromJSON(const llvm::json::Value &value, TraceStopRequest &packet,
83 llvm::json::Value toJSON(const TraceStopRequest &packet);
93 bool fromJSON(const llvm::json::Value &value, TraceGetStateRequest &packet,
96 llvm::json::Value toJSON(const TraceGetStateRequest &packet);
105 bool fromJSON(const llvm::json::Value &value, TraceBinaryData &packet,
108 llvm::json::Value toJSON(const TraceBinaryData &packet);
116 bool fromJSON(const llvm::json::Value &value, TraceThreadState &packet,
[all …]

12345678910>>...21