Changeset ebb1489 in mainline for uspace/srv/net/inetsrv/inetsrv.h


Ignore:
Timestamp:
2024-10-13T08:23:40Z (8 weeks ago)
Author:
GitHub <noreply@…>
Children:
0472cf17
Parents:
2a0c827c (diff), b3b79981 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
boba-buba <120932204+boba-buba@…> (2024-10-13 08:23:40)
git-committer:
GitHub <noreply@…> (2024-10-13 08:23:40)
Message:

Merge branch 'HelenOS:master' into topic/packet-capture

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/inetsrv/inetsrv.h

    r2a0c827c rebb1489  
    11/*
    2  * Copyright (c) 2021 Jiri Svoboda
     2 * Copyright (c) 2024 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    4444#include <inet/iplink.h>
    4545#include <ipc/loc.h>
     46#include <sif.h>
    4647#include <stddef.h>
    4748#include <stdint.h>
     
    114115} inet_link_t;
    115116
     117/** Link information needed for autoconfiguration */
    116118typedef struct {
     119        service_id_t svc_id;
     120        char *svc_name;
     121} inet_link_cfg_info_t;
     122
     123/** Address object */
     124typedef struct {
     125        /** Link to list of addresses */
    117126        link_t addr_list;
     127        /** Address object ID */
    118128        sysarg_t id;
     129        /** Network address */
    119130        inet_naddr_t naddr;
     131        /** Underlying IP link */
    120132        inet_link_t *ilink;
     133        /** Address name */
    121134        char *name;
     135        /** Temporary object */
     136        bool temp;
    122137} inet_addrobj_t;
    123138
     
    125140typedef struct {
    126141        link_t sroute_list;
     142        /** ID */
    127143        sysarg_t id;
    128144        /** Destination network */
     
    130146        /** Router via which to route packets */
    131147        inet_addr_t router;
     148        /** Route name */
    132149        char *name;
     150        /** Temporary route */
     151        bool temp;
    133152} inet_sroute_t;
    134153
     
    152171} inet_dir_t;
    153172
     173/** Internet server configuration */
     174typedef struct {
     175        /** Configuration file path */
     176        char *cfg_path;
     177} inet_cfg_t;
     178
     179extern inet_cfg_t *cfg;
     180
    154181extern errno_t inet_ev_recv(inet_client_t *, inet_dgram_t *);
    155182extern errno_t inet_recv_packet(inet_packet_t *);
Note: See TracChangeset for help on using the changeset viewer.