Changeset 1802
- Timestamp:
- 04/14/07 15:30:11 (21 months ago)
- Location:
- trunk/src/tcpedit
- Files:
-
- 5 modified
-
plugins/dlt_plugins-int.h (modified) (1 diff)
-
plugins/dlt_plugins.c (modified) (1 diff)
-
plugins/dlt_utils.c (modified) (1 diff)
-
tcpedit-int.h (modified) (1 diff)
-
tcpedit.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/tcpedit/plugins/dlt_plugins-int.h
r1757 r1802 108 108 tcpedit_t *tcpedit; /* pointer to our tcpedit context */ 109 109 #ifdef FORCE_ALIGN 110 u_char * ipbuff; /* pointer for L3 buffer on strictly aligned systems */110 u_char *l3buff; /* pointer for L3 buffer on strictly aligned systems */ 111 111 #endif 112 112 tcpeditdlt_plugin_t *plugins; /* registered plugins */ -
trunk/src/tcpedit/plugins/dlt_plugins.c
r1758 r1802 394 394 if (ctx->decoder != NULL) 395 395 ctx->decoder->plugin_cleanup(ctx); 396 396 397 397 #ifdef FORCE_ALIGN 398 398 free(ctx->l3buff); -
trunk/src/tcpedit/plugins/dlt_utils.c
r1758 r1802 252 252 * we can't edit the packet at layer 3 or above beyond this point 253 253 */ 254 memcpy((&( *packet)[l2len]), l3data, pktlen - l2len);254 memcpy((&(packet)[l2len]), l3data, pktlen - l2len); 255 255 #endif 256 256 return packet; -
trunk/src/tcpedit/tcpedit-int.h
r1786 r1802 48 48 char errstr[TCPEDIT_ERRSTR_LEN]; 49 49 char warnstr[TCPEDIT_ERRSTR_LEN]; 50 #ifdef FORCE_ALIGN 51 u_char *l3buff; 52 #endif 50 53 }; 51 54 -
trunk/src/tcpedit/tcpedit.c
r1786 r1802 232 232 pcap_datalink_val_to_name(dlt)); 233 233 234 235 234 #ifdef FORCE_ALIGN 236 tcpedit->runtime. ipbuff = (u_char *)safe_malloc(MAXPACKET);235 tcpedit->runtime.l3buff = (u_char *)safe_malloc(MAXPACKET); 237 236 #endif 238 237 … … 384 383 /* free buffer if required */ 385 384 #ifdef FORCE_ALIGN 386 free(tcpedit->runtime. ipbuff);385 free(tcpedit->runtime.l3buff); 387 386 #endif 388 387
