Changeset 7bf12387 in mainline for uspace/lib/net/il/ip_client.c
- Timestamp:
- 2011-05-28T19:44:42Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0743493a
- Parents:
- 40ffda8
- git-author:
- Jeff Rous <jeffrous@…> (2011-05-28 19:44:42)
- git-committer:
- Jakub Jermar <jakub@…> (2011-05-28 19:44:42)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/net/il/ip_client.c
r40ffda8 r7bf12387 181 181 /* Set the header */ 182 182 header = (ip_header_t *) data; 183 SET_ HEADER_LENGTH(header, (IP_COMPUTE_HEADER_LENGTH(sizeof(ip_header_t)184 183 SET_IP_HEADER_LENGTH(header, 184 (IP_COMPUTE_HEADER_LENGTH(sizeof(ip_header_t) + ipopt_length))); 185 185 header->ttl = (ttl ? ttl : IPDEFTTL); 186 186 header->tos = tos; … … 188 188 189 189 if (dont_fragment) 190 SET_ HEADER_FLAGS(header, IPFLAG_DONT_FRAGMENT);190 SET_IP_HEADER_FLAGS(header, IPFLAG_DONT_FRAGMENT); 191 191 192 192 return EOK; … … 227 227 *tos = header->tos; 228 228 if (dont_fragment) 229 *dont_fragment = GET_ HEADER_FLAGS(header) & IPFLAG_DONT_FRAGMENT;229 *dont_fragment = GET_IP_HEADER_FLAGS(header) & IPFLAG_DONT_FRAGMENT; 230 230 if (ipopt_length) { 231 231 *ipopt_length = IP_HEADER_LENGTH(header) - sizeof(ip_header_t);
Note:
See TracChangeset
for help on using the changeset viewer.