Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 02 Sep 2014 05:15:21 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 193245] New: net/bird need patching since raw_socket change
Message-ID:  <bug-193245-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193245

            Bug ID: 193245
           Summary: net/bird need patching since raw_socket change
           Product: Ports Tree
           Version: Latest
          Hardware: Any
                OS: Any
            Status: Needs Triage
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: olivier@cochard.me

Following the commit r270929 in -current (detail here:
https://wiki.freebsd.org/SOCK_RAW), net/bird needs to be adapted.
Using OSPF with bird on this new -current didn't work and log message show
this:

Sep  2 07:08:58 R4 bird: R4: Socket error on vtnet2: Invalid argument

In file sysdep/bsd/sysio.h, there is this code:

#ifdef __OpenBSD__
  /* OpenBSD expects ip_len in network order, other BSDs expect host order */
  ip->ip_len = htons(ip->ip_len);
#endif

I've tried to replace by:
#if defined(__OpenBSD__) || (__FreeBSD_version >= 1100030)
  /* OpenBSD and FreeBSD (since 11) expects ip_len in network order, other BSDs
expect host order */
   ip->ip_len = htons(ip->ip_len);
#endif

But it's not enough for fixing the issue: I need help for a working patch.

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-193245-13>