NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.5: NDN, CCN, CCNx, content centric networks
API Documentation
linux-if-constants.cpp
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
24 #ifdef __linux__
25 
26 #include "linux-if-constants.hpp"
27 
28 #include <sys/socket.h>
29 #include <linux/if.h>
30 
31 namespace ndn {
32 namespace net {
33 namespace linux_if {
34 
35 const uint32_t FLAG_LOWER_UP = IFF_LOWER_UP;
36 const uint32_t FLAG_DORMANT = IFF_DORMANT;
37 const uint32_t FLAG_ECHO = IFF_ECHO;
38 
39 const uint8_t OPER_STATE_UNKNOWN = IF_OPER_UNKNOWN;
40 const uint8_t OPER_STATE_NOTPRESENT = IF_OPER_NOTPRESENT;
41 const uint8_t OPER_STATE_DOWN = IF_OPER_DOWN;
42 const uint8_t OPER_STATE_LOWERLAYERDOWN = IF_OPER_LOWERLAYERDOWN;
43 const uint8_t OPER_STATE_TESTING = IF_OPER_TESTING;
44 const uint8_t OPER_STATE_DORMANT = IF_OPER_DORMANT;
45 const uint8_t OPER_STATE_UP = IF_OPER_UP;
46 
47 } // namespace linux_if
48 } // namespace net
49 } // namespace ndn
50 
51 #endif // __linux__
Copyright (c) 2011-2015 Regents of the University of California.