Changes in uspace/lib/net/il/ip_client.c [28a3e74:46d4d9f] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/il/ip_client.c
r28a3e74 r46d4d9f 123 123 return EOK; 124 124 125 / * TODO IPv6 */125 // TODO IPv6 126 126 /* case AF_INET6: 127 127 if (addrlen != sizeof(struct sockaddr_in6)) … … 159 159 size_t padding; 160 160 161 /* 162 * Compute the padding if IP options are set 163 * multiple of 4 bytes 164 */ 161 // compute the padding if IP options are set 162 // multiple of 4 bytes 165 163 padding = ipopt_length % 4; 166 164 if (padding) { … … 169 167 } 170 168 171 / * Prefix the header */169 // prefix the header 172 170 data = (uint8_t *) packet_prefix(packet, sizeof(ip_header_t) + padding); 173 171 if (!data) 174 172 return ENOMEM; 175 173 176 / * Add the padding */174 // add the padding 177 175 while (padding--) 178 176 data[sizeof(ip_header_t) + padding] = IPOPT_NOOP; 179 177 180 / * Set the header */178 // set the header 181 179 header = (ip_header_t *) data; 182 180 header->header_length = IP_COMPUTE_HEADER_LENGTH(sizeof(ip_header_t) + … … 258 256 header_in->data_length = htons(data_length); 259 257 return EOK; 260 / * TODO IPv6 */258 // TODO IPv6 261 259 } else { 262 260 return EINVAL;
Note:
See TracChangeset
for help on using the changeset viewer.