Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 314545
b: refs/heads/master
c: 9039dc7
h: refs/heads/master
i:
  314543: fd088a3
v: v3
  • Loading branch information
Sven Eckelmann authored and Antonio Quartulli committed Jun 20, 2012
1 parent b31b055 commit 4f75054
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1a8eaf0733ca754533a03d6cfa4463def2b81ce3
refs/heads/master: 9039dc7e8a42864744665bf0905f48c2724f6e3e
2 changes: 1 addition & 1 deletion trunk/net/batman-adv/bat_debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ int batadv_debugfs_add_meshif(struct net_device *dev)
if (!bat_priv->debug_dir)
goto out;

if (bat_socket_setup(bat_priv) < 0)
if (batadv_socket_setup(bat_priv) < 0)
goto rem_attr;

if (debug_log_setup(bat_priv) < 0)
Expand Down
8 changes: 4 additions & 4 deletions trunk/net/batman-adv/icmp_socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ static void bat_socket_add_packet(struct socket_client *socket_client,
struct icmp_packet_rr *icmp_packet,
size_t icmp_len);

void bat_socket_init(void)
void batadv_socket_init(void)
{
memset(socket_client_hash, 0, sizeof(socket_client_hash));
}
Expand Down Expand Up @@ -276,7 +276,7 @@ static const struct file_operations fops = {
.llseek = no_llseek,
};

int bat_socket_setup(struct bat_priv *bat_priv)
int batadv_socket_setup(struct bat_priv *bat_priv)
{
struct dentry *d;

Expand Down Expand Up @@ -336,8 +336,8 @@ static void bat_socket_add_packet(struct socket_client *socket_client,
wake_up(&socket_client->queue_wait);
}

void bat_socket_receive_packet(struct icmp_packet_rr *icmp_packet,
size_t icmp_len)
void batadv_socket_receive_packet(struct icmp_packet_rr *icmp_packet,
size_t icmp_len)
{
struct socket_client *hash = socket_client_hash[icmp_packet->uid];

Expand Down
8 changes: 4 additions & 4 deletions trunk/net/batman-adv/icmp_socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@

#define ICMP_SOCKET "socket"

void bat_socket_init(void);
int bat_socket_setup(struct bat_priv *bat_priv);
void bat_socket_receive_packet(struct icmp_packet_rr *icmp_packet,
size_t icmp_len);
void batadv_socket_init(void);
int batadv_socket_setup(struct bat_priv *bat_priv);
void batadv_socket_receive_packet(struct icmp_packet_rr *icmp_packet,
size_t icmp_len);

#endif /* _NET_BATMAN_ADV_ICMP_SOCKET_H_ */
2 changes: 1 addition & 1 deletion trunk/net/batman-adv/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ static int __init batman_init(void)
if (!bat_event_workqueue)
return -ENOMEM;

bat_socket_init();
batadv_socket_init();
batadv_debugfs_init();

register_netdevice_notifier(&batadv_hard_if_notifier);
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/batman-adv/routing.c
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ static int recv_my_icmp_packet(struct bat_priv *bat_priv,

/* add data to device queue */
if (icmp_packet->msg_type != ECHO_REQUEST) {
bat_socket_receive_packet(icmp_packet, icmp_len);
batadv_socket_receive_packet(icmp_packet, icmp_len);
goto out;
}

Expand Down

0 comments on commit 4f75054

Please sign in to comment.