Changeset 1433ecda in mainline for uspace/srv/net


Ignore:
Timestamp:
2018-04-04T15:42:37Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2c4e1cc
Parents:
47b2d7e3
Message:

Fix cstyle: make ccheck-fix and commit only files where all the changes are good.

Location:
uspace/srv/net
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/inetsrv/inet_link.c

    r47b2d7e3 r1433ecda  
    6868
    6969static addr128_t link_local_node_ip =
    70     {0xfe, 0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xff, 0xfe, 0, 0, 0};
     70    { 0xfe, 0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0xff, 0xfe, 0, 0, 0 };
    7171
    7272static void inet_link_local_node_ip(addr48_t mac_addr,
  • uspace/srv/net/inetsrv/inetsrv.c

    r47b2d7e3 r1433ecda  
    6565static inet_naddr_t solicited_node_mask = {
    6666        .version = ip_v6,
    67         .addr6 = {0xff, 0x02, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x01, 0xff, 0, 0, 0},
     67        .addr6 = { 0xff, 0x02, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x01, 0xff, 0, 0, 0 },
    6868        .prefix = 104
    6969};
     
    7676static inet_addr_t multicast_all_nodes = {
    7777        .version = ip_v6,
    78         .addr6 = {0xff, 0x02, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x01}
     78        .addr6 = { 0xff, 0x02, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x01 }
    7979};
    8080
     
    182182
    183183                if (dgram->src.version != ip_v4 ||
    184                         dgram->dest.version != ip_v4)
     184                    dgram->dest.version != ip_v4)
    185185                        return EINVAL;
    186186
  • uspace/srv/net/inetsrv/ndp.c

    r47b2d7e3 r1433ecda  
    4949
    5050static addr128_t solicited_node_ip =
    51     {0xff, 0x02, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x01, 0xff, 0, 0, 0};
     51    { 0xff, 0x02, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x01, 0xff, 0, 0, 0 };
    5252
    5353/** Compute solicited node IPv6 multicast address from target IPv6 address
  • uspace/srv/net/tcp/iqueue.c

    r47b2d7e3 r1433ecda  
    110110        link = list_first(&iqueue->list);
    111111        while (link != NULL) {
    112                         log_msg(LOG_DEFAULT, LVL_NOTE, "tcp_iqueue_remove_seg() - next");
     112                log_msg(LOG_DEFAULT, LVL_NOTE, "tcp_iqueue_remove_seg() - next");
    113113                qe = list_get_instance(link,
    114114                    tcp_iqueue_entry_t, link);
     
    162162                tcp_segment_delete(iqe->seg);
    163163
    164                 link = list_first(&iqueue->list);
     164                link = list_first(&iqueue->list);
    165165                if (link == NULL) {
    166166                        log_msg(LOG_DEFAULT, LVL_DEBUG, "iqueue is empty");
  • uspace/srv/net/tcp/service.c

    r47b2d7e3 r1433ecda  
    116116
    117117        /* XXX Failed to establish connection */
    118         if (0) tcp_ev_conn_failed(cconn);
     118        if (0)
     119                tcp_ev_conn_failed(cconn);
    119120}
    120121
  • uspace/srv/net/tcp/tcp.c

    r47b2d7e3 r1433ecda  
    7474        tcp_ncsim_fibril_start();
    7575
    76         if (0) tcp_test();
     76        if (0)
     77                tcp_test();
    7778
    7879        rc = tcp_inet_init();
  • uspace/srv/net/tcp/test.c

    r47b2d7e3 r1433ecda  
    7979                printf("S: User received %zu bytes '%s'.\n", rcvd, rcv_buf);
    8080
    81                 async_usleep(1000*1000*2);
     81                async_usleep(1000 * 1000 * 2);
    8282        }
    8383
    84         async_usleep(/*10**/1000*1000);
     84        async_usleep(/*10**/1000 * 1000);
    8585
    8686        printf("S: User close...\n");
     
    107107        epp.remote.port = 80;
    108108
    109         async_usleep(1000*1000*3);
     109        async_usleep(1000 * 1000 * 3);
    110110        printf("C: User open...\n");
    111111        tcp_uc_open(&epp, ap_active, 0, &conn);
    112112        conn->name = (char *) "C";
    113113
    114         async_usleep(1000*1000*10);
     114        async_usleep(1000 * 1000 * 10);
    115115        printf("C: User send...\n");
    116116        tcp_uc_send(conn, (void *)msg, str_size(msg), 0);
    117117
    118         async_usleep(1000*1000*20/**20*2*/);
     118        async_usleep(1000 * 1000 * 20/**20*2*/);
    119119        printf("C: User close...\n");
    120120        tcp_uc_close(conn);
     
    130130        printf("tcp_test()\n");
    131131
    132         async_usleep(1000*1000);
     132        async_usleep(1000 * 1000);
    133133
    134134        if (0) {
Note: See TracChangeset for help on using the changeset viewer.