Subversion Repositories HelenOS

Rev

Rev 4743 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4743 Rev 4753
Line 101... Line 101...
101
}
101
}
102
 
102
 
103
int ip_client_set_pseudo_header_data_length( ip_pseudo_header_ref header, size_t headerlen, size_t data_length ){
103
int ip_client_set_pseudo_header_data_length( ip_pseudo_header_ref header, size_t headerlen, size_t data_length ){
104
    ipv4_pseudo_header_ref  header_in;
104
    ipv4_pseudo_header_ref  header_in;
105
 
105
 
-
 
106
    if( ! header ) return EBADMEM;
106
    if( headerlen == sizeof( ipv4_pseudo_header_t )){
107
    if( headerlen == sizeof( ipv4_pseudo_header_t )){
107
        header_in = ( ipv4_pseudo_header_ref ) header;
108
        header_in = ( ipv4_pseudo_header_ref ) header;
108
        header_in->data_length = htons( data_length );
109
        header_in->data_length = htons( data_length );
109
        return EOK;
110
        return EOK;
110
    }else{
111
    }else{