Changeset 827
- Timestamp:
- 05/25/06 15:18:11 (7 years ago)
- Location:
- trunk/lib
- Files:
-
- 3 edited
-
format_duck.c (modified) (2 diffs)
-
libtrace.h.in (modified) (1 diff)
-
protocols.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/format_duck.c
r800 r827 246 246 static int duck_get_wire_length(const libtrace_packet_t *packet) { 247 247 return 0; 248 } 249 250 static int duck_get_link_type(const libtrace_packet_t *packet) { 251 return TRACE_TYPE_DUCK; 248 252 } 249 253 … … 273 277 NULL, /* fin_packet */ 274 278 duck_write_packet, /* write_packet */ 275 NULL,/* get_link_type */279 duck_get_link_type, /* get_link_type */ 276 280 NULL, /* get_direction */ 277 281 NULL, /* set_direction */ -
trunk/lib/libtrace.h.in
r800 r827 216 216 TRACE_TYPE_PFLOG, /**< FreeBSD's PFlug */ 217 217 TRACE_TYPE_POS, 218 TRACE_TYPE_80211_PRISM = 12 218 TRACE_TYPE_80211_PRISM = 12, 219 TRACE_TYPE_DUCK, /**< Pseudo link layer for DUCK packets */ 219 220 } libtrace_linktype_t; 220 221 -
trunk/lib/protocols.c
r820 r827 208 208 case TRACE_TYPE_ATM: 209 209 return trace_get_payload_from_atm(link,type,remaining); 210 case TRACE_TYPE_DUCK: 211 return NULL; /* duck packets have no payload! */ 210 212 } 211 213 fprintf(stderr,"Don't understand link layer type %i in trace_get_payload_from_link()\n",
Note: See TracChangeset
for help on using the changeset viewer.
