mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-23 16:31:16 +00:00
The newly added virtio-net implementation needs to interact with TAP interfaces and MAC addresses, which is the reason why it is easier to rely on existing packages net_util and net_gen. One more thing, both net_util and net_gen could be trimmed down, based on using only the things we need from cloud-hypervisor. Both net_util, net_gen and sys_util are based on Firecracker commit d4a89cdc0bd2867f821e3678328dabad6dd8b767. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
90 lines
4.7 KiB
Rust
90 lines
4.7 KiB
Rust
// Copyright 2017 The Chromium OS Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the THIRD-PARTY file.
|
|
|
|
/* automatically generated by rust-bindgen */
|
|
|
|
pub const FIOSETOWN: ::std::os::raw::c_uint = 35073;
|
|
pub const SIOCSPGRP: ::std::os::raw::c_uint = 35074;
|
|
pub const FIOGETOWN: ::std::os::raw::c_uint = 35075;
|
|
pub const SIOCGPGRP: ::std::os::raw::c_uint = 35076;
|
|
pub const SIOCATMARK: ::std::os::raw::c_uint = 35077;
|
|
pub const SIOCGSTAMP: ::std::os::raw::c_uint = 35078;
|
|
pub const SIOCGSTAMPNS: ::std::os::raw::c_uint = 35079;
|
|
pub const SOCK_IOC_TYPE: ::std::os::raw::c_uint = 137;
|
|
pub const SIOCADDRT: ::std::os::raw::c_uint = 35083;
|
|
pub const SIOCDELRT: ::std::os::raw::c_uint = 35084;
|
|
pub const SIOCRTMSG: ::std::os::raw::c_uint = 35085;
|
|
pub const SIOCGIFNAME: ::std::os::raw::c_uint = 35088;
|
|
pub const SIOCSIFLINK: ::std::os::raw::c_uint = 35089;
|
|
pub const SIOCGIFCONF: ::std::os::raw::c_uint = 35090;
|
|
pub const SIOCGIFFLAGS: ::std::os::raw::c_uint = 35091;
|
|
pub const SIOCSIFFLAGS: ::std::os::raw::c_uint = 35092;
|
|
pub const SIOCGIFADDR: ::std::os::raw::c_uint = 35093;
|
|
pub const SIOCSIFADDR: ::std::os::raw::c_uint = 35094;
|
|
pub const SIOCGIFDSTADDR: ::std::os::raw::c_uint = 35095;
|
|
pub const SIOCSIFDSTADDR: ::std::os::raw::c_uint = 35096;
|
|
pub const SIOCGIFBRDADDR: ::std::os::raw::c_uint = 35097;
|
|
pub const SIOCSIFBRDADDR: ::std::os::raw::c_uint = 35098;
|
|
pub const SIOCGIFNETMASK: ::std::os::raw::c_uint = 35099;
|
|
pub const SIOCSIFNETMASK: ::std::os::raw::c_uint = 35100;
|
|
pub const SIOCGIFMETRIC: ::std::os::raw::c_uint = 35101;
|
|
pub const SIOCSIFMETRIC: ::std::os::raw::c_uint = 35102;
|
|
pub const SIOCGIFMEM: ::std::os::raw::c_uint = 35103;
|
|
pub const SIOCSIFMEM: ::std::os::raw::c_uint = 35104;
|
|
pub const SIOCGIFMTU: ::std::os::raw::c_uint = 35105;
|
|
pub const SIOCSIFMTU: ::std::os::raw::c_uint = 35106;
|
|
pub const SIOCSIFNAME: ::std::os::raw::c_uint = 35107;
|
|
pub const SIOCSIFHWADDR: ::std::os::raw::c_uint = 35108;
|
|
pub const SIOCGIFENCAP: ::std::os::raw::c_uint = 35109;
|
|
pub const SIOCSIFENCAP: ::std::os::raw::c_uint = 35110;
|
|
pub const SIOCGIFHWADDR: ::std::os::raw::c_uint = 35111;
|
|
pub const SIOCGIFSLAVE: ::std::os::raw::c_uint = 35113;
|
|
pub const SIOCSIFSLAVE: ::std::os::raw::c_uint = 35120;
|
|
pub const SIOCADDMULTI: ::std::os::raw::c_uint = 35121;
|
|
pub const SIOCDELMULTI: ::std::os::raw::c_uint = 35122;
|
|
pub const SIOCGIFINDEX: ::std::os::raw::c_uint = 35123;
|
|
pub const SIOGIFINDEX: ::std::os::raw::c_uint = 35123;
|
|
pub const SIOCSIFPFLAGS: ::std::os::raw::c_uint = 35124;
|
|
pub const SIOCGIFPFLAGS: ::std::os::raw::c_uint = 35125;
|
|
pub const SIOCDIFADDR: ::std::os::raw::c_uint = 35126;
|
|
pub const SIOCSIFHWBROADCAST: ::std::os::raw::c_uint = 35127;
|
|
pub const SIOCGIFCOUNT: ::std::os::raw::c_uint = 35128;
|
|
pub const SIOCGIFBR: ::std::os::raw::c_uint = 35136;
|
|
pub const SIOCSIFBR: ::std::os::raw::c_uint = 35137;
|
|
pub const SIOCGIFTXQLEN: ::std::os::raw::c_uint = 35138;
|
|
pub const SIOCSIFTXQLEN: ::std::os::raw::c_uint = 35139;
|
|
pub const SIOCETHTOOL: ::std::os::raw::c_uint = 35142;
|
|
pub const SIOCGMIIPHY: ::std::os::raw::c_uint = 35143;
|
|
pub const SIOCGMIIREG: ::std::os::raw::c_uint = 35144;
|
|
pub const SIOCSMIIREG: ::std::os::raw::c_uint = 35145;
|
|
pub const SIOCWANDEV: ::std::os::raw::c_uint = 35146;
|
|
pub const SIOCOUTQNSD: ::std::os::raw::c_uint = 35147;
|
|
pub const SIOCGSKNS: ::std::os::raw::c_uint = 35148;
|
|
pub const SIOCDARP: ::std::os::raw::c_uint = 35155;
|
|
pub const SIOCGARP: ::std::os::raw::c_uint = 35156;
|
|
pub const SIOCSARP: ::std::os::raw::c_uint = 35157;
|
|
pub const SIOCDRARP: ::std::os::raw::c_uint = 35168;
|
|
pub const SIOCGRARP: ::std::os::raw::c_uint = 35169;
|
|
pub const SIOCSRARP: ::std::os::raw::c_uint = 35170;
|
|
pub const SIOCGIFMAP: ::std::os::raw::c_uint = 35184;
|
|
pub const SIOCSIFMAP: ::std::os::raw::c_uint = 35185;
|
|
pub const SIOCADDDLCI: ::std::os::raw::c_uint = 35200;
|
|
pub const SIOCDELDLCI: ::std::os::raw::c_uint = 35201;
|
|
pub const SIOCGIFVLAN: ::std::os::raw::c_uint = 35202;
|
|
pub const SIOCSIFVLAN: ::std::os::raw::c_uint = 35203;
|
|
pub const SIOCBONDENSLAVE: ::std::os::raw::c_uint = 35216;
|
|
pub const SIOCBONDRELEASE: ::std::os::raw::c_uint = 35217;
|
|
pub const SIOCBONDSETHWADDR: ::std::os::raw::c_uint = 35218;
|
|
pub const SIOCBONDSLAVEINFOQUERY: ::std::os::raw::c_uint = 35219;
|
|
pub const SIOCBONDINFOQUERY: ::std::os::raw::c_uint = 35220;
|
|
pub const SIOCBONDCHANGEACTIVE: ::std::os::raw::c_uint = 35221;
|
|
pub const SIOCBRADDBR: ::std::os::raw::c_uint = 35232;
|
|
pub const SIOCBRDELBR: ::std::os::raw::c_uint = 35233;
|
|
pub const SIOCBRADDIF: ::std::os::raw::c_uint = 35234;
|
|
pub const SIOCBRDELIF: ::std::os::raw::c_uint = 35235;
|
|
pub const SIOCSHWTSTAMP: ::std::os::raw::c_uint = 35248;
|
|
pub const SIOCGHWTSTAMP: ::std::os::raw::c_uint = 35249;
|
|
pub const SIOCDEVPRIVATE: ::std::os::raw::c_uint = 35312;
|
|
pub const SIOCPROTOPRIVATE: ::std::os::raw::c_uint = 35296;
|