test-rtnl.c revision 65f568bbeb9b8c70200e44c19a797df3a0bfd485
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
/***
This file is part of systemd.
Copyright 2013 Tom Gundersen <teg@jklm.no>
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.
systemd 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 systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include "util.h"
#include "macro.h"
#include "sd-rtnl.h"
#include "socket-util.h"
unsigned int mtu = 1450;
void *data;
/* we'd really like to test NEWLINK, but let's not mess with the running kernel */
/* let's assume that this test is always ran when the loopback device is up, so that it will fail */
}
int main(void) {
sd_rtnl_message *m;
sd_rtnl_message *r;
void *data;
int if_loopback;
unsigned int mtu = 0;
unsigned int *mtu_reply;
assert(if_loopback > 0);
assert(m);
assert(m);
switch (type) {
case IFLA_MTU:
break;;
case IFLA_IFNAME:
break;;
case IFLA_QDISC:
break;;
}
}
return EXIT_SUCCESS;
}