diff options
| author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2009-07-21 21:58:55 +0000 |
|---|---|---|
| committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2009-07-21 21:58:55 +0000 |
| commit | a08362ce46087f91e82c8dbadb33591c33e6c1e4 (patch) | |
| tree | 9c7c5b17e1d92a3118a038d42dac35b24c53b549 /sys/net/vnet.h | |
| parent | e50821abe7419975c08a3398852e4d42366dd950 (diff) | |
Notes
Diffstat (limited to 'sys/net/vnet.h')
| -rw-r--r-- | sys/net/vnet.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/net/vnet.h b/sys/net/vnet.h index 23f0a331d5f1..aec448a11334 100644 --- a/sys/net/vnet.h +++ b/sys/net/vnet.h @@ -101,6 +101,11 @@ int vnet_sysctl_handle_uint(SYSCTL_HANDLER_ARGS); #define SYSCTL_VNET_UINT(parent, nbr, name, access, ptr, val, descr) \ SYSCTL_OID(parent, nbr, name, CTLTYPE_UINT|CTLFLAG_MPSAFE|(access), \ ptr, val, vnet_sysctl_handle_uint, "IU", descr) +#define VNET_SYSCTL_ARG(req, arg1) do { \ + if (arg1 != NULL) \ + arg1 = (void *)(TD_TO_VNET((req)->td)->vnet_data_base + \ + (uintptr_t)(arg1)); \ +} while (0) #endif /* SYSCTL_OID */ /* @@ -141,6 +146,7 @@ void vnet_data_destroy(struct vnet *vnet); SYSCTL_STRUCT(parent, nbr, name, access, ptr, type, descr) #define SYSCTL_VNET_UINT(parent, nbr, name, access, ptr, val, descr) \ SYSCTL_UINT(parent, nbr, name, access, ptr, val, descr) +#define VNET_SYSCTL_ARG(req, arg1) #endif /* SYSCTL_OID */ /* |
