Changeset 46d4d9f in mainline for uspace/srv/net/nil


Ignore:
Timestamp:
2010-11-20T17:04:59Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
dd5046dd
Parents:
fdbc3ff
Message:

Redefine packet_t to be just a type alias for struct packet.

Location:
uspace/srv/net/nil
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/nil/eth/eth.c

    rfdbc3ff r46d4d9f  
    234234static void eth_receiver(ipc_callid_t iid, ipc_call_t *icall)
    235235{
    236         packet_t packet;
     236        packet_t *packet;
    237237        int rc;
    238238
     
    429429 * @return              NULL if the packet address length is not big enough.
    430430 */
    431 static eth_proto_t *eth_process_packet(int flags, packet_t packet)
     431static eth_proto_t *eth_process_packet(int flags, packet_t *packet)
    432432{
    433433        eth_header_snap_t *header;
     
    509509
    510510int nil_received_msg_local(int nil_phone, device_id_t device_id,
    511     packet_t packet, services_t target)
     511    packet_t *packet, services_t target)
    512512{
    513513        eth_proto_t *proto;
    514         packet_t next;
     514        packet_t *next;
    515515        eth_device_t *device;
    516516        int flags;
     
    680680 */
    681681static int
    682 eth_prepare_packet(int flags, packet_t packet, uint8_t *src_addr, int ethertype,
     682eth_prepare_packet(int flags, packet_t *packet, uint8_t *src_addr, int ethertype,
    683683    size_t mtu)
    684684{
     
    787787 * @return              EINVAL if the service parameter is not known.
    788788 */
    789 static int eth_send_message(device_id_t device_id, packet_t packet,
     789static int eth_send_message(device_id_t device_id, packet_t *packet,
    790790    services_t sender)
    791791{
    792792        eth_device_t *device;
    793         packet_t next;
    794         packet_t tmp;
     793        packet_t *next;
     794        packet_t *tmp;
    795795        int ethertype;
    796796        int rc;
     
    841841{
    842842        measured_string_t *address;
    843         packet_t packet;
     843        packet_t *packet;
    844844        size_t addrlen;
    845845        size_t prefix;
  • uspace/srv/net/nil/nildummy/nildummy.c

    rfdbc3ff r46d4d9f  
    106106static void nildummy_receiver(ipc_callid_t iid, ipc_call_t *icall)
    107107{
    108         packet_t packet;
     108        packet_t *packet;
    109109        int rc;
    110110
     
    304304
    305305int nil_received_msg_local(int nil_phone, device_id_t device_id,
    306     packet_t packet, services_t target)
    307 {
    308         packet_t next;
     306    packet_t *packet, services_t target)
     307{
     308        packet_t *next;
    309309
    310310        fibril_rwlock_read_lock(&nildummy_globals.protos_lock);
     
    354354 * @return              EINVAL if the service parameter is not known.
    355355 */
    356 static int nildummy_send_message(device_id_t device_id, packet_t packet,
     356static int nildummy_send_message(device_id_t device_id, packet_t *packet,
    357357    services_t sender)
    358358{
     
    378378{
    379379        measured_string_t *address;
    380         packet_t packet;
     380        packet_t *packet;
    381381        size_t addrlen;
    382382        size_t prefix;
Note: See TracChangeset for help on using the changeset viewer.