Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37583133
en ru br
ALT Linux repositórios
S:4.4.3.P1-alt1
5.0: 3.0.7-alt1
4.1: 3.0.6-alt2.M41.1
4.0: 3.0.6-alt1
3.0: 3.0.2-alt1

Group :: Sistema/Servidores
RPM: dhcp

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: 0021-Ignore-checksums-on-the-loopback-interface.patch
Download


From 0 Mon Sep 17 00:00:00 2001
From: Mikhail Efremov <sem@altlinux.org>
Date: Tue, 30 Oct 2012 18:45:41 +0400
Subject: [PATCH 21] Ignore checksums on the loopback interface.
Applied no_loopback_checksum patch from Debian.
Debian bug #478532.
diff --git a/dhcp/common/packet.c b/dhcp/common/packet.c
index defaced..defaced 100644
--- a/dhcp/common/packet.c
+++ b/dhcp/common/packet.c
@@ -365,6 +365,10 @@ decode_udp_ip_header(struct interface_info *interface,
 
   /* UDP check sum may be optional (udp.uh_sum == 0) or not ready if checksum
    * offloading is in use */
+  if (interface -> hw_address.hbuf [0] == 0) {
+    udp.uh_sum = 0;
+  }
+
   udp_packets_seen++;
   if (udp.uh_sum && csum_ready) {
 	/* Check the UDP header checksum - since the received packet header
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009