Changes in uspace/lib/net/il/ip_client.c [ccca251:46d4d9f] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/il/ip_client.c
rccca251 r46d4d9f 124 124 125 125 // TODO IPv6 126 #if 0 127 case AF_INET6: 126 /* case AF_INET6: 128 127 if (addrlen != sizeof(struct sockaddr_in6)) 129 128 return EINVAL; … … 131 130 address_in6 = (struct sockaddr_in6 *) addr; 132 131 return EOK; 133 #endif 132 */ 134 133 135 134 default: … … 160 159 size_t padding; 161 160 162 /* 163 * Compute the padding if IP options are set 164 * multiple of 4 bytes 165 */ 161 // compute the padding if IP options are set 162 // multiple of 4 bytes 166 163 padding = ipopt_length % 4; 167 164 if (padding) { … … 170 167 } 171 168 172 / * Prefix the header */169 // prefix the header 173 170 data = (uint8_t *) packet_prefix(packet, sizeof(ip_header_t) + padding); 174 171 if (!data) 175 172 return ENOMEM; 176 173 177 / * Add the padding */174 // add the padding 178 175 while (padding--) 179 176 data[sizeof(ip_header_t) + padding] = IPOPT_NOOP; 180 177 181 / * Set the header */178 // set the header 182 179 header = (ip_header_t *) data; 183 180 header->header_length = IP_COMPUTE_HEADER_LENGTH(sizeof(ip_header_t) +
Note:
See TracChangeset
for help on using the changeset viewer.