|
131 |
// so we call it "control." |
131 |
// so we call it "control." |
132 |
// |
132 |
// |
133 |
size_t msg_size = sizeof(int); |
133 |
size_t msg_size = sizeof(int); |
134 |
char control[CMSG_SPACE(msg_size)]; |
134 |
char* control = new char[CMSG_SPACE (msg_size)]; |
135 |
|
135 |
|
136 |
// |
136 |
// |
137 |
// There is a msghdr that is used to minimize the number of parameters |
137 |
// There is a msghdr that is used to minimize the number of parameters |
|
186 |
// Actually send the file descriptor back to the emulated net device. |
186 |
// Actually send the file descriptor back to the emulated net device. |
187 |
// |
187 |
// |
188 |
ssize_t len = sendmsg(sock, &msg, 0); |
188 |
ssize_t len = sendmsg(sock, &msg, 0); |
|
|
189 |
delete[] control; |
189 |
ABORT_IF (len == -1, "Could not send socket back to emu net device", 1); |
190 |
ABORT_IF (len == -1, "Could not send socket back to emu net device", 1); |
190 |
|
191 |
|
191 |
LOG ("sendmsg complete"); |
192 |
LOG ("sendmsg complete"); |