From 2d0d1fd043efd3457bc8bce04c884579d140b2b5 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Wed, 23 Aug 2017 16:05:23 +0200 Subject: eth-multiplexer: Generalize function and improve error handling. * eth-multiplexer/ethernet.c (set_promisc): Rename to 'eth_set_clear_flags' and generalize. (ethernet_open): Adapt call site. (ethernet_close): Likewise. * eth-multiplexer/ethernet.h (eth_set_clear_flags): New declaration. --- eth-multiplexer/ethernet.h | 1 + 1 file changed, 1 insertion(+) (limited to 'eth-multiplexer/ethernet.h') diff --git a/eth-multiplexer/ethernet.h b/eth-multiplexer/ethernet.h index a2b2f5ee..e8b766f6 100644 --- a/eth-multiplexer/ethernet.h +++ b/eth-multiplexer/ethernet.h @@ -36,6 +36,7 @@ int ethernet_open (char *dev_name, device_t master_device, int ethernet_close (char *dev_name); int ethernet_demuxer (mach_msg_header_t *inp, mach_msg_header_t *outp); +error_t eth_set_clear_flags (int set_flags, int clear_flags); #endif -- cgit v1.2.3