From: Raj <obelix123@toughguy.net>
To: MAEDA Naoaki <maeda.naoaki@jp.fujitsu.com>
Cc: akpm@osdl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] packet_sendmsg_spkt incorrectly truncates an interface name
Date: Tue, 10 Feb 2004 13:55:19 +0530 (IST) [thread overview]
Message-ID: <Pine.LNX.4.56.0402101352080.1484@localhost.localdomain> (raw)
In-Reply-To: <20040210.165220.85391060.maeda@jp.fujitsu.com>
On Tue, 10 Feb 2004, MAEDA Naoaki wrote:
> Hi,
>
> > > Obviously, max name length of a network interface name is IFNAMESIZ-1,
> > > which is 15.
> >
> > Yes, but sockaddr_pkt.spkt_device[] is only 14 bytes for some reason.
>
> Oops! I have not checked it.
> Does anybody know the reason why it is only 14 bytes?
>
include/linux/socket.h
struct sockaddr {
...
char sa_data[14]; /* 14 bytes of protocol address */
};
A 14 byte field here too !. Maybe there is an explanation.
/Raj
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
prev parent reply other threads:[~2004-02-10 8:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-10 7:30 MAEDA Naoaki
2004-02-10 7:43 ` Andrew Morton
2004-02-10 7:52 ` MAEDA Naoaki
2004-02-10 8:25 ` Raj [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.56.0402101352080.1484@localhost.localdomain \
--to=obelix123@toughguy.net \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maeda.naoaki@jp.fujitsu.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®