manpagez: man(ual) pages & more
man pcap_set_datalink(3)
Home | html | info | man
pcap_set_datalink(3)                              pcap_set_datalink(3)




NAME

       pcap_set_datalink - set the link-layer header type to be used by a cap-
       ture device


SYNOPSIS

       #include <pcap/pcap.h>

       pcap_set_datalink(3) *p, int dlt);


DESCRIPTION

       pcap_set_datalink(3) is used to set the current link-layer  header  type
       of the pcap descriptor to the type specified by dlt.


RETURN VALUE

       pcap_set_datalink(3)  returns  0 on success and -1 on failure.  If -1 is
       returned, pcap_geterr() or pcap_perror() may be called  with  p  as  an
       argument to fetch or display the error text.


SEE ALSO

       pcap(3), pcap_geterr(3), pcap_datalink_name_to_val(3)



                                22 August 2010        pcap_set_datalink(3)

libpcap 1.2.0 - Generated Mon Nov 28 05:37:42 CST 2011
© manpagez.com 2000-2017
Individual documents may contain additional copyright information.