From patchwork Wed Mar 9 11:37:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans Dedecker X-Patchwork-Id: 594995 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (caladan.dune.hu [78.24.191.180]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 1FD11140B0D for ; Wed, 9 Mar 2016 22:37:21 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=ogb1OlaN; dkim-atps=neutral Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id B686DB92457; Wed, 9 Mar 2016 12:37:15 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP; Wed, 9 Mar 2016 12:37:15 +0100 (CET) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id CC63BB92450 for ; Wed, 9 Mar 2016 12:37:13 +0100 (CET) X-policyd-weight: using cached result; rate: -7 Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Wed, 9 Mar 2016 12:37:08 +0100 (CET) Received: by mail-wm0-f44.google.com with SMTP id l68so66777384wml.1 for ; Wed, 09 Mar 2016 03:37:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=qetlwutw9TXb+FqFcNMOuby7/KvZIYzCXuc3pUo14tI=; b=ogb1OlaNZK7iftW3nSeV4uMETWQ7g7/WLOAbd++QU+DyGZxQkiJz7JdODmkv+D2d1p Ivd1j1xLFKVnjctwSdaFF4dNj0RQI2tMBuebeFjeOA/Zb7B+ALdEzARs/mreXbQhTR7b gYHJMsK3xk7UyPy5CHCr+xUrrL0nWklRo/zr+WTxn+MgDqzAQ6W2kUdpLQOwAQMeCHEe 9ma4P1UipJTkCbomhOKs2+pzoeGVkAPCDP/ghRAjOIZJ4ru5hYoiy4KCMTk5tbcaTquQ 11iT2f3GdZILLtbAmwbQmyqRrv8UiQ56pWrtI2xkeNzTgQxN5b8wttCR8/nPlqLcx4P0 Rb5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=qetlwutw9TXb+FqFcNMOuby7/KvZIYzCXuc3pUo14tI=; b=KWWCEquaAh+SrSbwe6wfN+qcKTBqfVZRZ2YFboKAyqALadu4ybb+i8edb83vcbBWX+ dz6F4x5MRKNPKWLygbsk/ciGWd7lPBH1eIt8uH2Nr4WMwvbEld26pkzmeHDmy7Q9erxG Tk9GTnwBBoWgNyG2kGV5zDHEUNzkobPRWSTpU8XsSx961xV57I9HDG1/tlA4lg83X5n9 Y6SM/7LZRNKpywgCaesgjA+gqJpMbADFeJJVTuQi6ynkVBBBznCqw29939TXp4Joqz+H 0B6jwk2hLBh4aQHR8WPn5b3UF/Mn/JEVDyprwBBYZvtC01hwhzPpU688/DA9O16JUNrb 9wag== X-Gm-Message-State: AD7BkJIeOyBzhJX4sXqOi8ZiUvo+rTNXTVLylhdEl5moOFk28KlP3QSeLDK9fHnQDsbDiA== X-Received: by 10.194.189.7 with SMTP id ge7mr34282912wjc.72.1457523427535; Wed, 09 Mar 2016 03:37:07 -0800 (PST) Received: from cplx43.eu.thmulti.com ([141.11.62.7]) by smtp.gmail.com with ESMTPSA id ks5sm7521721wjb.13.2016.03.09.03.37.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Mar 2016 03:37:06 -0800 (PST) From: Hans Dedecker To: openwrt-devel@lists.openwrt.org Date: Wed, 9 Mar 2016 12:37:04 +0100 Message-Id: <1457523424-13302-1-git-send-email-dedeckeh@gmail.com> X-Mailer: git-send-email 1.9.1 Subject: [OpenWrt-Devel] [PATCH] odhcp6c : Silence mtu write error warnings X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Hans Dedecker , cyrus@openwrt.org MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Silence warning "daemon.notice netifd: wan6 (1139): sh: write error: Invalid argument" when an invalid MTU is received via RA as kernel refuses to accept IPv6 mtu values which are smaller than 1280 and bigger than the device mtu. Signed-off-by: Hans Dedecker --- package/network/ipv6/odhcp6c/files/dhcpv6.script | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/network/ipv6/odhcp6c/files/dhcpv6.script b/package/network/ipv6/odhcp6c/files/dhcpv6.script index c307d09..46980cb 100755 --- a/package/network/ipv6/odhcp6c/files/dhcpv6.script +++ b/package/network/ipv6/odhcp6c/files/dhcpv6.script @@ -185,7 +185,7 @@ setup_interface () { # Apply IPv6 / ND configuration HOPLIMIT=$(cat /proc/sys/net/ipv6/conf/$device/hop_limit) [ -n "$RA_HOPLIMIT" -a -n "$HOPLIMIT" ] && [ "$RA_HOPLIMIT" -gt "$HOPLIMIT" ] && echo "$RA_HOPLIMIT" > /proc/sys/net/ipv6/conf/$device/hop_limit - [ -n "$RA_MTU" ] && [ "$RA_MTU" -gt 0 ] && echo "$RA_MTU" > /proc/sys/net/ipv6/conf/$device/mtu + [ -n "$RA_MTU" ] && [ "$RA_MTU" -ge 1280 ] && echo "$RA_MTU" > /proc/sys/net/ipv6/conf/$device/mtu 2>/dev/null [ -n "$RA_REACHABLE" ] && [ "$RA_REACHABLE" -gt 0 ] && echo "$RA_REACHABLE" > /proc/sys/net/ipv6/neigh/$device/base_reachable_time_ms [ -n "$RA_RETRANSMIT" ] && [ "$RA_RETRANSMIT" -gt 0 ] && echo "$RA_RETRANSMIT" > /proc/sys/net/ipv6/neigh/$device/retrans_time_ms