// TCPContextDump provides debugging information for d[l] with up to c lines of
// context.  The int is the index of the d[l] within the context.  A result that
// returns with an error may still have d[l] with partial context.
TCPContextDump provides debugging information for d[l] with up to c lines of
context.  The int is the index of the d[l] within the context.  A result that
returns with an error may still have d[l] with partial context.
// TCPContextDump provides debugging information for d [ l ] with up to c lines of // context . The int is the index of the d [ l ] within the context . A result that // returns with an error may still have d [ l ] with partial context .
func TCPContextDump(d []*pkt.Packet, l, c int) ([]string, int, error) {
	i := 2*l - c
	s := l - c
	if s < 0 {
		s = 0
	}
	e := l + c
	if i > len(d) {
		e = len(d)
	}
	r, err := TCPDataDump(d[s:e])
	return r, i, err
}
func TCPContextDump ( d [ ] * pkt . Packet , l , c int ) ( [ ] string , int , error ) { i := 2 * l - c s := l - c if s < 0 { s = 0 } e := l + c if i > len ( d ) { e = len ( d ) } r , err := TCPDataDump ( d [ s : e ] ) return r , i , err }
TCPContextDump provides debugging information for d[l] with up to c lines of
context.
TCPContextDump provides debugging information for d [ l ] with up to c lines of context .