Statistics
| Branch: | Revision:

root / net / util.h @ a5fd2c34

History | View | Annotate | Download (1.3 kB)

1 f1d078c3 Mark McLoughlin
/*
2 f1d078c3 Mark McLoughlin
 * QEMU System Emulator
3 f1d078c3 Mark McLoughlin
 *
4 f1d078c3 Mark McLoughlin
 * Copyright (c) 2003-2008 Fabrice Bellard
5 f1d078c3 Mark McLoughlin
 *
6 f1d078c3 Mark McLoughlin
 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 f1d078c3 Mark McLoughlin
 * of this software and associated documentation files (the "Software"), to deal
8 f1d078c3 Mark McLoughlin
 * in the Software without restriction, including without limitation the rights
9 f1d078c3 Mark McLoughlin
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 f1d078c3 Mark McLoughlin
 * copies of the Software, and to permit persons to whom the Software is
11 f1d078c3 Mark McLoughlin
 * furnished to do so, subject to the following conditions:
12 f1d078c3 Mark McLoughlin
 *
13 f1d078c3 Mark McLoughlin
 * The above copyright notice and this permission notice shall be included in
14 f1d078c3 Mark McLoughlin
 * all copies or substantial portions of the Software.
15 f1d078c3 Mark McLoughlin
 *
16 f1d078c3 Mark McLoughlin
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 f1d078c3 Mark McLoughlin
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 f1d078c3 Mark McLoughlin
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 f1d078c3 Mark McLoughlin
 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 f1d078c3 Mark McLoughlin
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 f1d078c3 Mark McLoughlin
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 f1d078c3 Mark McLoughlin
 * THE SOFTWARE.
23 f1d078c3 Mark McLoughlin
 */
24 f1d078c3 Mark McLoughlin
25 f1d078c3 Mark McLoughlin
#ifndef QEMU_NET_UTIL_H
26 f1d078c3 Mark McLoughlin
#define QEMU_NET_UTIL_H
27 f1d078c3 Mark McLoughlin
28 f1d078c3 Mark McLoughlin
#include <stdint.h>
29 f1d078c3 Mark McLoughlin
30 f1d078c3 Mark McLoughlin
int net_parse_macaddr(uint8_t *macaddr, const char *p);
31 f1d078c3 Mark McLoughlin
32 f1d078c3 Mark McLoughlin
#endif /* QEMU_NET_UTIL_H */