mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-29 21:47:05 +03:00
networkd: fix route table from unsigned char to uint32_t (#6083)
[zj: struct Route is defined with uint32_t route, so this makes the type of the function parameter match the field it is assigned to.]
This commit is contained in:
parent
94fcd9d3a0
commit
14d20d2bfb
@ -230,7 +230,7 @@ int route_get(Link *link,
|
||||
unsigned char dst_prefixlen,
|
||||
unsigned char tos,
|
||||
uint32_t priority,
|
||||
unsigned char table,
|
||||
uint32_t table,
|
||||
Route **ret) {
|
||||
|
||||
Route route, *existing;
|
||||
@ -272,7 +272,7 @@ static int route_add_internal(
|
||||
unsigned char dst_prefixlen,
|
||||
unsigned char tos,
|
||||
uint32_t priority,
|
||||
unsigned char table,
|
||||
uint32_t table,
|
||||
Route **ret) {
|
||||
|
||||
_cleanup_route_free_ Route *route = NULL;
|
||||
@ -318,7 +318,7 @@ int route_add_foreign(
|
||||
unsigned char dst_prefixlen,
|
||||
unsigned char tos,
|
||||
uint32_t priority,
|
||||
unsigned char table,
|
||||
uint32_t table,
|
||||
Route **ret) {
|
||||
|
||||
return route_add_internal(link, &link->routes_foreign, family, dst, dst_prefixlen, tos, priority, table, ret);
|
||||
@ -331,7 +331,7 @@ int route_add(
|
||||
unsigned char dst_prefixlen,
|
||||
unsigned char tos,
|
||||
uint32_t priority,
|
||||
unsigned char table,
|
||||
uint32_t table,
|
||||
Route **ret) {
|
||||
|
||||
Route *route;
|
||||
|
@ -59,9 +59,9 @@ void route_free(Route *route);
|
||||
int route_configure(Route *route, Link *link, sd_netlink_message_handler_t callback);
|
||||
int route_remove(Route *route, Link *link, sd_netlink_message_handler_t callback);
|
||||
|
||||
int route_get(Link *link, int family, const union in_addr_union *dst, unsigned char dst_prefixlen, unsigned char tos, uint32_t priority, unsigned char table, Route **ret);
|
||||
int route_add(Link *link, int family, const union in_addr_union *dst, unsigned char dst_prefixlen, unsigned char tos, uint32_t priority, unsigned char table, Route **ret);
|
||||
int route_add_foreign(Link *link, int family, const union in_addr_union *dst, unsigned char dst_prefixlen, unsigned char tos, uint32_t priority, unsigned char table, Route **ret);
|
||||
int route_get(Link *link, int family, const union in_addr_union *dst, unsigned char dst_prefixlen, unsigned char tos, uint32_t priority, uint32_t table, Route **ret);
|
||||
int route_add(Link *link, int family, const union in_addr_union *dst, unsigned char dst_prefixlen, unsigned char tos, uint32_t priority, uint32_t table, Route **ret);
|
||||
int route_add_foreign(Link *link, int family, const union in_addr_union *dst, unsigned char dst_prefixlen, unsigned char tos, uint32_t priority, uint32_t table, Route **ret);
|
||||
int route_update(Route *route, const union in_addr_union *src, unsigned char src_prefixlen, const union in_addr_union *gw, const union in_addr_union *prefsrc, unsigned char scope, unsigned char protocol);
|
||||
|
||||
int route_expire_handler(sd_event_source *s, uint64_t usec, void *userdata);
|
||||
|
Loading…
x
Reference in New Issue
Block a user