mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
eth: Make is_link_local() consistent with other address tests
Function name should include '_ether_addr'. Return type should be bool. Parameter name should be 'addr' not 'dest' (also matching kernel-doc). Signed-off-by: Ben Hutchings <[email protected]> Acked-by: John Fastabend <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
4197f24b5b
commit
46acc460c0
6 changed files with 8 additions and 8 deletions
|
|
@ -147,7 +147,7 @@ rx_handler_result_t br_handle_frame(struct sk_buff **pskb)
|
|||
|
||||
p = br_port_get_rcu(skb->dev);
|
||||
|
||||
if (unlikely(is_link_local(dest))) {
|
||||
if (unlikely(is_link_local_ether_addr(dest))) {
|
||||
/*
|
||||
* See IEEE 802.1D Table 7-10 Reserved addresses
|
||||
*
|
||||
|
|
|
|||
|
|
@ -309,7 +309,7 @@ static ssize_t store_group_addr(struct device *d,
|
|||
&new_addr[3], &new_addr[4], &new_addr[5]) != 6)
|
||||
return -EINVAL;
|
||||
|
||||
if (!is_link_local(new_addr))
|
||||
if (!is_link_local_ether_addr(new_addr))
|
||||
return -EINVAL;
|
||||
|
||||
if (new_addr[5] == 1 || /* 802.3x Pause address */
|
||||
|
|
|
|||
Loading…
Reference in a new issue