Rev 4261 | Rev 4559 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4261 | Rev 4350 | ||
---|---|---|---|
Line 29... | Line 29... | ||
29 | /** @addtogroup net |
29 | /** @addtogroup net |
30 | * @{ |
30 | * @{ |
31 | */ |
31 | */ |
32 | 32 | ||
33 | /** @file |
33 | /** @file |
34 | * |
- | |
- | 34 | * Internet protocol address conversion functions implementation. |
|
35 | */ |
35 | */ |
36 | 36 | ||
37 | #include <errno.h> |
37 | #include <errno.h> |
38 | #include <mem.h> |
38 | #include <mem.h> |
39 | #include <stdio.h> |
39 | #include <stdio.h> |
Line 79... | Line 79... | ||
79 | next = last; |
79 | next = last; |
80 | shift = bytes - 1; |
80 | shift = bytes - 1; |
81 | do{ |
81 | do{ |
82 | // like little endian |
82 | // like little endian |
83 | data[ index + shift ] = value; |
83 | data[ index + shift ] = value; |
84 | // data[ index ] = value; |
- | |
85 | value >>= 8; |
84 | value >>= 8; |
86 | // ++ index; |
- | |
87 | }while( shift -- ); |
85 | }while( shift -- ); |
88 | index += bytes; |
86 | index += bytes; |
89 | }else{ |
87 | }else{ |
90 | bzero( data + index, count - index ); |
88 | bzero( data + index, count - index ); |
91 | return EOK; |
89 | return EOK; |