equal
deleted
inserted
replaced
136 short int rt_metric; /* +1 for binary compatibility! */ |
136 short int rt_metric; /* +1 for binary compatibility! */ |
137 struct sockaddr rt_dst; /* Target address. */ |
137 struct sockaddr rt_dst; /* Target address. */ |
138 #endif //__SYMBIAN32__ |
138 #endif //__SYMBIAN32__ |
139 }; |
139 }; |
140 |
140 |
141 #ifdef __SYMBIAN32__ |
|
142 struct rtconf |
|
143 { |
|
144 int rt_len; //size of the allocated buffer |
|
145 union |
|
146 { |
|
147 caddr_t rtcu_buf; |
|
148 struct route_entry * rtcu_entry; |
|
149 }rtc_rtcu; |
|
150 #define rtc_buf rtc_rtcu.rtcu_buf /* buffer address */ |
|
151 #define rtc_req rtc_rtcu.rtcu_entry /* array of structures returned */ |
|
152 }; |
|
153 |
|
154 struct route_entry |
|
155 { |
|
156 struct sockaddr ifaddr; //address of the interface |
|
157 struct sockaddr dst_addr; //destination address |
|
158 struct sockaddr gateway_addr; |
|
159 struct sockaddr dst_netmask; |
|
160 struct |
|
161 { |
|
162 int state; |
|
163 int type; |
|
164 }rt_flags; |
|
165 short int rt_metric; |
|
166 char rt_dev[IFNAMSIZ]; //name of the interface |
|
167 }; |
|
168 #endif |
|
169 |
|
170 |
|
171 #define RTF_UP 0x1 /* route usable */ |
141 #define RTF_UP 0x1 /* route usable */ |
172 #define RTF_GATEWAY 0x2 /* destination is a gateway */ |
142 #define RTF_GATEWAY 0x2 /* destination is a gateway */ |
173 #define RTF_HOST 0x4 /* host entry (net otherwise) */ |
143 #define RTF_HOST 0x4 /* host entry (net otherwise) */ |
174 #define RTF_DYNAMIC 0x10 /* created dynamically (by redirect) */ |
144 #define RTF_DYNAMIC 0x10 /* created dynamically (by redirect) */ |
175 #define RTF_STATIC 0x800 /* manually added */ |
145 #define RTF_STATIC 0x800 /* manually added */ |