Home
last modified time | relevance | path

Searched full:packet (Results 1 – 25 of 718) sorted by relevance

12345678910>>...29

/openbmc/qemu/hw/net/
H A Dnet_rx_pkt.h23 /* defines to enable packet dump functions */
29 * Clean all rx packet resources
31 * @pkt: packet
37 * Init function for rx packet functionality
39 * @pkt: packet pointer
47 * @pkt: packet
55 * parse and set packet analysis results
57 * @pkt: packet
68 * fetches packet analysis results
70 * @pkt: packet
[all …]
H A Dnet_tx_pkt.h24 /* define to enable packet dump functions */
33 * Init function for tx packet functionality
35 * @pkt: packet pointer
41 * Clean all tx packet resources.
43 * @pkt: packet.
50 * @pkt: packet
58 * @pkt: packet
72 * @pkt: packet
83 * @pkt: packet
96 * @pkt: packet
[all …]
/openbmc/u-boot/net/
H A Dfastboot.c30 /* Sequence number sent for every packet */
35 /* Keep track of last packet for resubmission */
49 * fastboot_udp_send_info() - Send an INFO packet during long commands.
55 uchar *packet; in fastboot_udp_send_info() local
66 packet = net_tx_packet + net_eth_hdr_size() + IP_UDP_HDR_SIZE; in fastboot_udp_send_info()
67 packet_base = packet; in fastboot_udp_send_info()
70 memcpy(packet, &response_header, sizeof(response_header)); in fastboot_udp_send_info()
71 packet += sizeof(response_header); in fastboot_udp_send_info()
74 memcpy(packet, response, strlen(response)); in fastboot_udp_send_info()
75 packet += strlen(response); in fastboot_udp_send_info()
[all …]
/openbmc/qemu/net/
H A Dqueue.c37 * the packet.
39 * If a sent callback isn't provided, we just drop the packet to avoid
83 NetPacket *packet, *next; in qemu_del_net_queue() local
85 QTAILQ_FOREACH_SAFE(packet, &queue->packets, entry, next) { in qemu_del_net_queue()
86 QTAILQ_REMOVE(&queue->packets, packet, entry); in qemu_del_net_queue()
87 g_free(packet); in qemu_del_net_queue()
100 NetPacket *packet; in qemu_net_queue_append() local
105 packet = g_malloc(sizeof(NetPacket) + size); in qemu_net_queue_append()
106 packet->sender = sender; in qemu_net_queue_append()
107 packet->flags = flags; in qemu_net_queue_append()
[all …]
H A Dcolo.h37 typedef struct Packet { struct
45 /* Time of packet creation, in wall clock ms */
51 /* the sequence number of the last byte of the packet */
58 } Packet; argument
70 /* connection primary send queue: element type: Packet */
72 /* connection secondary send queue: element type: Packet */
92 int parse_packet_early(Packet *pkt);
94 Packet *pkt, bool reverse);
95 void fill_connection_key(Packet *pkt, ConnectionKey *key, bool reverse);
104 Packet *packet_new(const void *data, int size, int vnet_hdr_len);
[all …]
H A Dcolo.c43 int parse_packet_early(Packet *pkt) in parse_packet_early()
58 * The received remote packet maybe misconfiguration here, in parse_packet_early()
62 trace_colo_proxy_main_vnet_info("This received packet load wrong ", in parse_packet_early()
101 Packet *pkt, bool reverse) in extract_ip_and_port()
116 void fill_connection_key(Packet *pkt, ConnectionKey *key, bool reverse) in fill_connection_key()
165 Packet *packet_new(const void *data, int size, int vnet_hdr_len) in packet_new()
167 Packet *pkt = g_slice_new0(Packet); in packet_new()
181 Packet *packet_new_nocopy(void *data, int size, int vnet_hdr_len) in packet_new_nocopy()
183 Packet *pkt = g_slice_new0(Packet); in packet_new_nocopy()
195 Packet *pkt = opaque; in packet_destroy()
[all …]
H A Dcolo-compare.c74 * |packet | |packet + |packet | |packet +
79 * |packet | |packet + |packet | |packet +
84 * |packet | |packet + |packet | |packet +
196 static gint seq_sorter(Packet *a, Packet *b, gpointer data) in seq_sorter()
203 Packet *pkt = data; in fill_pkt_tcp_info()
221 * packet will be dropped
223 static int colo_insert_packet(GQueue *queue, Packet *pkt, uint32_t *max_ack) in colo_insert_packet()
247 Packet *pkt = NULL; in packet_enqueue()
285 "queue size too big, drop packet"); in packet_enqueue()
300 static void colo_release_primary_pkt(CompareState *s, Packet *pkt) in colo_release_primary_pkt()
[all …]
/openbmc/phosphor-net-ipmid/
H A Dmessage_parsers.hpp75 * @brief Unflatten an incoming packet and prepare the IPMI message
77 * @param[in] inPacket - Incoming IPMI packet
80 * response packet. In case of success incoming message and session
88 * @brief Flatten an IPMI message and generate the IPMI packet with the
93 * packet
95 * @return IPMI packet on success
121 * @brief Unflatten an incoming packet and prepare the IPMI message
123 * @param[in] inPacket - Incoming IPMI packet
125 * @return IPMI message in the packet on success
130 * @brief Flatten an IPMI message and generate the IPMI packet with the
[all …]
H A Dmessage_parsers.cpp19 // Check if the packet has atleast the size of the RMCP Header in unflatten()
122 // the packet length in the header in unflatten()
140 std::vector<uint8_t> packet(sizeof(SessionHeader_t)); in flatten() local
142 // Insert Session Header into the Packet in flatten()
143 auto header = reinterpret_cast<SessionHeader_t*>(packet.data()); in flatten()
155 // Insert the Payload into the Packet in flatten()
156 packet.insert(packet.end(), outMessage->payload.begin(), in flatten()
160 packet.resize(packet.size() + sizeof(SessionTrailer_t)); in flatten()
162 reinterpret_cast<SessionTrailer_t*>(packet.data() + packet.size()); in flatten()
165 return packet; in flatten()
[all …]
H A Dintegrity_algo.hpp38 * Unless otherwise specified, the integrity algorithm is applied to the packet
60 * @brief Verify the integrity data of the packet
62 * @param[in] packet - Incoming IPMI packet
63 * @param[in] packetLen - Packet length excluding authCode
65 * packet
66 * @param[in] integrityDataEnd - End to the authCode in the packet
68 * @return true if authcode in the packet is equal to one generated
69 * using integrity algorithm on the packet data, false otherwise
72 const std::vector<uint8_t>& packet, const size_t packetLen,
77 * @brief Generate integrity data for the outgoing IPMI packet
[all …]
H A Dmessage_handler.cpp22 std::vector<uint8_t> packet; in receive() local
25 // Read the packet in receive()
26 std::tie(readStatus, packet) = channel->read(); in receive()
28 // Read of the packet failed in receive()
35 // Unflatten the packet in receive()
36 std::tie(inMessage, sessionHeader) = parser::unflatten(packet); in receive()
88 // Read the incoming IPMI packet in processIncoming()
143 void Handler::writeData(const std::vector<uint8_t>& packet) in writeData() argument
145 auto writeStatus = channel->write(packet); in writeData()
155 // Flatten the packet in sendASF()
[all …]
H A Dintegrity_algo.cpp43 const std::vector<uint8_t>& packet, const size_t length, in verifyIntegrityData() argument
48 packet.data() + message::parser::RMCP_SESSION_HEADER_SIZE, length); in verifyIntegrityData()
50 // Verify if the generated integrity data for the packet and the received in verifyIntegrityData()
57 const std::vector<uint8_t>& packet) const in generateIntegrityData()
60 packet.data() + message::parser::RMCP_SESSION_HEADER_SIZE, in generateIntegrityData()
61 packet.size() - message::parser::RMCP_SESSION_HEADER_SIZE); in generateIntegrityData()
109 const std::vector<uint8_t>& packet, const size_t length, in verifyIntegrityData() argument
114 packet.data() + message::parser::RMCP_SESSION_HEADER_SIZE, length); in verifyIntegrityData()
116 // Verify if the generated integrity data for the packet and the received in verifyIntegrityData()
123 const std::vector<uint8_t>& packet) const in generateIntegrityData()
[all …]
/openbmc/qemu/hw/usb/
H A Dpcap.c2 * usb packet capture
32 uint32_t incl_len; /* number of octets of packet saved in file */
33 uint32_t orig_len; /* actual length of packet */
103 static void do_usb_pcap_header(FILE *fp, struct usbmon_packet *packet) in do_usb_pcap_header() argument
109 packet->ts_sec = tv.tv_sec; in do_usb_pcap_header()
110 packet->ts_usec = tv.tv_usec; in do_usb_pcap_header()
112 header.ts_sec = packet->ts_sec; in do_usb_pcap_header()
113 header.ts_usec = packet->ts_usec; in do_usb_pcap_header()
114 header.incl_len = packet->len_cap; in do_usb_pcap_header()
115 header.orig_len = packet->length + sizeof(*packet); in do_usb_pcap_header()
[all …]
/openbmc/u-boot/include/
H A Dfsl_memac.h23 u32 tx_ipg_length; /* Transmitter inter-packet-gap register */
65 u32 rx_undsz_l; /* Rx undersized packet lower */
66 u32 rx_undsz_u; /* Rx undersized packet upper */
67 u32 rx_64_l; /* Rx 64 oct packet lower */
68 u32 rx_64_u; /* Rx 64 oct packet upper */
69 u32 rx_127_l; /* Rx 65 to 127 oct packet lower */
70 u32 rx_127_u; /* Rx 65 to 127 oct packet upper */
71 u32 rx_255_l; /* Rx 128 to 255 oct packet lower */
72 u32 rx_255_u; /* Rx 128 to 255 oct packet upper */
73 u32 rx_511_l; /* Rx 256 to 511 oct packet lower */
[all …]
H A Dfsl_tgec.h25 u32 tx_ipg_length; /* Transmitter inter-packet-gap register */
77 u32 tx_undsz_u; /* Undersized packet upper */
78 u32 tx_undsz_l; /* Undersized packet lower */
79 u32 rx_64_u; /* Rx 64 oct packet upper */
80 u32 rx_64_l; /* Rx 64 oct packet lower */
81 u32 rx_127_u; /* Rx 65 to 127 oct packet upper */
82 u32 rx_127_l; /* Rx 65 to 127 oct packet lower */
83 u32 rx_255_u; /* Rx 128 to 255 oct packet upper */
84 u32 rx_255_l; /* Rx 128 to 255 oct packet lower */
85 u32 rx_511_u; /* Rx 256 to 511 oct packet upper */
[all …]
/openbmc/u-boot/arch/sandbox/include/asm/
H A Deth.h21 * @dev: device that received the packet
22 * @packet: pointer to the received pacaket buffer
23 * @len: length of received packet
26 int sandbox_eth_arp_req_to_reply(struct udevice *dev, void *packet,
34 * @dev: device that received the packet
35 * @packet: pointer to the received pacaket buffer
36 * @len: length of received packet
39 int sandbox_eth_ping_req_to_reply(struct udevice *dev, void *packet,
47 * @dev: device that received the packet
57 * @dev: device that received the packet
[all …]
/openbmc/phosphor-net-ipmid/test/
H A Dcipher.cpp18 * Step-1 Generate Integrity Data for the packet, using the implemented API in TEST()
20 // Packet = RMCP Session Header (4 bytes) + Packet (8 bytes) in TEST()
21 std::vector<uint8_t> packet = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}; in TEST() local
32 auto response = algoPtr->generateIntegrityData(packet); in TEST()
56 size_t length = packet.size() - message::parser::RMCP_SESSION_HEADER_SIZE; in TEST()
59 packet.data() + message::parser::RMCP_SESSION_HEADER_SIZE, length, in TEST()
81 // Packet = RMCP Session Header (4 bytes) + Packet (8 bytes) in TEST()
82 std::vector<uint8_t> packet = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}; in TEST() local
104 size_t length = packet.size() - message::parser::RMCP_SESSION_HEADER_SIZE; in TEST()
107 packet.data() + message::parser::RMCP_SESSION_HEADER_SIZE, length, in TEST()
[all …]
/openbmc/u-boot/drivers/misc/
H A Dgdsys_ioep.h12 * @target_address: Target protocol address of the packet.
13 * @source_address: Source protocol address of the packet.
14 * @packet_type: Packet type.
16 * @packet_length: Length of the packet's payload bytes.
67 * @STATE_TX_PACKET_BUILDING: The device is currently building a packet
69 * @STATE_TX_TRANSMITTING: A packet is currenly being transmitted
73 * @STATE_PROC_RX_STORE_TIMEOUT: A RX store timeout for a processor packet
75 * @STATE_PROC_RX_RECEIVE_TIMEOUT: A RX receive timeout for a processor packet
83 * @STATE_RX_PACKET_DROPPED: A RX packet has been dropped
85 * current packet
[all …]
/openbmc/qemu/target/hexagon/
H A Ddecode.c91 void decode_send_insn_to(Packet *packet, int start, int newloc) in decode_send_insn_to() argument
107 tmpinsn = packet->insn[i]; in decode_send_insn_to()
108 packet->insn[i] = packet->insn[i + direction]; in decode_send_insn_to()
109 packet->insn[i + direction] = tmpinsn; in decode_send_insn_to()
115 decode_fill_newvalue_regno(Packet *packet) in decode_fill_newvalue_regno() argument
119 for (i = 1; i < packet->num_insns; i++) { in decode_fill_newvalue_regno()
120 if (GET_ATTRIB(packet->insn[i].opcode, A_DOTNEWVALUE) && in decode_fill_newvalue_regno()
121 !GET_ATTRIB(packet->insn[i].opcode, A_EXTENSION)) { in decode_fill_newvalue_regno()
123 g_assert(packet->insn[i].new_read_idx != -1); in decode_fill_newvalue_regno()
124 use_regidx = packet->insn[i].new_read_idx; in decode_fill_newvalue_regno()
[all …]
/openbmc/qemu/hw/vfio/
H A Dmigration-multifd.c124 VFIODeviceStatePacket *packet, in vfio_load_state_buffer_insert() argument
131 size_t data_size = packet_total_size - sizeof(*packet); in vfio_load_state_buffer_insert()
134 if (packet->idx >= vfio_state_buffers_size_get(&multifd->load_bufs)) { in vfio_load_state_buffer_insert()
135 vfio_state_buffers_size_set(&multifd->load_bufs, packet->idx + 1); in vfio_load_state_buffer_insert()
138 lb = vfio_state_buffers_at(&multifd->load_bufs, packet->idx); in vfio_load_state_buffer_insert()
141 vbasedev->name, packet->idx); in vfio_load_state_buffer_insert()
145 assert(packet->idx >= multifd->load_buf_idx); in vfio_load_state_buffer_insert()
153 vbasedev->name, packet->idx, in vfio_load_state_buffer_insert()
158 lb->data = g_memdup2(&packet->data, data_size); in vfio_load_state_buffer_insert()
171 VFIODeviceStatePacket *packet = (VFIODeviceStatePacket *)data; in vfio_multifd_load_state_buffer() local
[all …]
/openbmc/qemu/docs/
H A Dcolo-proxy.txt26 If the packet difference, notify COLO-frame to do checkpoint and send
27 all primary packet has queued. Otherwise just send the queued primary
28 packet and drop the queued secondary packet.
69 1.Guest receive packet route:
74 Mirror client will send packet to guest,at the
75 same time, copy and forward packet to secondary
81 If receive packet is TCP packet,we will adjust ack
85 2.Guest send packet route:
90 Redirect server filter receive primary guest packet
94 COLO-compare receive primary guest packet then
[all …]
/openbmc/qemu/migration/
H A Dmultifd-nocomp.c73 /* We need one extra place for the packet header */ in multifd_nocomp_send_setup()
91 p->iov[0].iov_base = p->packet; in multifd_ram_prepare_header()
138 ret = qio_channel_write_all(p->c, (void *)p->packet, in multifd_nocomp_send_prepare()
205 MultiFDPacket_t *packet = p->packet; in multifd_ram_fill_packet() local
209 packet->pages_alloc = cpu_to_be32(multifd_ram_page_count()); in multifd_ram_fill_packet()
210 packet->normal_pages = cpu_to_be32(pages->normal_num); in multifd_ram_fill_packet()
211 packet->zero_pages = cpu_to_be32(zero_num); in multifd_ram_fill_packet()
214 pstrcpy(packet->ramblock, sizeof(packet->ramblock), in multifd_ram_fill_packet()
222 packet->offset[i] = cpu_to_be64(temp); in multifd_ram_fill_packet()
231 MultiFDPacket_t *packet = p->packet; in multifd_ram_unfill_packet() local
[all …]
/openbmc/openbmc-test-automation/security/
H A Dtest_bmc_network_security.robot33 [Documentation] Send ICMP packet type 13 and check BMC drops such packets
36 # Send ICMP packet type 13 to BMC and check packet loss.
37 ${packet_loss}= Send Network Packets And Get Packet Loss
43 [Documentation] Send ICMP packet type 17 and check BMC drops such packets
46 # Send ICMP packet type 17 to BMC and check packet loss.
47 ${packet_loss}= Send Network Packets And Get Packet Loss
52 Send Continuous ICMP Echo Request To BMC And Verify No Packet Loss
53 [Documentation] Send ICMP packet type 8 continuously and check no packets are dropped from BMC
56 # Send ICMP packet type 8 to BMC and check packet loss.
57 ${packet_loss}= Send Network Packets And Get Packet Loss
[all …]
/openbmc/ipmitool/src/plugins/lanplus/
H A DREADME.sol28 Every SOL packet (with one exception) traveling in either direction causes
29 the recipient to return an acknowledgement packet, though acks themself are
54 Periodic dispatch of "keep alive" packet to the BMC.
60 Partial creation of packet payload
63 Completion of packet payload
64 Send (with retries) of SOL packet
67 Creation of RMCP+ packet
68 Details general to all V2 packet processing, as
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/iptraf/
H A Diptraf-ng_1.2.1.bb6 data like TCP connection packet and byte counts, interface statistics \
8 packet and byte counts. IPTraf-ng features include an IP traffic monitor \
9 which shows TCP flag information, packet and byte counts, ICMP \
10 details, OSPF packet types, and oversized IP packet warnings; \
12 packet counts, IP checksum errors, interface activity and packet size \

12345678910>>...29