|
@@ -178,7 +178,7 @@ static void ebt_ulog_packet(unsigned int hooknr, const struct sk_buff *skb,
|
|
|
strcpy(pm->physindev, in->name);
|
|
|
/* If in isn't a bridge, then physindev==indev */
|
|
|
if (in->br_port)
|
|
|
- strcpy(pm->indev, in->br_port->br->dev->name);
|
|
|
+ strcpy(pm->indev, br_port(in)->br->dev->name);
|
|
|
else
|
|
|
strcpy(pm->indev, in->name);
|
|
|
} else
|
|
@@ -187,7 +187,7 @@ static void ebt_ulog_packet(unsigned int hooknr, const struct sk_buff *skb,
|
|
|
if (out) {
|
|
|
/* If out exists, then out is a bridge port */
|
|
|
strcpy(pm->physoutdev, out->name);
|
|
|
- strcpy(pm->outdev, out->br_port->br->dev->name);
|
|
|
+ strcpy(pm->outdev, br_port(out)->br->dev->name);
|
|
|
} else
|
|
|
pm->outdev[0] = pm->physoutdev[0] = '\0';
|
|
|
|