Package: dhcp3-server
Version: 3.0.1-2
Severity: normal

Hello,

There is a problem with dhcp3-server when used on IP aliased interfaces.

If one of the aliased interface is named with two semi colon (e. g.
eth1:hello:0), the interface name is detected uncorrectly.

After a quick look into the code, this is probably caused by come code in
common/discover.c, somewhat like:

around line 379:

sep = strrchr (buffer, ':');
if (sep)
  *sep = '\0';


or around line 230:

#ifdef ALIAS_NAMES_PERMUTED
if ((s = strrchr (ifp -> ifr_name, ':'))) {
        *s = 0;
}
#endif

Not sure which one is used first.

Note: This happened on a stable machine, but I look the code from unstable
(3.0.4-6). But I think it's the same.

Cheers,
-- 
Julien Danjou
// Λ̊ <[EMAIL PROTECTED]>   http://julien.danjou.info
// 9A0D 5FD9 EB42 22F6 8974  C95C A462 B51E C2FE E5CD
// Trust me.

Attachment: signature.asc
Description: Digital signature

Reply via email to