Skip to content

Commit

Permalink
msghdr: decode SO_RXQ_OVFL control packet
Browse files Browse the repository at this point in the history
* xlat/scmvals.in (SO_RXQ_OVFL): New constant.
* msghdr.c (cmsg_socket_printers) <[SO_RXQ_OVFL]>: New socket option
decoder.
  • Loading branch information
esyr committed Sep 24, 2018
1 parent 1090f31 commit ef330a8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion msghdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,8 @@ static const struct {
[SCM_SECURITY] = { print_scm_security, 1 },
[SCM_TIMESTAMP] = { print_scm_timestamp, 1 },
[SCM_TIMESTAMPNS] = { print_scm_timestampns, 1 },
[SCM_TIMESTAMPING] = { print_scm_timestamping, 1 }
[SCM_TIMESTAMPING] = { print_scm_timestamping, 1 },
[SO_RXQ_OVFL] = { print_cmsg_uint, sizeof(unsigned int) },
}, cmsg_ip_printers[] = {
[IP_PKTINFO] = { print_cmsg_ip_pktinfo, sizeof(struct in_pktinfo) },
[IP_TTL] = { print_cmsg_uint, sizeof(unsigned int) },
Expand Down
8 changes: 8 additions & 0 deletions xlat/scmvals.in
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ SCM_TIMESTAMPING 0x0023
SCM_TIMESTAMPING 37
#endif

#if defined HPPA
SO_RXQ_OVFL 0x4021
#elif defined SPARC || defined SPARC64
SO_RXQ_OVFL 0x0024
#else
SO_RXQ_OVFL 40
#endif

#if defined HPPA
SCM_WIFI_STATUS 0x4022
#elif defined SPARC || defined SPARC64
Expand Down

0 comments on commit ef330a8

Please sign in to comment.