Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/npf/npfctl IPv6 linklocal address printing cosmetics
details: https://anonhg.NetBSD.org/src/rev/b2288b9b37fd
branches: trunk
changeset: 784556:b2288b9b37fd
user: spz <spz%NetBSD.org@localhost>
date: Fri Feb 01 05:40:07 2013 +0000
description:
IPv6 linklocal address printing cosmetics
diffstat:
usr.sbin/npf/npfctl/npf_disassemble.c | 5 +++--
usr.sbin/npf/npfctl/npfctl.c | 5 +++--
2 files changed, 6 insertions(+), 4 deletions(-)
diffs (52 lines):
diff -r 9a735aa7acaa -r b2288b9b37fd usr.sbin/npf/npfctl/npf_disassemble.c
--- a/usr.sbin/npf/npfctl/npf_disassemble.c Fri Feb 01 02:53:47 2013 +0000
+++ b/usr.sbin/npf/npfctl/npf_disassemble.c Fri Feb 01 05:40:07 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: npf_disassemble.c,v 1.13 2012/12/10 02:26:04 rmind Exp $ */
+/* $NetBSD: npf_disassemble.c,v 1.14 2013/02/01 05:40:07 spz Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
* FIXME: config generation should be redesigned..
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: npf_disassemble.c,v 1.13 2012/12/10 02:26:04 rmind Exp $");
+__RCSID("$NetBSD: npf_disassemble.c,v 1.14 2013/02/01 05:40:07 spz Exp $");
#include <stdio.h>
#include <stdlib.h>
@@ -213,6 +213,7 @@
sin6->sin6_len = sizeof(*sin6);
sin6->sin6_family = AF_INET6;
sin6->sin6_port = 0;
+ sin6->sin6_scope_id = 0;
memcpy(&sin6->sin6_addr, ni->ni_pc, sizeof(sin6->sin6_addr));
sockaddr_snprintf(buf, bufsiz, "%a", (struct sockaddr *)sin6);
if (ni) {
diff -r 9a735aa7acaa -r b2288b9b37fd usr.sbin/npf/npfctl/npfctl.c
--- a/usr.sbin/npf/npfctl/npfctl.c Fri Feb 01 02:53:47 2013 +0000
+++ b/usr.sbin/npf/npfctl/npfctl.c Fri Feb 01 05:40:07 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: npfctl.c,v 1.27 2012/12/24 19:05:46 rmind Exp $ */
+/* $NetBSD: npfctl.c,v 1.28 2013/02/01 05:40:07 spz Exp $ */
/*-
* Copyright (c) 2009-2012 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: npfctl.c,v 1.27 2012/12/24 19:05:46 rmind Exp $");
+__RCSID("$NetBSD: npfctl.c,v 1.28 2013/02/01 05:40:07 spz Exp $");
#include <sys/ioctl.h>
#include <sys/stat.h>
@@ -236,6 +236,7 @@
sin6->sin6_len = sizeof(*sin6);
sin6->sin6_family = AF_INET6;
sin6->sin6_port = 0;
+ sin6->sin6_scope_id = 0;
memcpy(&sin6->sin6_addr, addr, sizeof(sin6->sin6_addr));
break;
}
Home |
Main Index |
Thread Index |
Old Index