Searched refs:udp (Results 1 – 8 of 8) sorted by relevance
115 packet->udp.source = htobe16(source_port); in dhcp_packet_append_ip_headers()116 packet->udp.dest = htobe16(destination_port); in dhcp_packet_append_ip_headers()118 packet->udp.len = htobe16(len - DHCP_IP_SIZE); in dhcp_packet_append_ip_headers()120 packet->ip.check = packet->udp.len; in dhcp_packet_append_ip_headers()121 packet->udp.check = dhcp_packet_checksum((uint8_t*)&packet->ip.ttl, len - 8); in dhcp_packet_append_ip_headers()162 if (len < hdrlen + be16toh(packet->udp.len)) in dhcp_packet_verify_headers()165 len, hdrlen + be16toh(packet->udp.len)); in dhcp_packet_verify_headers()167 if (be16toh(packet->udp.dest) != port) in dhcp_packet_verify_headers()170 be16toh(packet->udp.dest), port); in dhcp_packet_verify_headers()180 if (checksum && packet->udp.check) { in dhcp_packet_verify_headers()[all …]
202 assert_se(discover->udp.source == be16toh(DHCP_PORT_CLIENT)); in dhcp_network_send_raw_socket()203 assert_se(discover->udp.dest == be16toh(DHCP_PORT_SERVER)); in dhcp_network_send_raw_socket()208 discover->ip.check = discover->udp.len; in dhcp_network_send_raw_socket()
38 struct udphdr udp; member
43 …BPF_STMT(BPF_LD + BPF_H + BPF_ABS, offsetof(DHCPPacket, udp.dest)), /* A <- UDP destination por… in _bind_raw_socket()
239 struct xt_udp *udp; in fw_iptables_add_local_dnat() local242 udp = (struct xt_udp*) m->data; in fw_iptables_add_local_dnat()243 udp->dpts[0] = udp->dpts[1] = local_port; in fw_iptables_add_local_dnat()244 udp->spts[0] = 0; in fw_iptables_add_local_dnat()245 udp->spts[1] = 0xFFFF; in fw_iptables_add_local_dnat()271 mr->range[0].min.udp.port = mr->range[0].max.udp.port = htobe16(remote_port); in fw_iptables_add_local_dnat()
13 EncapsulationType=udp
56 [FAMILY]='tcp udp sctp'
7812 "udp" and "tcp", and configures whether to enable the stub DNS