2001-10-30 15:22:32

by Guus Sliepen

[permalink] [raw]
Subject: [PATCH] Fix check if device is ethernet in alloc_divert_blk

Hello,

I was wondering why various devices like 802.11 bridges and tap devices
weren't recognized by the kernel as ethernet devices, because I got
messages like this in my syslog:

Oct 30 15:35:52 haplo kernel: divert: not allocating divert_blk for non-ethernet device bla

Instead of checking for the actual device type, alloc_divert_blk was
just checking if the string "eth" occured in the name of the interface.
Attached patch makes it do the right thing instead (I hope).

--
Met vriendelijke groet / with kind regards,
Guus Sliepen <[email protected]>


Attachments:
(No filename) (0.00 B)
(No filename) (232.00 B)
Download all attachments

2001-10-30 20:44:20

by David Miller

[permalink] [raw]
Subject: Re: [PATCH] Fix check if device is ethernet in alloc_divert_blk

From: Guus Sliepen <[email protected]>
Date: Tue, 30 Oct 2001 16:22:35 +0100

Instead of checking for the actual device type, alloc_divert_blk was
just checking if the string "eth" occured in the name of the interface.
Attached patch makes it do the right thing instead (I hope).

I've applied your patch.

Franks a lot,
David S. Miller
[email protected]