Commit dc8f25b6 authored by Luotao Fu's avatar Luotao Fu

switch netif_up/down to internal static function

Signed-off-by: 's avatarLuotao Fu <l.fu@pengutronix.de>
parent fb19f0ed
......@@ -27,9 +27,6 @@
#define GET_BITTIMING 3
#define GET_CTRLMODE 4
int netif_down(int fd, const char *name);
int netif_up(int fd, const char *name);
int scan_set_restart(const char *name);
int scan_set_bitrate(const char *name, __u32 bitrate);
int scan_set_restart_ms(const char *name, __u32 restart_ms);
......
......@@ -459,6 +459,16 @@ static int do_set_nl_link(int fd, __u8 if_state, const char *name,
return send_mod_request(fd, &req.n);
}
static int netif_up(int fd, const char *name)
{
return do_set_nl_link(fd, IF_UP, name, NULL);
}
static int netif_down(int fd, const char *name)
{
return do_set_nl_link(fd, IF_DOWN, name, NULL);
}
static int set_link(const char *name, struct req_info *req_info)
{
int fd;
......@@ -486,16 +496,6 @@ err_out:
return err;
}
int netif_up(int fd, const char *name)
{
return do_set_nl_link(fd, IF_UP, name, NULL);
}
int netif_down(int fd, const char *name)
{
return do_set_nl_link(fd, IF_DOWN, name, NULL);
}
int scan_set_restart(const char *name)
{
int fd;
......
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