Message ID | 20171123140444.17119-10-sven.eckelmann@openmesh.com |
---|---|
State | Accepted, archived |
Commit | 15a1335cadacc7c3bb4723a30617d123a961a311 |
Delegated to: | Simon Wunderlich |
Headers | show
Return-Path: <b.a.t.m.a.n-bounces@lists.open-mesh.org> X-Original-To: patchwork@open-mesh.org Delivered-To: patchwork@open-mesh.org Received: from open-mesh.org (localhost [IPv6:::1]) by open-mesh.org (Postfix) with ESMTP id AC4438092A; Thu, 23 Nov 2017 15:06:20 +0100 (CET) Authentication-Results: open-mesh.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=openmesh-com.20150623.gappssmtp.com header.i=@openmesh-com.20150623.gappssmtp.com header.b="TqG6dGIl"; dkim-atps=neutral Received-SPF: None (mailfrom) identity=mailfrom; client-ip=2607:f8b0:400d:c09::243; helo=mail-qk0-x243.google.com; envelope-from=sven.eckelmann@openmesh.com; receiver=<UNKNOWN> Received: from mail-qk0-x243.google.com (mail-qk0-x243.google.com [IPv6:2607:f8b0:400d:c09::243]) by open-mesh.org (Postfix) with ESMTPS id 6AB488070B for <b.a.t.m.a.n@lists.open-mesh.org>; Thu, 23 Nov 2017 15:05:36 +0100 (CET) Received: by mail-qk0-x243.google.com with SMTP id 136so21089967qkd.4 for <b.a.t.m.a.n@lists.open-mesh.org>; Thu, 23 Nov 2017 06:05:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openmesh-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=8wxcJ1aBnKIjy3vC8m5YtcMUZdghguHftLGmgimtD5E=; b=TqG6dGIly+EGClwNkSAqfc4sYcfH/MzKG5chpsKsWN3EJU33Iqmei/1unV5CKJMBxC bpY0F8RS0nxDk0bP3OBDU1EJ/UBdgGW0Bt0jXSeyl2QC6YPS5mk7vWHRXviEAhnS2Pfv RWuLx794FtNmNBf31D+qCvh1Lscwo4BnBMZAAmR1/QURkGKBPvpaFyVKJRQeiTKW3yWb XOVBzwXwMPZTLndWkil0Pvqp4y/UJ9mV5LR2Ud6FkCB5AzY7C7kVqlbxPGTMVmTvXlc2 BuH/aPjl7zHPuPromUUDasFVjY1l1tpoVPUDax9HqMhkoeZIuD+k301vI1UjtG5JbjFR KTjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=8wxcJ1aBnKIjy3vC8m5YtcMUZdghguHftLGmgimtD5E=; b=QxOfzjjzCxHkMoJwPYG4Im2JNSQVpdnp7evfjdV/hNdIRa7TFZb0U5LjX+IZPrrM6g P7stJWtlSCi2Ub7hZwpaZXJIrSCHglq5Lhz/d5136iitu1ERZRhRV0zG+twx8Os8b+/w USXNsFwa3LZWFH8EgaOGf3glc2zx3Hrm2oK0YIQOzZqi8T0argso2F8fZzcKHFqn45Ih MDC4AF7kmc7gogWKsBwf7ZpwEEjhX6zVllFgK44BOtka0ZvI6xdtocLkU3LF2yAIWSwT 9kafl5LPRILOjy4u7lbzZsKz+yAMPwnecjXHkFPzB7ye3ZZYHAMYQAnU+D7pewta/n8y lrgA== X-Gm-Message-State: AJaThX53iWilGI8jgAMfl2kUB2z3o6k0dnM9/Iqsb+guttPedn1bRjnK InTsrWyAGef8zy4H36NFyskucVOq X-Google-Smtp-Source: AGs4zMaQsKbCgMmbMNN6Gh9eatOT1TXMiizvnK7k/oOlU6TQh7NwZY3UCGhfZXFyryT2zzYd05Sw0w== X-Received: by 10.233.244.72 with SMTP id z8mr39080120qkl.107.1511445934450; Thu, 23 Nov 2017 06:05:34 -0800 (PST) Received: from sven-desktop.home.narfation.org (p2003007C6F53F7FA6FAE965552C91071.dip0.t-ipconnect.de. [2003:7c:6f53:f7fa:6fae:9655:52c9:1071]) by smtp.gmail.com with ESMTPSA id f5sm13176785qte.87.2017.11.23.06.05.33 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 23 Nov 2017 06:05:34 -0800 (PST) From: Sven Eckelmann <sven.eckelmann@openmesh.com> To: b.a.t.m.a.n@lists.open-mesh.org Date: Thu, 23 Nov 2017 15:04:43 +0100 Message-Id: <20171123140444.17119-10-sven.eckelmann@openmesh.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171123140444.17119-1-sven.eckelmann@openmesh.com> References: <20171123140444.17119-1-sven.eckelmann@openmesh.com> Subject: [B.A.T.M.A.N.] [PATCH 09/10] batctl: tcpdump: Fix types for for TT v1 X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The list for a Better Approach To Mobile Ad-hoc Networking <b.a.t.m.a.n.lists.open-mesh.org> List-Unsubscribe: <https://lists.open-mesh.org/mm/options/b.a.t.m.a.n>, <mailto:b.a.t.m.a.n-request@lists.open-mesh.org?subject=unsubscribe> List-Archive: <http://lists.open-mesh.org/pipermail/b.a.t.m.a.n/> List-Post: <mailto:b.a.t.m.a.n@lists.open-mesh.org> List-Help: <mailto:b.a.t.m.a.n-request@lists.open-mesh.org?subject=help> List-Subscribe: <https://lists.open-mesh.org/mm/listinfo/b.a.t.m.a.n>, <mailto:b.a.t.m.a.n-request@lists.open-mesh.org?subject=subscribe> Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking <b.a.t.m.a.n@lists.open-mesh.org> Cc: Sven Eckelmann <sven.eckelmann@openmesh.com> Errors-To: b.a.t.m.a.n-bounces@lists.open-mesh.org Sender: "B.A.T.M.A.N" <b.a.t.m.a.n-bounces@lists.open-mesh.org> |
Series |
batctl: Fixes and minor cleanup
|
expand
|
diff --git a/tcpdump.c b/tcpdump.c index 5eb99cf..a1b057b 100644 --- a/tcpdump.c +++ b/tcpdump.c @@ -158,7 +158,8 @@ static void batctl_tvlv_parse_tt_v1(void *buff, ssize_t buff_len) { struct batadv_tvlv_tt_data *tvlv = buff; struct batadv_tvlv_tt_vlan_data *vlan; - int i, num_vlan, num_entry; + int i; + unsigned short num_vlan, num_entry; const char *type; size_t vlan_len;
The num_entry and num_vlan variables are accessed (printed) as u16 variables and not like integers. They should therefore also be stored like that. Signed-off-by: Sven Eckelmann <sven.eckelmann@openmesh.com> --- tcpdump.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)