This is the mail archive of the glibc-bugs@sourceware.org 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]
Other format: [Raw text]

[Bug libc/10195] New: nd_opt_home_agent_info.nd_opt_home_agent_info_preference declared as an int16_t instead of uint16_t


netinet/icmpv6.h implements the structure associated with MIPv6 Home Agent
Information Option (struct nd_opt_home_agent_info). It was added by commit 959eb65d.

The option is defined in section 7.4 of RFC 3775. It contains a "Home Agent
Preference" field defined as a "16-bit unsigned integer".

The associated field (nd_opt_home_agent_info_preference) in
nd_opt_homeagent_info is defined as an int16_t.

It should be a uint16_t.

Cheers,

a+

ps: I checked the sources of RADVD (Linux Router Advertisement daemon). It
redefines a structure for the option. The field is an unsigned. Same thing in
UMIP (Linux Mobile IPv6 daemon).

-- 
           Summary: nd_opt_home_agent_info.nd_opt_home_agent_info_preference
                    declared as an int16_t instead of uint16_t
           Product: glibc
           Version: 2.10
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: arno at natisbad dot org
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=10195

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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