function set packet capture promisc mode in linux? - Networking

This is a discussion on function set packet capture promisc mode in linux? - Networking ; are there one function can set packet capture to promisc mode in linux library?? how can i get current vaild NIC in c programming with linux?...

+ Reply to Thread
Results 1 to 2 of 2

Thread: function set packet capture promisc mode in linux?

  1. function set packet capture promisc mode in linux?

    are there one function can set packet capture to promisc mode in linux
    library??
    how can i get current vaild NIC in c programming with linux?

  2. Re: function set packet capture promisc mode in linux?

    Xend wrote:
    > are there one function can set packet capture to promisc mode in linux
    > library??


    man 7 packet tells you most of the story.

    > how can i get current vaild NIC in c programming with linux?


    If you want to get, e.g. "eth0", then parse the output of "ifconfig -s"

    Robert

+ Reply to Thread