Discussion:
ether_nonstatic_aton() and cdce(4)
(too old to reply)
Jonathan A. Kollasch
2010-05-17 02:26:09 UTC
Permalink
Hi,

ether_nonstatic_aton(9) currently insists on input in the form of
"01:23:45:AB:cD:ef".

The USB CDC ECM spec indicates the above address be represented as
"012345ABCDEF".

I'd like to make ether_nonstatic_aton() much less strict;
accepting 6 nibble pairs each optionally followed by a ispunct().

Objections, or should I just create a cdce_ether_nonstatic_aton()?

Jonathan Kollasch

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Jonathan A. Kollasch
2010-05-17 15:08:54 UTC
Permalink
Post by Jonathan A. Kollasch
I'd like to make ether_nonstatic_aton() much less strict;
accepting 6 nibble pairs each optionally followed by a ispunct().
Proposed change in the patch attached.
(Sorry about the whitespace diff.)

It seems slightly rude to corrupt the caller's string.
Shouldn't the source string argument be const char *?

Jonathan Kollasch

Loading...