Content-Type: multipart/mixed; boundary="a2FkP9tdjPU2nyhF" Content-Disposition: inline --a2FkP9tdjPU2nyhF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, Please find attached a patch that was submitted via a Debian user of dhcp-client to ignore IRDA interfaces, which I have extended to ignore sit0 and Firewire Ethernet interfaces as well. regards Andrew --a2FkP9tdjPU2nyhF Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ignore-invalid-interfaces.dpatch" Content-Transfer-Encoding: quoted-printable #! /bin/sh /usr/share/dpatch/dpatch-run ## ignore-invalid-interfaces.dpatch by ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Initially a patch from Marius Gedminas to ignore irda0, but ## DP: I extended it to also ignore sit0 and Firewire Ethernet as well ## DP: See #239907 for origins @DPATCH@ diff -urNad --exclude=3DCVS --exclude=3D.svn ./common/discover.c /tmp/dpep-= work.1c9c61/dhcp3-3.0.3/common/discover.c --- ./common/discover.c 2005-03-04 03:55:22.000000000 +1100 +++ /tmp/dpep-work.1c9c61/dhcp3-3.0.3/common/discover.c 2005-09-24 18:36:06= =2E128403705 +1000 @@ -463,6 +463,18 @@ #ifdef HAVE_ARPHRD_ROSE case ARPHRD_ROSE: #endif +#ifdef HAVE_ARPHRD_IRDA + case ARPHRD_IRDA: + /* ignore infrared interfaces. */ +#endif +#ifdef HAVE_ARPHRD_SIT + case ARPHRD_SIT: + /* ignore IPv6-in-IPv4 interfaces. */ +#endif=20 +#ifdef HAVE_ARPHRD_IEEE1394 + case ARPHRD_IEEE1394: + /* ignore IEEE1394 interfaces. */ +#endif #ifdef HAVE_ARPHRD_LOOPBACK case ARPHRD_LOOPBACK: /* ignore loopback interface */ diff -urNad --exclude=3DCVS --exclude=3D.svn ./includes/osdep.h /tmp/dpep-w= ork.1c9c61/dhcp3-3.0.3/includes/osdep.h --- ./includes/osdep.h 2004-10-01 06:38:31.000000000 +1000 +++ /tmp/dpep-work.1c9c61/dhcp3-3.0.3/includes/osdep.h 2005-09-24 18:36:48.= 206259223 +1000 @@ -267,6 +267,18 @@ # define HAVE_ARPHRD_LOOPBACK #endif =20 +#if defined (ARPHRD_IRDA) && !defined (HAVE_ARPHRD_IRDA) +# define HAVE_ARPHRD_IRDA +#endif + +#if defined (ARPHRD_SIT) && !defined (HAVE_ARPHRD_SIT) +# define HAVE_ARPHRD_SIT +#endif + +#if defined (ARPHRD_IEEE1394) & !defined (HAVE_ARPHRD_IEEE1394) +# define HAVE_ARPHRD_IEEE1394 +#endif + #if defined (ARPHRD_ROSE) && !defined (HAVE_ARPHRD_ROSE) # define HAVE_ARPHRD_ROSE #endif --a2FkP9tdjPU2nyhF-- -- Attached file included as plaintext by Ecartis -- -- File: signature.asc Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFDNREmIblXXKfZFgIRAljBAKCkKDpofqEehEh64DGE6O0oM8tViQCfTJ33 LdVNQlx9UjLhRPS4noQLYjk= =9hl6 -----END PGP SIGNATURE-----