This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: IP_MAX_MEMBERSHIPS?


Craig Rodrigues <rodrigc@mediaone.net> writes:

> Hi,
> 
> I am looking at /usr/include/bits/in.h in glibc 2.2.2, lines 59-61:
> #define IP_DEFAULT_MULTICAST_TTL        1
> #define IP_DEFAULT_MULTICAST_LOOP       1
> #define IP_MAX_MEMBERSHIPS              20
> 
> How were these values chosen?  Are they based on some kernel
> parameter limitations?

gromit:/usr/src/linux:[0]$ grep -r IP_MAX_MEMBERSHIP .
./net/ipv4/igmp.c:#define IP_MAX_MEMBERSHIPS 20
./net/ipv4/igmp.c:int sysctl_igmp_max_memberships = IP_MAX_MEMBERSHIPS;
./net/TUNABLE:IP_MAX_MEMBERSHIPS        Largest number of groups per socket (BSD style) (tunable)

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]