1/* 2 * Copyright 2006-2012 Haiku, Inc. All Rights Reserved. 3 * Distributed under the terms of the MIT License. 4 */ 5#ifndef _NET_ROUTE_H 6#define _NET_ROUTE_H 7 8 9#include <sys/socket.h> 10 11 12#define RTF_UP 0x00000001 13#define RTF_GATEWAY 0x00000002 14#define RTF_HOST 0x00000004 15#define RTF_REJECT 0x00000008 16#define RTF_DYNAMIC 0x00000010 17#define RTF_MODIFIED 0x00000020 18#define RTF_DEFAULT 0x00000080 19#define RTF_STATIC 0x00000800 20#define RTF_BLACKHOLE 0x00001000 21#define RTF_LOCAL 0x00200000 22 23/* This structure is used to pass routes to and from the network stack 24 * (via struct ifreq) */ 25 26struct route_entry { 27 struct sockaddr *destination; 28 struct sockaddr *mask; 29 struct sockaddr *gateway; 30 struct sockaddr *source; 31 uint32_t flags; 32 uint32_t mtu; 33}; 34 35#endif /* _NET_ROUTE_H */ 36