Changeset 761f597 in rtems-libbsd


Ignore:
Timestamp:
Apr 2, 2012, 1:57:05 PM (8 years ago)
Author:
Jennifer Averett <jennifer.averett@…>
Branches:
4.11, c1e05b9ea378b2971e3d7704779112b4bc4296da, freebsd-9.3, 4a77611a223ea883fb548679b516d326a020d447
Children:
ce0b530
Parents:
e3f2b51
Message:

Added two prison methods to resolve linker errors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemsbsd/src/rtems-bsd-jail.c

    re3f2b51 r761f597  
    236236  return 0;
    237237}
     238
     239/*
     240 * Return 1 if we should do proper source address selection or are not jailed.
     241 * We will return 0 if we should bypass source address selection in favour
     242 * of the primary jail IPv4 address. Only in this case *ia will be updated and
     243 * returned in NBO.
     244 * Return EAFNOSUPPORT, in case this jail does not allow IPv4.
     245 */
     246int
     247prison_saddrsel_ip4(struct ucred *cred, struct in_addr *ia)
     248{
     249}
     250
     251/*
     252 * Pass back primary IPv4 address of this jail.
     253 *
     254 * If not restricted return success but do not alter the address.  Caller has
     255 * to make sure to initialize it correctly (e.g. INADDR_ANY).
     256 *
     257 * Returns 0 on success, EAFNOSUPPORT if the jail doesn't allow IPv4.
     258 * Address returned in NBO.
     259 */
     260int
     261prison_get_ip4(struct ucred *cred, struct in_addr *ia)
     262{
     263  return 0;
     264}
Note: See TracChangeset for help on using the changeset viewer.