Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sroamd
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
sroamd
Commits
33e28105
Commit
33e28105
authored
Apr 11, 2020
by
Antonin Décimo
Committed by
Juliusz Chroboczek
Apr 11, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct misspellings.
parent
e7eb95be
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
9 deletions
+9
-9
dhcpv4.c
dhcpv4.c
+1
-1
dhcpv4.h
dhcpv4.h
+1
-1
ra.c
ra.c
+2
-2
ra.h
ra.h
+1
-1
sroamd.c
sroamd.c
+4
-4
No files found.
dhcpv4.c
View file @
33e28105
...
...
@@ -554,7 +554,7 @@ dhcpv4_receive()
}
int
send_gratuit
i
ous_arp
(
const
unsigned
char
*
myaddr
,
struct
interface
*
interface
,
send_gratuitous_arp
(
const
unsigned
char
*
myaddr
,
struct
interface
*
interface
,
const
unsigned
char
*
mac
)
{
int
buflen
=
28
;
...
...
dhcpv4.h
View file @
33e28105
...
...
@@ -29,7 +29,7 @@ int dhcpv4_setup(void);
int
dhcpv4_receive
(
void
);
void
dhcpv4_cleanup
(
void
);
int
send_gratuit
i
ous_arp
(
const
unsigned
char
*
myaddr
,
int
send_gratuitous_arp
(
const
unsigned
char
*
myaddr
,
struct
interface
*
interface
,
const
unsigned
char
*
mac
);
ra.c
View file @
33e28105
...
...
@@ -263,7 +263,7 @@ static const unsigned char all_nodes[16] =
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x01
};
int
send_gratuit
i
ous_na
(
struct
interface
*
interface
)
send_gratuitous_na
(
struct
interface
*
interface
)
{
int
buflen
=
1024
;
unsigned
char
buf
[
buflen
],
myipv6
[
16
];
...
...
@@ -296,7 +296,7 @@ send_gratuitious_na(struct interface *interface)
}
sendit:
debugf
(
"-> Neigbour Advertisement
\n
"
);
debugf
(
"-> Neig
h
bour Advertisement
\n
"
);
return
sendto
(
ra_socket
,
buf
,
i
,
0
,
(
struct
sockaddr
*
)
&
to
,
sizeof
(
to
));
}
...
...
ra.h
View file @
33e28105
...
...
@@ -34,6 +34,6 @@ void ra_cleanup(void);
int
send_ra
(
const
unsigned
char
*
prefix
,
int
tm
,
const
struct
sockaddr_in6
*
to
,
struct
interface
*
interface
);
int
receive_rs
(
void
);
int
send_gratuit
i
ous_na
(
struct
interface
*
interface
);
int
send_gratuitous_na
(
struct
interface
*
interface
);
sroamd.c
View file @
33e28105
...
...
@@ -77,13 +77,13 @@ callback(int add, int ifindex, const unsigned char *mac)
rc
=
interface_v4
(
interface
,
myv4
);
if
(
rc
>=
0
)
{
rc
=
send_gratuit
i
ous_arp
(
myv4
,
interface
,
mac
);
rc
=
send_gratuitous_arp
(
myv4
,
interface
,
mac
);
if
(
rc
<
0
)
perror
(
"send_gratuit
i
ous_arp"
);
perror
(
"send_gratuitous_arp"
);
}
rc
=
send_gratuit
i
ous_na
(
interface
);
rc
=
send_gratuitous_na
(
interface
);
if
(
rc
<
0
)
perror
(
"send_gratuit
i
ous_na"
);
perror
(
"send_gratuitous_na"
);
}
else
{
flush_association
(
mac
,
ASSOCIATION_TIME
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment