summaryrefslogtreecommitdiff
path: root/msghdr.c
diff options
context:
space:
mode:
Diffstat (limited to 'msghdr.c')
-rw-r--r--msghdr.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/msghdr.c b/msghdr.c
index 2515a2bea..e05c321e1 100644
--- a/msghdr.c
+++ b/msghdr.c
@@ -17,6 +17,9 @@
#include <arpa/inet.h>
#include <netinet/in.h>
+#define XLAT_MACROS_ONLY
+#include "xlat/sock_options.h"
+#undef XLAT_MACROS_ONLY
#include "xlat/msg_flags.h"
#include "xlat/scmvals.h"
#include "xlat/ip_cmsg_types.h"
@@ -197,9 +200,9 @@ static const struct {
[SCM_RIGHTS] = { print_scm_rights, sizeof(int) },
[SCM_CREDENTIALS] = { print_scm_creds, sizeof(struct ucred) },
[SCM_SECURITY] = { print_scm_security, 1 },
- [SCM_TIMESTAMP] = { print_scm_timestamp, 1 },
- [SCM_TIMESTAMPNS] = { print_scm_timestampns, 1 },
- [SCM_TIMESTAMPING] = { print_scm_timestamping, 1 }
+ [SO_TIMESTAMP] = { print_scm_timestamp, 1 },
+ [SO_TIMESTAMPNS] = { print_scm_timestampns, 1 },
+ [SO_TIMESTAMPING] = { print_scm_timestamping, 1 }
}, cmsg_ip_printers[] = {
[IP_PKTINFO] = { print_cmsg_ip_pktinfo, sizeof(struct in_pktinfo) },
[IP_TTL] = { print_cmsg_uint, sizeof(unsigned int) },