3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-23 14:22:36 +01:00

wired: Add skeleton for Ethernet device handling and EAP setup

This commit is contained in:
Marcel Holtmann 2018-09-14 16:41:05 +02:00
parent fd181839f7
commit 4a345511a7
4 changed files with 70 additions and 1 deletions

View File

@ -197,7 +197,7 @@ endif
if WIRED
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_DEPENDENCIES = ell/libell-internal.la

35
wired/ethdev.c Normal file
View 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
View 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);

View File

@ -25,8 +25,18 @@
#endif
#include <stdlib.h>
#include <ell/ell.h>
#include "src/eap.h"
#include "wired/ethdev.h"
int main(int argc, char *argv[])
{
eap_init(0);
ethdev_init();
ethdev_exit();
eap_exit();
return EXIT_SUCCESS;
}