Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Apr 2014 20:06:40 +0200 (CEST)
From:      "soswitch.com" <news@newsletter.soswitch.com>
To:        freebsd-doc@freebsd.org
Subject:   Welcome Back to So Switch | Start Saving Today
Message-ID:  <pdgvgr.hu4d0vg8fnynsxt@newsletter.soswitch.com>

next in thread | raw e-mail | index | archive | help
Soswitch.com

Home
http://newsletter.soswitch.com/re?l=3DD0IlicrvmI5zj1ramI0

Mortgages:
http://newsletter.soswitch.com/re?l=3DD0IlicrvmI5zj1ramI1

Money:
http://newsletter.soswitch.com/re?l=3DD0IlicrvmI5zj1ramI2

Insurance:
http://newsletter.soswitch.com/re?l=3DD0IlicrvmI5zj1ramI3

Broadband:
http://newsletter.soswitch.com/re?l=3DD0IlicrvmI5zj1ramI4

-------------------------------------------------------

Welcome Back to SO Switch

Welcome to the NEW So Switch Newsletter

So Switch is a completely independent comparison service. We strive to find=
 the best deals so you can keep your pockets lined. If you want to save, we=
 are the service that can help you
We offer a number of services to help keep living costs down, allowing you =
to spend your money on things that really matter to you.
We bring you more than just quotes - We are a service that keeps you inform=
ed and passes the savings on to you.=20


Mortgages: http://newsletter.soswitch.com/re?l=3DD0IlicrvmI5zj1ramI5
Life Insurance: http://newsletter.soswitch.com/re?l=3DD0IlicrvmI5zj1ramI6
Credit cards: http://newsletter.soswitch.com/re?l=3DD0IlicrvmI5zj1ramI7

------------------------------------------------------

Read, Compare and Make an Informed Decision

=20
Each week we publish articles with up to date information to keep you in th=
e know and along with our guides you can make the right choices for your fi=
nances.
Our articles will look at the market and compare the deals out there and ex=
plain if they really are as good as they seem.

Repossessed Properties: http://newsletter.soswitch.com/re?l=3DD0IlicrvmI5zj=
1ramI8
Life Insurance Guide: http://newsletter.soswitch.com/re?l=3DD0IlicrvmI5zj1r=
amI9
Top Cashback Credit card: http://newsletter.soswitch.com/re?l=3DD0IlicrvmI5=
zj1ramIa

------------------------------------------------------

If you want to continue receiving our 'up to date' information on the lates=
t goings on, make sure to add us to your safe senders list.

------------------------------------------------------

=20
This email is sent to you by soswitch.com. If you have any questions with r=
egards to how your data was obtained and how it is processed please contact=
 soswitch.com by clicking here.
http://newsletter.soswitch.com/re?l=3DD0IlicrvmI5zj1ramIb

While we take every care to ensure the information provided is correct and =
up to date, please always check with the providers before committing yourse=
lves.

This email or articles featured here provide links to third party websites.=
 Please note soswitch.com take no responsibility for the content of these t=
hird party websites. This information is for the use by UK individuals only=
 and is the responsibility of individuals to confirm the product is suitabl=
e for your requirements.

*Quotezone (a trading style of Seopa Ltd) reviewed 61,855 quote requests on=
 Quotezone's home insurance comparison service between July and September 2=
012. They took the cheapest from the median (half way point) quote returned=
 to each customer to produce a "representative" saving. 50%+ achieved a rep=
resentative saving of =A368.62 or more. The savings you could achieve are d=
ependent on your individual circumstances and how you selected your current=
 insurance supplier.

THINK CAREFULLY BEFORE SECURING OTHER DEBTS AGAINST YOUR HOME. YOUR HOME MA=
Y BE REPOSSESSED IF YOU DO NOT KEEP UP REPAYMENTS ON YOUR MORTGAGE

Soswitch is a trading styles of Simply Online Media Limited whose registere=
d office address is Resolution House, 1C Riparian Way, Crossings Business P=
ark, Keighley, BD20 7BW. Email: info@soswitch.com. Registered in England an=
d Wales, Company No. 07849157

Consumer Credit License No. 0649995

Please click here if you do not want to receive any further messages: Unsub=
scribe =20
http://newsletter.soswitch.com/public/unsubscribe.jsp?gid=3D1300105313&uid=
=3D13032222574&mid=3D1300618786&sig=3DMBOHJBAKADILBJND&l=3DD0IlicrvmI5zj1ra=
mI&slt=3D4
From owner-freebsd-doc@FreeBSD.ORG  Sat Apr 19 07:10:00 2014
Return-Path: <owner-freebsd-doc@FreeBSD.ORG>
Delivered-To: freebsd-doc@smarthost.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by hub.freebsd.org (Postfix) with ESMTPS id C67441DF
 for <freebsd-doc@smarthost.ysv.freebsd.org>;
 Sat, 19 Apr 2014 07:10:00 +0000 (UTC)
Received: from freefall.freebsd.org (freefall.freebsd.org
 [IPv6:2001:1900:2254:206c::16:87])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client did not present a certificate)
 by mx1.freebsd.org (Postfix) with ESMTPS id A340E159B
 for <freebsd-doc@smarthost.ysv.freebsd.org>;
 Sat, 19 Apr 2014 07:10:00 +0000 (UTC)
Received: from freefall.freebsd.org (localhost [127.0.0.1])
 by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s3J7A0Pe093140
 for <freebsd-doc@freefall.freebsd.org>; Sat, 19 Apr 2014 07:10:00 GMT
 (envelope-from gnats@freefall.freebsd.org)
Received: (from gnats@localhost)
 by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s3J7A02t093139;
 Sat, 19 Apr 2014 07:10:00 GMT (envelope-from gnats)
Resent-Date: Sat, 19 Apr 2014 07:10:00 GMT
Resent-Message-Id: <201404190710.s3J7A02t093139@freefall.freebsd.org>
Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer)
Resent-To: freebsd-doc@FreeBSD.org
Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org,
 Michael Kerrisk <mtk.manpages@gmail.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
 (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by hub.freebsd.org (Postfix) with ESMTPS id F33BE1AD
 for <freebsd-gnats-submit@FreeBSD.org>; Sat, 19 Apr 2014 07:06:48 +0000 (UTC)
Received: from cgiserv.freebsd.org (cgiserv.freebsd.org
 [IPv6:2001:1900:2254:206a::50:4])
 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
 (Client did not present a certificate)
 by mx1.freebsd.org (Postfix) with ESMTPS id C66561580
 for <freebsd-gnats-submit@FreeBSD.org>; Sat, 19 Apr 2014 07:06:48 +0000 (UTC)
Received: from cgiserv.freebsd.org ([127.0.1.6])
 by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s3J76mXE099180
 for <freebsd-gnats-submit@FreeBSD.org>; Sat, 19 Apr 2014 07:06:48 GMT
 (envelope-from nobody@cgiserv.freebsd.org)
Received: (from nobody@localhost)
 by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s3J76mLO099179;
 Sat, 19 Apr 2014 07:06:48 GMT (envelope-from nobody)
Message-Id: <201404190706.s3J76mLO099179@cgiserv.freebsd.org>
Date: Sat, 19 Apr 2014 07:06:48 GMT
From: Michael Kerrisk <mtk.manpages@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
X-Send-Pr-Version: www-3.1
Subject: docs/188786: Bug in inet3) man page (inet_aton())
X-BeenThere: freebsd-doc@freebsd.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Documentation project <freebsd-doc.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-doc>,
 <mailto:freebsd-doc-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-doc/>;
List-Post: <mailto:freebsd-doc@freebsd.org>
List-Help: <mailto:freebsd-doc-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-doc>,
 <mailto:freebsd-doc-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sat, 19 Apr 2014 07:10:00 -0000


>Number:         188786
>Category:       docs
>Synopsis:       Bug in inet3) man page (inet_aton())
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 19 07:10:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Michael Kerrisk
>Release:        10.0
>Organization:
Linux man-pages maintainer
>Environment:
n/a
>Description:
As http://www.freebsd.org/cgi/man.cgi?query=inet_aton&apropos=0&sektion=0&manpath=FreeBSD+10.0-RELEASE&arch=default&format=html, on sees the text:

     When a two	part address is	supplied, the last part	is interpreted as a
     24-bit quantity and placed	in the right most three	bytes of the network
     address.  This makes the two part address format convenient for specify-
     ing Class A network addresses as ``net.host''.

In the second line, there should I believe be the substitution: s/network$/host$/. 

I have no FreeBSD system to test, but have tested on OpenBSD and Linux. Furthermore, the change makes sense when one reads the surrounding text.

I see the same text in the OpenBSD page, and also the NetBSD page. How does this work -- should I submit bugs for each of those systems, or do communicate such problems to one another?

Thanks,

Michael Kerrisk
(maintainer, Linux man-pages project)

Test code:
#define _BSD_SOURCE
#include <arpa/inet.h>
#include <stdio.h>
#include <stdlib.h>

static void
printBytes(in_addr_t a)
{
    printf("%d", (a >> 24) & 0xff);
    printf(".");
    printf("%d", (a >> 16) & 0xff);
    printf(".");
    printf("%d", (a >> 8) & 0xff);
    printf(".");
    printf("%d", (a & 0xff));
} /* printBytes */

int
main(int argc, char *argv[])
{
    struct in_addr addr;

    if (argc != 2) {
        fprintf(stderr, "%s <dotted-address>\n", argv[0]);
        exit(EXIT_FAILURE);
    }

    if (inet_aton(argv[1], &addr) == 0) {
        fprintf(stderr, "inet_aton() failed\n");
        exit(EXIT_FAILURE);
    }

    printf("%s\n", inet_ntoa(addr));

    struct in_addr n, h;

    n.s_addr = inet_netof(addr);
    printf("Network number       : ");
    printBytes(n.s_addr);
    printf("\n");

    h.s_addr = inet_lnaof(addr);
    printf("Local network address: ");
    printBytes(h.s_addr);
    printf("\n");

    addr = inet_makeaddr(n.s_addr, h.s_addr);
    printf("Made address: %s\n", inet_ntoa(addr));

    exit(EXIT_SUCCESS);
}

>How-To-Repeat:

>Fix:
As above

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?pdgvgr.hu4d0vg8fnynsxt>