mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-09 06:43:06 +00:00
rtl8188eu: Remove double blank lines in core/*.h
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
51e6fae39e
commit
11ab93f073
21 changed files with 0 additions and 462 deletions
|
@ -69,7 +69,6 @@
|
|||
PPPoE |type| SID | AC MAC |
|
||||
-----------------------------------------------------------------*/
|
||||
|
||||
|
||||
/* Find a tag in pppoe frame and return the pointer */
|
||||
static __inline__ unsigned char *__nat25_find_pppoe_tag(struct pppoe_hdr *ph, unsigned short type)
|
||||
{
|
||||
|
@ -88,7 +87,6 @@ static __inline__ unsigned char *__nat25_find_pppoe_tag(struct pppoe_hdr *ph, un
|
|||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static __inline__ int __nat25_add_pppoe_tag(struct sk_buff *skb, struct pppoe_tag *tag)
|
||||
{
|
||||
struct pppoe_hdr *ph = (struct pppoe_hdr *)(skb->data + ETH_HLEN);
|
||||
|
@ -138,7 +136,6 @@ static __inline__ unsigned long __nat25_timeout(struct adapter *priv)
|
|||
return timeout;
|
||||
}
|
||||
|
||||
|
||||
static __inline__ int __nat25_has_expired(struct adapter *priv,
|
||||
struct nat25_network_db_entry *fdb)
|
||||
{
|
||||
|
@ -148,7 +145,6 @@ static __inline__ int __nat25_has_expired(struct adapter *priv,
|
|||
return 0;
|
||||
}
|
||||
|
||||
|
||||
static __inline__ void __nat25_generate_ipv4_network_addr(unsigned char *networkAddr,
|
||||
unsigned int *ipAddr)
|
||||
{
|
||||
|
@ -158,7 +154,6 @@ static __inline__ void __nat25_generate_ipv4_network_addr(unsigned char *network
|
|||
memcpy(networkAddr+7, (unsigned char *)ipAddr, 4);
|
||||
}
|
||||
|
||||
|
||||
static __inline__ void __nat25_generate_ipx_network_addr_with_node(unsigned char *networkAddr,
|
||||
__be32 *ipxNetAddr, unsigned char *ipxNodeAddr)
|
||||
{
|
||||
|
@ -169,7 +164,6 @@ static __inline__ void __nat25_generate_ipx_network_addr_with_node(unsigned char
|
|||
memcpy(networkAddr+5, ipxNodeAddr, 6);
|
||||
}
|
||||
|
||||
|
||||
static __inline__ void __nat25_generate_ipx_network_addr_with_socket(unsigned char *networkAddr,
|
||||
__be32 *ipxNetAddr, __be16 *ipxSocketAddr)
|
||||
{
|
||||
|
@ -180,7 +174,6 @@ static __inline__ void __nat25_generate_ipx_network_addr_with_socket(unsigned ch
|
|||
memcpy(networkAddr+5, (unsigned char *)ipxSocketAddr, 2);
|
||||
}
|
||||
|
||||
|
||||
static __inline__ void __nat25_generate_apple_network_addr(unsigned char *networkAddr,
|
||||
__be16 *network, unsigned char *node)
|
||||
{
|
||||
|
@ -191,7 +184,6 @@ static __inline__ void __nat25_generate_apple_network_addr(unsigned char *networ
|
|||
networkAddr[3] = *node;
|
||||
}
|
||||
|
||||
|
||||
static __inline__ void __nat25_generate_pppoe_network_addr(unsigned char *networkAddr,
|
||||
unsigned char *ac_mac, __be16 *sid)
|
||||
{
|
||||
|
@ -202,7 +194,6 @@ static __inline__ void __nat25_generate_pppoe_network_addr(unsigned char *networ
|
|||
memcpy(networkAddr+3, (unsigned char *)ac_mac, 6);
|
||||
}
|
||||
|
||||
|
||||
#ifdef CL_IPV6_PASS
|
||||
static void __nat25_generate_ipv6_network_addr(unsigned char *networkAddr,
|
||||
unsigned int *ipAddr)
|
||||
|
@ -213,7 +204,6 @@ static void __nat25_generate_ipv6_network_addr(unsigned char *networkAddr,
|
|||
memcpy(networkAddr+1, (unsigned char *)ipAddr, 16);
|
||||
}
|
||||
|
||||
|
||||
static unsigned char *scan_tlv(unsigned char *data, int len, unsigned char tag, unsigned char len8b)
|
||||
{
|
||||
while (len > 0) {
|
||||
|
@ -226,7 +216,6 @@ static unsigned char *scan_tlv(unsigned char *data, int len, unsigned char tag,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static int update_nd_link_layer_addr(unsigned char *data, int len, unsigned char *replace_mac)
|
||||
{
|
||||
struct icmp6hdr *icmphdr = (struct icmp6hdr *)data;
|
||||
|
@ -295,7 +284,6 @@ static int update_nd_link_layer_addr(unsigned char *data, int len, unsigned char
|
|||
return 0;
|
||||
}
|
||||
|
||||
|
||||
static void convert_ipv6_mac_to_mc(struct sk_buff *skb)
|
||||
{
|
||||
struct ipv6hdr *iph = (struct ipv6hdr *)(skb->data + ETH_HLEN);
|
||||
|
@ -314,7 +302,6 @@ static void convert_ipv6_mac_to_mc(struct sk_buff *skb)
|
|||
}
|
||||
#endif /* CL_IPV6_PASS */
|
||||
|
||||
|
||||
static __inline__ int __nat25_network_hash(unsigned char *networkAddr)
|
||||
{
|
||||
if (networkAddr[0] == NAT25_IPV4)
|
||||
|
@ -375,7 +362,6 @@ static __inline__ int __nat25_network_hash(unsigned char *networkAddr)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
static __inline__ void __network_hash_link(struct adapter *priv,
|
||||
struct nat25_network_db_entry *ent, int hash)
|
||||
{
|
||||
|
@ -392,7 +378,6 @@ static __inline__ void __network_hash_link(struct adapter *priv,
|
|||
/* spin_unlock_bh(&priv->br_ext_lock); */
|
||||
}
|
||||
|
||||
|
||||
static __inline__ void __network_hash_unlink(struct nat25_network_db_entry *ent)
|
||||
{
|
||||
/* Caller must spin_lock_bh already! */
|
||||
|
@ -408,7 +393,6 @@ static __inline__ void __network_hash_unlink(struct nat25_network_db_entry *ent)
|
|||
/* spin_unlock_bh(&priv->br_ext_lock); */
|
||||
}
|
||||
|
||||
|
||||
static int __nat25_db_network_lookup_and_replace(struct adapter *priv,
|
||||
struct sk_buff *skb, unsigned char *networkAddr)
|
||||
{
|
||||
|
@ -485,7 +469,6 @@ static int __nat25_db_network_lookup_and_replace(struct adapter *priv,
|
|||
return 0;
|
||||
}
|
||||
|
||||
|
||||
static void __nat25_db_network_insert(struct adapter *priv,
|
||||
unsigned char *macAddr, unsigned char *networkAddr)
|
||||
{
|
||||
|
@ -525,7 +508,6 @@ static void __nat25_db_network_insert(struct adapter *priv,
|
|||
spin_unlock_bh(&priv->br_ext_lock);
|
||||
}
|
||||
|
||||
|
||||
static void __nat25_db_print(struct adapter *priv)
|
||||
{
|
||||
}
|
||||
|
@ -564,7 +546,6 @@ void nat25_db_cleanup(struct adapter *priv)
|
|||
spin_unlock_bh(&priv->br_ext_lock);
|
||||
}
|
||||
|
||||
|
||||
void nat25_db_expire(struct adapter *priv)
|
||||
{
|
||||
int i;
|
||||
|
@ -606,7 +587,6 @@ void nat25_db_expire(struct adapter *priv)
|
|||
spin_unlock_bh(&priv->br_ext_lock);
|
||||
}
|
||||
|
||||
|
||||
#ifdef SUPPORT_TX_MCAST2UNI
|
||||
static int checkIPMcAndReplace(struct adapter *priv, struct sk_buff *skb, unsigned int *dst_ip)
|
||||
{
|
||||
|
@ -1318,7 +1298,6 @@ int nat25_db_handle(struct adapter *priv, struct sk_buff *skb, int method)
|
|||
iph->daddr.s6_addr16[0], iph->daddr.s6_addr16[1], iph->daddr.s6_addr16[2], iph->daddr.s6_addr16[3],
|
||||
iph->daddr.s6_addr16[4], iph->daddr.s6_addr16[5], iph->daddr.s6_addr16[6], iph->daddr.s6_addr16[7]);
|
||||
|
||||
|
||||
__nat25_generate_ipv6_network_addr(networkAddr, (unsigned int *)&iph->daddr);
|
||||
if (!__nat25_db_network_lookup_and_replace(priv, skb, networkAddr)) {
|
||||
#ifdef SUPPORT_RX_UNI2MCAST
|
||||
|
@ -1337,7 +1316,6 @@ int nat25_db_handle(struct adapter *priv, struct sk_buff *skb, int method)
|
|||
return -1;
|
||||
}
|
||||
|
||||
|
||||
int nat25_handle_frame(struct adapter *priv, struct sk_buff *skb)
|
||||
{
|
||||
if (!(skb->data[0] & 1))
|
||||
|
@ -1470,7 +1448,6 @@ void dhcp_flag_bcast(struct adapter *priv, struct sk_buff *skb)
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
void *scdb_findEntry(struct adapter *priv, unsigned char *macAddr,
|
||||
unsigned char *ipAddr)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue