| 105 | } |
| 106 | |
| 107 | static void |
| 108 | setifgreport(const char *val, int dummy __unused, int s, |
| 109 | const struct afswtch *afp) |
| 110 | { |
| 111 | uint32_t udpport = strtol(val, NULL, 0); |
| 112 | |
| 113 | strlcpy(ifr.ifr_name, name, sizeof (ifr.ifr_name)); |
| 114 | ifr.ifr_data = (caddr_t)&udpport; |
| 115 | #ifndef FSTACK |
| 116 | if (ioctl(s, GRESPORT, (caddr_t)&ifr) < 0) |
| 117 | #else |
| 118 | size_t offset = (char *)&(ifr.ifr_data) - (char *)&(ifr); |
| 119 | size_t clen = sizeof(uint32_t); |
| 120 | if (ioctl_va(s, GRESPORT, (caddr_t)&ifr, 3, offset, ifr.ifr_data, clen) < 0) |
| 121 | #endif |
| 122 | warn("ioctl (set udpport)"); |
| 123 | } |
| 124 | |
| 125 | static void |
| 126 | setifgreopts(const char *val, int d, int s, const struct afswtch *afp) |