mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 14:39:39 +01:00
wired: Add skeleton for Ethernet device handling and EAP setup
This commit is contained in:
parent
fd181839f7
commit
4a345511a7
@ -197,7 +197,7 @@ endif
|
|||||||
if WIRED
|
if WIRED
|
||||||
libexec_PROGRAMS += wired/ead
|
libexec_PROGRAMS += wired/ead
|
||||||
|
|
||||||
wired_ead_SOURCES = wired/main.c $(eap_sources)
|
wired_ead_SOURCES = wired/main.c wired/ethdev.h wired/ethdev.c $(eap_sources)
|
||||||
wired_ead_LDADD = ell/libell-internal.la
|
wired_ead_LDADD = ell/libell-internal.la
|
||||||
wired_ead_DEPENDENCIES = ell/libell-internal.la
|
wired_ead_DEPENDENCIES = ell/libell-internal.la
|
||||||
|
|
||||||
|
35
wired/ethdev.c
Normal file
35
wired/ethdev.c
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
/*
|
||||||
|
*
|
||||||
|
* Ethernet daemon for Linux
|
||||||
|
*
|
||||||
|
* Copyright (C) 2017-2018 Intel Corporation. All rights reserved.
|
||||||
|
*
|
||||||
|
* This library is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
|
* License as published by the Free Software Foundation; either
|
||||||
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
|
* License along with this library; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <ell/ell.h>
|
||||||
|
|
||||||
|
#include "src/eap.h"
|
||||||
|
#include "wired/ethdev.h"
|
||||||
|
|
||||||
|
bool ethdev_init(void)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
void ethdev_exit(void)
|
||||||
|
{
|
||||||
|
}
|
24
wired/ethdev.h
Normal file
24
wired/ethdev.h
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
/*
|
||||||
|
*
|
||||||
|
* Ethernet daemon for Linux
|
||||||
|
*
|
||||||
|
* Copyright (C) 2017-2018 Intel Corporation. All rights reserved.
|
||||||
|
*
|
||||||
|
* This library is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
|
* License as published by the Free Software Foundation; either
|
||||||
|
* version 2.1 of the License, or (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This library is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* Lesser General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser General Public
|
||||||
|
* License along with this library; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
bool ethdev_init(void);
|
||||||
|
void ethdev_exit(void);
|
10
wired/main.c
10
wired/main.c
@ -25,8 +25,18 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <ell/ell.h>
|
||||||
|
|
||||||
|
#include "src/eap.h"
|
||||||
|
#include "wired/ethdev.h"
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
eap_init(0);
|
||||||
|
ethdev_init();
|
||||||
|
|
||||||
|
ethdev_exit();
|
||||||
|
eap_exit();
|
||||||
|
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user