tcp.c (f4359ccbbcba2c5a0fbb89a2465e8abaf93a9600) tcp.c (057f1760a8171825b260dad27502f74ed5f69faf)
1/*-
2 * Copyright (c) 1999 Brian Somers <brian@Awfulhak.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 105 unchanged lines hidden (view full) ---

114 NULL,
115 NULL,
116 NULL,
117 NULL
118};
119
120struct device *
121tcp_iov2device(int type, struct physical *p, struct iovec *iov,
1/*-
2 * Copyright (c) 1999 Brian Somers <brian@Awfulhak.org>
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 105 unchanged lines hidden (view full) ---

114 NULL,
115 NULL,
116 NULL,
117 NULL
118};
119
120struct device *
121tcp_iov2device(int type, struct physical *p, struct iovec *iov,
122 int *niov, int maxiov, int *auxfd, int *nauxfd)
122 int *niov, int maxiov __unused, int *auxfd __unused,
123 int *nauxfd __unused)
123{
124 if (type == TCP_DEVICE) {
125 free(iov[(*niov)++].iov_base);
126 physical_SetupStack(p, tcpdevice.name, PHYSICAL_FORCE_ASYNC);
127 return &tcpdevice;
128 }
129
130 return NULL;

--- 81 unchanged lines hidden ---
124{
125 if (type == TCP_DEVICE) {
126 free(iov[(*niov)++].iov_base);
127 physical_SetupStack(p, tcpdevice.name, PHYSICAL_FORCE_ASYNC);
128 return &tcpdevice;
129 }
130
131 return NULL;

--- 81 unchanged lines hidden ---