Changeset 549488b in rtems-libbsd


Ignore:
Timestamp:
Oct 10, 2013, 12:45:09 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, c1e05b9ea378b2971e3d7704779112b4bc4296da, freebsd-9.3, e6acc15bc94ea35f40e50b42692584c456ba9722
Children:
cc5f4b2
Parents:
3842b81
git-author:
Sebastian Huber <sebastian.huber@…> (10/10/13 12:45:09)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/31/13 12:18:46)
Message:

Disable alternative routing tables

Files:
10 edited

Legend:

Unmodified
Added
Removed
  • freebsd/sys/kern/uipc_socket.c

    r3842b81 r549488b  
    373373        if ((prp->pr_domain->dom_family == PF_INET) ||
    374374            (prp->pr_domain->dom_family == PF_ROUTE))
     375#ifndef __rtems__
    375376                so->so_fibnum = td->td_proc->p_fibnum;
     377#else /* __rtems__ */
     378                so->so_fibnum = BSD_DEFAULT_FIB;
     379#endif /* __rtems__ */
    376380        else
    377381                so->so_fibnum = 0;
  • freebsd/sys/net/if_gif.c

    r3842b81 r549488b  
    163163
    164164        sc = malloc(sizeof(struct gif_softc), M_GIF, M_WAITOK | M_ZERO);
     165#ifndef __rtems__
    165166        sc->gif_fibnum = curthread->td_proc->p_fibnum;
     167#else /* __rtems__ */
     168        sc->gif_fibnum = BSD_DEFAULT_FIB;
     169#endif /* __rtems__ */
    166170        GIF2IFP(sc) = if_alloc(IFT_GIF);
    167171        if (GIF2IFP(sc) == NULL) {
  • freebsd/sys/net/if_gre.c

    r3842b81 r549488b  
    206206        sc->encap = NULL;
    207207        sc->called = 0;
     208#ifndef __rtems__
    208209        sc->gre_fibnum = curthread->td_proc->p_fibnum;
     210#else /* __rtems__ */
     211        sc->gre_fibnum = BSD_DEFAULT_FIB;
     212#endif /* __rtems__ */
    209213        sc->wccp_ver = WCCP_V1;
    210214        sc->key = 0;
  • freebsd/sys/net/if_stf.c

    r3842b81 r549488b  
    232232        }
    233233        ifp->if_softc = sc;
     234#ifndef __rtems__
    234235        sc->sc_fibnum = curthread->td_proc->p_fibnum;
     236#else /* __rtems__ */
     237        sc->sc_fibnum = BSD_DEFAULT_FIB;
     238#endif /* __rtems__ */
    235239
    236240        /*
  • freebsd/sys/net/route.c

    r3842b81 r549488b  
    125125#endif
    126126
     127#ifndef __rtems__
    127128/*
    128129 * handler for net.my_fibnum
     
    141142SYSCTL_PROC(_net, OID_AUTO, my_fibnum, CTLTYPE_INT|CTLFLAG_RD,
    142143            NULL, 0, &sysctl_my_fibnum, "I", "default FIB of caller");
     144#endif /* __rtems__ */
    143145
    144146static __inline struct radix_node_head **
     
    13981400        if (fibnum == -1) {
    13991401                if (rt_add_addr_allfibs == 0 && cmd == (int)RTM_ADD) {
     1402#ifndef __rtems__
    14001403                        startfib = endfib = curthread->td_proc->p_fibnum;
     1404#else /* __rtems__ */
     1405                        startfib = endfib = BSD_DEFAULT_FIB;
     1406#endif /* __rtems__ */
    14011407                } else {
    14021408                        startfib = 0;
  • freebsd/sys/net/rtsock.c

    r3842b81 r549488b  
    262262        s = splnet();
    263263        so->so_pcb = (caddr_t)rp;
     264#ifndef __rtems__
    264265        so->so_fibnum = td->td_proc->p_fibnum;
     266#else /* __rtems__ */
     267        so->so_fibnum = BSD_DEFAULT_FIB;
     268#endif /* __rtems__ */
    265269        error = raw_attach(so, proto);
    266270        rp = sotorawcb(so);
     
    16491653                 */
    16501654                for (error = 0; error == 0 && i <= lim; i++) {
     1655#ifndef __rtems__
    16511656                        rnh = rt_tables_get_rnh(req->td->td_proc->p_fibnum, i);
     1657#else /* __rtems__ */
     1658                        rnh = rt_tables_get_rnh(BSD_DEFAULT_FIB, i);
     1659#endif /* __rtems__ */
    16521660                        if (rnh != NULL) {
    16531661                                RADIX_NODE_HEAD_LOCK(rnh);
  • freebsd/sys/sys/proc.h

    r3842b81 r549488b  
    578578  struct ucred  *p_ucred; /* (c) Process owner's identity. */
    579579  rtems_id p_pid;
    580   int p_fibnum; /* in this routing domain XXX MRT */
    581580#endif /* __rtems__ */
    582581};
  • libbsd.txt

    r3842b81 r549488b  
    5050
    5151* Per-CPU NETISR(9) should be enabled onece the new stack is ready for SMP.
     52
     53* Multiple routing tables are not supported.  Every FIB value is set to zero
     54  (= BSD_DEFAULT_FIB).
    5255
    5356* Sebastian Huber and Joel Sherrill discussed the need for a a basic USB
  • rtemsbsd/include/machine/rtems-bsd-config.h.in

    r3842b81 r549488b  
    137137#define BSD_MAXIMUM_SLEEP_QUEUES 32
    138138
     139#define BSD_DEFAULT_FIB 0
     140
    139141extern rtems_chain_control rtems_bsd_lock_chain;
    140142
  • rtemsbsd/rtems/rtems-bsd-thread.c

    r3842b81 r549488b  
    218218        FIXME_proc.p_ucred = crhold(&FIXME_ucred);
    219219        FIXME_proc.p_pid = getpid();
    220         FIXME_proc.p_fibnum = 0;
    221220}
    222221
Note: See TracChangeset for help on using the changeset viewer.