Hi, thanks for the input. If I had realised that errno was settable by any
syscall I would have realised what ury han been reffering to, it seems I just
kind of assumed if it's not in the man
page for vprintf, then it's not being set by vprintf. I've been tould too many
times not to assume thoug
ext, args);
> va_end(args);
> fflush(stdout);
>
> if (save_errno && onoff) {
> errno= save_errno ; // Extremly ugly
> perror("");
> }
> exit(1);
> }
>
> --- K sPecial <[EMAIL PROTECTED]> wrot
it may seem odd that I used !(function), I come to C as a perl coder and to me
this is the logical way to do it, if (!(open_door)) { die "door locked?" }
would seem to me (in a linguistical aspect) correct, basicly "if not open door,
tell is locked and exit", whereas != NULL is just plain techni
tarted :-)
>
> good luck,
>
> -alexm
> 23:16 18/06/2005
>
> On Sun, 19 Jun 2005, K sPecial wrote:
>
> > Hello, i'm attempting my first pcap capture, but pcap_loop
> > segfaults, and i'm not quite sure why:
> >
> > -- begin ./sniff outpu
Hello, i'm attempting my first pcap capture, but pcap_loop segfaults, and i'm
not quite sure why:
-- begin ./sniff output --
xzziroz:/home/kspecial# ./sniff
-> successfuly listening on iterface 'eth0'
Segmentation fault
xzziroz:/home/kspecial# gdb sniff
GNU gdb 6.3-debian
Copyright 2004 Free Sof