|
@@ -85,12 +85,13 @@ static inline int ebt_do_match (struct ebt_entry_match *m,
|
|
|
static inline int ebt_dev_check(char *entry, const struct net_device *device)
|
|
static inline int ebt_dev_check(char *entry, const struct net_device *device)
|
|
|
{
|
|
{
|
|
|
int i = 0;
|
|
int i = 0;
|
|
|
- const char *devname = device->name;
|
|
|
|
|
|
|
+ const char *devname;
|
|
|
|
|
|
|
|
if (*entry == '\0')
|
|
if (*entry == '\0')
|
|
|
return 0;
|
|
return 0;
|
|
|
if (!device)
|
|
if (!device)
|
|
|
return 1;
|
|
return 1;
|
|
|
|
|
+ devname = device->name;
|
|
|
/* 1 is the wildcard token */
|
|
/* 1 is the wildcard token */
|
|
|
while (entry[i] != '\0' && entry[i] != 1 && entry[i] == devname[i])
|
|
while (entry[i] != '\0' && entry[i] != 1 && entry[i] == devname[i])
|
|
|
i++;
|
|
i++;
|