aboutsummaryrefslogtreecommitdiff
path: root/eth-multiplexer/ethernet.h
diff options
context:
space:
mode:
authorJustus Winter <justus@gnupg.org>2017-08-23 16:05:23 +0200
committerJustus Winter <justus@gnupg.org>2017-08-23 16:08:10 +0200
commit2d0d1fd043efd3457bc8bce04c884579d140b2b5 (patch)
treeef8ec96c81617df709a734a780459702e848ce22 /eth-multiplexer/ethernet.h
parent55efa897ebaa7ec880cd2b219362cb85f970cf33 (diff)
downloadhurd-2d0d1fd043efd3457bc8bce04c884579d140b2b5.tar.gz
hurd-2d0d1fd043efd3457bc8bce04c884579d140b2b5.tar.bz2
hurd-2d0d1fd043efd3457bc8bce04c884579d140b2b5.zip
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.
Diffstat (limited to 'eth-multiplexer/ethernet.h')
-rw-r--r--eth-multiplexer/ethernet.h1
1 files changed, 1 insertions, 0 deletions
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