Commit 33e28105 authored by Antonin Décimo's avatar Antonin Décimo Committed by Juliusz Chroboczek

Correct misspellings.

parent e7eb95be
...@@ -554,7 +554,7 @@ dhcpv4_receive() ...@@ -554,7 +554,7 @@ dhcpv4_receive()
} }
int int
send_gratuitious_arp(const unsigned char *myaddr, struct interface *interface, send_gratuitous_arp(const unsigned char *myaddr, struct interface *interface,
const unsigned char *mac) const unsigned char *mac)
{ {
int buflen = 28; int buflen = 28;
......
...@@ -29,7 +29,7 @@ int dhcpv4_setup(void); ...@@ -29,7 +29,7 @@ int dhcpv4_setup(void);
int dhcpv4_receive(void); int dhcpv4_receive(void);
void dhcpv4_cleanup(void); void dhcpv4_cleanup(void);
int send_gratuitious_arp(const unsigned char *myaddr, int send_gratuitous_arp(const unsigned char *myaddr,
struct interface *interface, struct interface *interface,
const unsigned char *mac); const unsigned char *mac);
...@@ -263,7 +263,7 @@ static const unsigned char all_nodes[16] = ...@@ -263,7 +263,7 @@ static const unsigned char all_nodes[16] =
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01}; 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01};
int int
send_gratuitious_na(struct interface *interface) send_gratuitous_na(struct interface *interface)
{ {
int buflen = 1024; int buflen = 1024;
unsigned char buf[buflen], myipv6[16]; unsigned char buf[buflen], myipv6[16];
...@@ -296,7 +296,7 @@ send_gratuitious_na(struct interface *interface) ...@@ -296,7 +296,7 @@ send_gratuitious_na(struct interface *interface)
} }
sendit: sendit:
debugf("-> Neigbour Advertisement\n"); debugf("-> Neighbour Advertisement\n");
return sendto(ra_socket, buf, i, 0, (struct sockaddr*)&to, sizeof(to)); return sendto(ra_socket, buf, i, 0, (struct sockaddr*)&to, sizeof(to));
} }
......
...@@ -34,6 +34,6 @@ void ra_cleanup(void); ...@@ -34,6 +34,6 @@ void ra_cleanup(void);
int send_ra(const unsigned char *prefix, int tm, int send_ra(const unsigned char *prefix, int tm,
const struct sockaddr_in6 *to, struct interface *interface); const struct sockaddr_in6 *to, struct interface *interface);
int receive_rs(void); int receive_rs(void);
int send_gratuitious_na(struct interface *interface); int send_gratuitous_na(struct interface *interface);
...@@ -77,13 +77,13 @@ callback(int add, int ifindex, const unsigned char *mac) ...@@ -77,13 +77,13 @@ callback(int add, int ifindex, const unsigned char *mac)
rc = interface_v4(interface, myv4); rc = interface_v4(interface, myv4);
if(rc >= 0) { if(rc >= 0) {
rc = send_gratuitious_arp(myv4, interface, mac); rc = send_gratuitous_arp(myv4, interface, mac);
if(rc < 0) if(rc < 0)
perror("send_gratuitious_arp"); perror("send_gratuitous_arp");
} }
rc = send_gratuitious_na(interface); rc = send_gratuitous_na(interface);
if(rc < 0) if(rc < 0)
perror("send_gratuitious_na"); perror("send_gratuitous_na");
} else { } else {
flush_association(mac, ASSOCIATION_TIME); flush_association(mac, ASSOCIATION_TIME);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment