• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include <time.h>
2 #include <linux/errqueue.h>
3 
4 // SO_EE_OFFENDER is defined as a macro in linux/errqueue.h.  This file wraps
5 // that macro in a function so we can test the reimplementation in this package
6 // is equivalent.
7 
so_ee_offender(struct sock_extended_err * ee)8 struct sockaddr *so_ee_offender(struct sock_extended_err *ee) {
9   return SO_EE_OFFENDER(ee);
10 }
11