mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 04:12:43 +00:00 
			
		
		
		
	Kernel: Add the IFF_* SIOCGIFFLAGS flag macros
This commit is contained in:
		
							parent
							
								
									adc9939a7b
								
							
						
					
					
						commit
						2882a90dec
					
				
					 2 changed files with 25 additions and 0 deletions
				
			
		|  | @ -13,6 +13,29 @@ extern "C" { | |||
| #include <Kernel/API/POSIX/sys/socket.h> | ||||
| #include <Kernel/API/POSIX/sys/types.h> | ||||
| 
 | ||||
| enum { | ||||
|     IFF_UP = 1 << 0, | ||||
|     IFF_BROADCAST = 1 << 1, | ||||
|     IFF_DEBUG = 1 << 2, | ||||
|     IFF_LOOPBACK = 1 << 3, | ||||
|     IFF_POINTOPOINT = 1 << 4, | ||||
|     IFF_RUNNING = 1 << 5, | ||||
|     IFF_NOARP = 1 << 6, | ||||
|     IFF_PROMISC = 1 << 7, | ||||
|     IFF_ALLMULTI = 1 << 8, | ||||
|     IFF_MULTICAST = 1 << 9, | ||||
| }; | ||||
| #define IFF_UP IFF_UP | ||||
| #define IFF_BROADCAST IFF_BROADCAST | ||||
| #define IFF_DEBUG IFF_DEBUG | ||||
| #define IFF_LOOPBACK IFF_LOOPBACK | ||||
| #define IFF_POINTOPOINT IFF_POINTOPOINT | ||||
| #define IFF_RUNNING IFF_RUNNING | ||||
| #define IFF_NOARP IFF_NOARP | ||||
| #define IFF_PROMISC IFF_PROMISC | ||||
| #define IFF_ALLMULTI IFF_ALLMULTI | ||||
| #define IFF_MULTICAST IFF_MULTICAST | ||||
| 
 | ||||
| struct ifconf { | ||||
|     int ifc_len; | ||||
|     union { | ||||
|  |  | |||
|  | @ -227,3 +227,5 @@ set(WSSCREEN_DEBUG ON) | |||
| # set(CONSOLE_OUT_TO_BOCHS_DEBUG_PORT) | ||||
| # False positive: BOCHS_DEBUG_PORT represents an IO port constant | ||||
| # set(BOCHS_DEBUG_PORT) | ||||
| # False positive: IFF_DEBUG is an ioctl flag | ||||
| # set(IFF_DEBUG) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Idan Horowitz
						Idan Horowitz