X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fsocket-util.h;h=670eeb343b049fe90e1ad64ee45b24c0f0e00854;hb=b0fb94a346e52f36aeef238dd5f9bef9a10c14ef;hp=96aad5d16069c292d67d716bd0edc9c9ab81f8b8;hpb=14235530fa72443c9cd33dd5b42b13c9c9caa09b;p=sliver-openvswitch.git diff --git a/lib/socket-util.h b/lib/socket-util.h index 96aad5d16..670eeb343 100644 --- a/lib/socket-util.h +++ b/lib/socket-util.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2009, 2010, 2011, 2012 Nicira, Inc. + * Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -97,4 +97,10 @@ int recv_data_and_fds(int sock, void *data, size_t size, int fds[SOUTIL_MAX_FDS], size_t *n_fdsp); +/* Helpers for calling ioctl() on an AF_INET socket. */ +struct ifreq; +int af_inet_ioctl(unsigned long int command, const void *arg); +int af_inet_ifreq_ioctl(const char *name, struct ifreq *, + unsigned long int cmd, const char *cmd_name); + #endif /* socket-util.h */