Changeset 22451 in vbox for trunk/src/VBox/Devices/Network
- Timestamp:
- Aug 26, 2009 7:53:31 AM (15 years ago)
- Location:
- trunk/src/VBox/Devices/Network/slirp
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/slirp/libalias/alias_ftp.c
r21864 r22451 143 143 }; 144 144 #else /* !VBOX */ 145 static struct proto_handler handlers[2]; 145 #define handlers pData->ftp_module 146 146 #endif /* VBOX */ 147 147 … … 169 169 int error; 170 170 #ifdef VBOX 171 handlers = RTMemAllocZ(2 * sizeof(struct proto_handler)); 171 172 handlers[0].pri = 80; 172 173 handlers[0].dir = OUT; … … 190 191 #ifdef VBOX 191 192 LibAliasDetachHandlers(pData, handlers); 193 RTMemFree(handlers); 194 handlers = NULL; 192 195 #else 193 196 LibAliasDetachHandlers(handlers); -
trunk/src/VBox/Devices/Network/slirp/libalias/alias_nbt.c
r21864 r22451 162 162 }; 163 163 #else /* !VBOX */ 164 static struct proto_handler handlers[4]; 164 #define handlers pData->nbt_module 165 165 #endif /*VBOX*/ 166 166 … … 188 188 int error; 189 189 #ifdef VBOX 190 190 handlers = RTMemAllocZ(4 * sizeof(struct proto_handler)); 191 191 handlers[0].pri = 130; 192 192 handlers[0].dir = IN|OUT; … … 225 225 #ifdef VBOX 226 226 LibAliasDetachHandlers(pData, handlers); 227 RTMemFree(handlers); 228 handlers = NULL; 227 229 #else 228 230 LibAliasDetachHandlers(handlers); -
trunk/src/VBox/Devices/Network/slirp/slirp_state.h
r22449 r22451 90 90 }; 91 91 LIST_HEAD(port_forward_rule_list, port_forward_rule); 92 93 /* forward declaration */ 94 struct proto_handler; 92 95 93 96 /** Main state/configuration structure for slirp NAT. */ … … 249 252 struct port_forward_rule_list port_forward_rule_head; 250 253 int port_forwarding_activated; 254 /*libalis modules' handlers*/ 255 struct proto_handler *ftp_module; 256 struct proto_handler *nbt_module; 251 257 252 258 #define PROFILE_COUNTER(name, dsc) STAMPROFILE Stat ## name
Note:
See TracChangeset
for help on using the changeset viewer.