/qemu/hw/ipack/ |
H A D | tpci200.c | 38 #define STATUS_INT(IP, INTNO) BIT((IP) * 2 + (INTNO)) argument 39 #define STATUS_TIME(IP) BIT((IP) + 12) argument 109 IPackDevice *ip = opaque; in tpci200_set_irq() local 110 IPackBus *bus = IPACK_BUS(qdev_get_parent_bus(DEVICE(ip))); in tpci200_set_irq() 113 unsigned ip_n = ip->slot; in tpci200_set_irq() 116 assert(ip->slot >= 0 && ip->slot < N_MODULES); in tpci200_set_irq() 118 /* The requested interrupt must be enabled in the IP CONTROL in tpci200_set_irq() 124 /* Update the interrupt status in the IP STATUS register */ in tpci200_set_irq() 136 DPRINTF("IP %u INT%u#: %u\n", ip_n, intno, level); in tpci200_set_irq() 218 DPRINTF("Read IP %c CONTROL: 0x%x\n", 'A' + ip_n, (unsigned) ret); in tpci200_read_las0() [all …]
|
H A D | ipack.c | 25 IPackDevice *ip = IPACK_DEVICE(qdev); in ipack_device_find() local 26 if (ip->slot == slot) { in ipack_device_find() 27 return ip; in ipack_device_find()
|
/qemu/net/ |
H A D | checksum.c | 2 * IP checksumming functions. 63 struct ip_header *ip; in net_checksum_calculate() local 99 /* Now check we have an IP header (with an optional VLAN header) */ in net_checksum_calculate() 104 ip = (struct ip_header *)((uint8_t *)data + mac_hdr_len); in net_checksum_calculate() 106 if (IP_HEADER_VERSION(ip) != IP_HEADER_VERSION_4) { in net_checksum_calculate() 110 /* Calculate IP checksum */ in net_checksum_calculate() 112 stw_he_p(&ip->ip_sum, 0); in net_checksum_calculate() 113 csum = net_raw_checksum((uint8_t *)ip, IP_HDR_GET_LEN(ip)); in net_checksum_calculate() 114 stw_be_p(&ip->ip_sum, csum); in net_checksum_calculate() 117 if (IP4_IS_FRAGMENT(ip)) { in net_checksum_calculate() [all …]
|
H A D | colo.c | 90 network_length = pkt->ip->ip_hl * 4; in parse_packet_early() 104 key->src = pkt->ip->ip_dst; in extract_ip_and_port() 105 key->dst = pkt->ip->ip_src; in extract_ip_and_port() 109 key->src = pkt->ip->ip_src; in extract_ip_and_port() 110 key->dst = pkt->ip->ip_dst; in extract_ip_and_port() 120 key->ip_proto = pkt->ip->ip_p; in fill_connection_key()
|
H A D | tap-solaris.c | 36 #include <netinet/ip.h> 37 #include <netinet/ip_icmp.h> // must come after ip.h 83 /* Check if IP device was opened */ in tap_alloc() 89 error_setg(errp, "Can't open /dev/ip (actually /dev/udp)"); in tap_alloc() 112 if(ioctl(if_fd, I_PUSH, "ip") < 0){ in tap_alloc() 113 error_setg(errp, "Can't push IP module"); in tap_alloc() 154 error_setg(errp, "Can't link TAP device to IP"); in tap_alloc()
|
H A D | colo-compare.c | 226 if (pkt->ip->ip_p == IPPROTO_TCP) { in colo_insert_packet() 317 * The IP packets sent by primary and secondary 319 * TODO support ip fragment, Out-Of-Order 333 strcpy(pri_ip_src, inet_ntoa(ppkt->ip->ip_src)); in colo_compare_packet_payload() 334 strcpy(pri_ip_dst, inet_ntoa(ppkt->ip->ip_dst)); in colo_compare_packet_payload() 335 strcpy(sec_ip_src, inet_ntoa(spkt->ip->ip_src)); in colo_compare_packet_payload() 336 strcpy(sec_ip_dst, inet_ntoa(spkt->ip->ip_dst)); in colo_compare_packet_payload() 509 uint16_t network_header_length = ppkt->ip->ip_hl << 2; in colo_packet_compare_udp() 516 * The ppkt's src ip, dst ip, src port, dst port, ip_proto all are in colo_packet_compare_udp() 517 * same with spkt. In addition, IP header's Identification is a random in colo_packet_compare_udp() [all …]
|
H A D | colo.h | 41 struct ip *ip; member 61 /* (src, dst) must be grouped, in the same way than in IP header */
|
/qemu/hw/i386/ |
H A D | vapic.c | 208 target_ulong ip = *pip; in evaluate_tpr_instruction() local 213 if ((ip & 0xf0000000ULL) != 0x80000000ULL && in evaluate_tpr_instruction() 214 (ip & 0xf0000000ULL) != 0xe0000000ULL) { in evaluate_tpr_instruction() 233 * KVM without kernel-based TPR access reporting will pass an IP that in evaluate_tpr_instruction() 242 if (cpu_memory_rw_debug(cs, ip - instr->length, opcode, in evaluate_tpr_instruction() 247 ip -= instr->length; in evaluate_tpr_instruction() 253 if (cpu_memory_rw_debug(cs, ip, opcode, sizeof(opcode), 0) < 0) { in evaluate_tpr_instruction() 270 if (cpu_memory_rw_debug(cs, ip + instr->addr_offset, in evaluate_tpr_instruction() 282 *pip = ip; in evaluate_tpr_instruction() 286 static int update_rom_mapping(VAPICROMState *s, CPUX86State *env, target_ulong ip) in update_rom_mapping() argument [all …]
|
/qemu/qapi/ |
H A D | rocker.json | 139 # @ip-proto: IP Header protocol field 141 # @ip-tos: IP header TOS field 143 # @ip-dst: IP header destination address 154 '*ip-proto': 'uint8', '*ip-tos': 'uint8', '*ip-dst': 'str' } } 171 # @ip-proto: IP Header protocol field 173 # @ip-tos: IP header TOS field 183 '*ip-proto': 'uint8', '*ip-tos': 'uint8' } }
|
/qemu/hw/intc/ |
H A D | loongson_liointc.c | 52 uint8_t mapper[NUM_IRQS]; /* 0:3 for core, 4:7 for IP */ 64 uint32_t irq, core, ip; in update_irq() local 90 for (ip = 0; ip < NUM_IPS; ip++) { in update_irq() 91 if ((p->mapper[irq] & (1 << (ip + 4)))) { in update_irq() 92 per_ip_isr[ip] |= (1 << irq); in update_irq() 99 for (ip = 0; ip < NUM_IPS; ip++) { in update_irq() 100 int parent = PARENT_COREx_IPy(core, ip); in update_irq() 102 (!!p->per_core_isr[core] && !!per_ip_isr[ip])) { in update_irq()
|
/qemu/hw/char/ |
H A D | ipoctal232.c | 2 * QEMU GE IP-Octal 232 IndustryPack emulation 31 #define DPRINTF(fmt, ...) DPRINTF2("IP-Octal: " fmt, ## __VA_ARGS__) 35 /* The IP-Octal has 8 channels (a-h) 258 static uint16_t io_read(IPackDevice *ip, uint8_t addr) in io_read() argument 260 IPOctalState *dev = IPOCTAL(ip); in io_read() 324 static void io_write(IPackDevice *ip, uint8_t addr, uint16_t val) in io_write() argument 326 IPOctalState *dev = IPOCTAL(ip); in io_write() 397 static uint16_t id_read(IPackDevice *ip, uint8_t addr) in id_read() argument 411 static void id_write(IPackDevice *ip, uint8_t addr, uint16_t val) in id_write() argument 413 IPOctalState *dev = IPOCTAL(ip); in id_write() [all …]
|
/qemu/scripts/ |
H A D | rdma-migration-helper.sh | 6 ip -4 -o addr show dev "$1" | 12 ipv6=$(ip -6 -o addr show dev "$1" | 35 ip -o addr show | awk '/inet / {print $2}' | grep -Ev '^(lo|tun|tap)' 40 ip -o addr show | awk '/inet6 / {print $2}' | grep -Ev '^(lo|tun|tap)' 83 echo "Unknown ip family '$IP_FAMILY', only ipv4 or ipv6 is supported." >&2
|
/qemu/tests/rocker/ |
H A D | bridge | 11 simp ssh tut sw1 --cmd "sudo /sbin/ip link add name br0 type bridge" 12 simp ssh tut sw1 --cmd "sudo /sbin/ip link set dev sw1p1 master br0" 13 simp ssh tut sw1 --cmd "sudo /sbin/ip link set dev sw1p2 master br0" 34 # config IP on hosts
|
H A D | bridge-stp | 11 simp ssh tut sw1 --cmd "sudo /sbin/ip link add name br0 type bridge" 13 simp ssh tut sw1 --cmd "sudo /sbin/ip link set dev sw1p1 master br0" 14 simp ssh tut sw1 --cmd "sudo /sbin/ip link set dev sw1p2 master br0" 28 # config IP on hosts
|
H A D | bridge-vlan | 11 simp ssh tut sw1 --cmd "sudo /sbin/ip link add name br0 type bridge" 12 simp ssh tut sw1 --cmd "sudo /sbin/ip link set dev sw1p1 master br0" 13 simp ssh tut sw1 --cmd "sudo /sbin/ip link set dev sw1p2 master br0" 40 # config IP on host VLANs
|
H A D | bridge-vlan-stp | 11 simp ssh tut sw1 --cmd "sudo /sbin/ip link add name br0 type bridge" 13 simp ssh tut sw1 --cmd "sudo /sbin/ip link set dev sw1p1 master br0" 14 simp ssh tut sw1 --cmd "sudo /sbin/ip link set dev sw1p2 master br0" 35 # config IP on host VLANs
|
/qemu/hw/net/ |
H A D | net_tx_pkt.c | 49 struct ip_header ip; member 96 pkt->l3_hdr.ip.ip_len = cpu_to_be16(pkt->payload_len + in net_tx_pkt_update_ip_hdr_checksum() 99 pkt->l3_hdr.ip.ip_sum = 0; in net_tx_pkt_update_ip_hdr_checksum() 102 pkt->l3_hdr.ip.ip_sum = cpu_to_be16(csum); in net_tx_pkt_update_ip_hdr_checksum() 120 /* Calculate IP header checksum */ in net_tx_pkt_update_ip_checksums() 123 /* Calculate IP pseudo header checksum */ in net_tx_pkt_update_ip_checksums() 127 /* Calculate IP pseudo header checksum */ in net_tx_pkt_update_ip_checksums() 647 struct ip_header *ip = l3hdr->iov_base; in net_tx_pkt_tcp_fragment_fix() local 653 ip->ip_len = cpu_to_be16(len); in net_tx_pkt_tcp_fragment_fix() 671 struct ip_header *ip = l3hdr->iov_base; in net_tx_pkt_tcp_fragment_advance() local [all …]
|
H A D | net_tx_pkt.h | 36 * @max_frags: max tx ip fragments 104 * Fix ip header fields and calculate IP header and pseudo header checksums. 112 * Calculate the IP header checksum.
|
H A D | rtl8139.c | 35 * Implemented IP/TCP/UDP checksum task offloading 1077 /* IP checksum error flag */ in rtl8139_do_receive() 1926 /* IP checksum offload flag */ in rtl8139_cplus_transmit_one() 2072 /* Large enough for Ethernet and IP headers? */ in rtl8139_cplus_transmit_one() 2077 /* ip packet header */ in rtl8139_cplus_transmit_one() 2078 struct ip_header *ip = NULL; in rtl8139_cplus_transmit_one() local 2092 DPRINTF("+++ C+ mode has IP packet\n"); in rtl8139_cplus_transmit_one() 2102 ip = (struct ip_header*)eth_payload_data; in rtl8139_cplus_transmit_one() 2104 if (IP_HEADER_VERSION(ip) != IP_HEADER_VERSION_4) { in rtl8139_cplus_transmit_one() 2105 DPRINTF("+++ C+ mode packet has bad IP version %d " in rtl8139_cplus_transmit_one() [all …]
|
/qemu/hw/net/rocker/ |
H A D | rocker_of_dpa.c | 61 uint8_t proto; /* IP protocol or ARP opcode */ 62 uint8_t tos; /* IP ToS */ 63 uint8_t ttl; /* IP TTL/hop limit */ 65 } ip; member 69 uint32_t src; /* IP source address */ 70 uint32_t dst; /* IP destination address */ 273 if (key->ip.proto || (mask && mask->ip.proto)) { in of_dpa_flow_key_dump() 274 b += sprintf(b, " ip proto %2d", key->ip.proto); in of_dpa_flow_key_dump() 275 if (mask && mask->ip.proto != 0xff) { in of_dpa_flow_key_dump() 276 b += sprintf(b, "/0x%02x", mask->ip.proto); in of_dpa_flow_key_dump() [all …]
|
/qemu/tools/ebpf/ |
H A D | rss.bpf.c | 26 #include <linux/ip.h> 314 struct iphdr ip = {}; in parse_packet() local 315 err = bpf_skb_load_bytes_relative(skb, 0, &ip, sizeof(ip), in parse_packet() 321 info->in_src = ip.saddr; in parse_packet() 322 info->in_dst = ip.daddr; in parse_packet() 323 info->is_fragmented = !!(bpf_ntohs(ip.frag_off) & (0x2000 | 0x1fff)); in parse_packet() 325 l4_protocol = ip.protocol; in parse_packet() 326 l4_offset = ip.ihl * 4; in parse_packet()
|
/qemu/python/qemu/utils/ |
H A D | qemu_ga_client.py | 133 if 'ip-addresses' in nif: 134 for ipaddr in nif['ip-addresses']: 135 if ipaddr['ip-address-type'] == 'ipv4': 136 addr = ipaddr['ip-address'] 139 elif ipaddr['ip-address-type'] == 'ipv6': 140 addr = ipaddr['ip-address'] 310 help='Specify a ip:port pair or a unix socket path')
|
/qemu/include/hw/virtio/ |
H A D | virtio-net.h | 104 void *ip; /* ip header */ member 105 void *ip_plen; /* pointer to unaligned uint16_t data len in ip header */ 108 uint16_t payload; /* pure payload without virtio/eth/ip/tcp */
|
/qemu/docs/system/devices/ |
H A D | can.rst | 93 ip link set can0 type can bitrate 1000000 94 ip link set can0 up 99 ip link add dev can0 type vcan 152 /bin/ip link set $ifc type can bitrate 1000000 dbitrate 10000000 fd on 153 /bin/ip link set $ifc up
|
/qemu/tests/unit/ |
H A D | socket-helpers.c | 33 * @hostname: a DNS name or numeric IP address 36 * on the DNS name or IP address @hostname. If an IP address
|