Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
c7311726
Commit
c7311726
authored
Sep 08, 2016
by
Marcin Siodelski
Browse files
[5003] Updated commentary about use of pseudo headers on OSX.
parent
a8a09d30
Changes
1
Show whitespace changes
Inline
Side-by-side
src/lib/dhcp/pkt_filter_bpf.cc
View file @
c7311726
...
@@ -490,7 +490,9 @@ PktFilterBPF::receive(Iface& iface, const SocketInfo& socket_info) {
...
@@ -490,7 +490,9 @@ PktFilterBPF::receive(Iface& iface, const SocketInfo& socket_info) {
// On local loopback interface the ethernet header is not present.
// On local loopback interface the ethernet header is not present.
// Instead, there is a 4-byte long pseudo header containing the
// Instead, there is a 4-byte long pseudo header containing the
// address family in the host byte order.
// address family in the host byte order. Note that this header
// is present in the received messages on OSX, but should not be
// included in the sent messages on OSX.
if
(
iface
.
flag_loopback_
)
{
if
(
iface
.
flag_loopback_
)
{
if
(
buf
.
getLength
()
<
BPF_LOCAL_LOOPBACK_HEADER_LEN
)
{
if
(
buf
.
getLength
()
<
BPF_LOCAL_LOOPBACK_HEADER_LEN
)
{
isc_throw
(
SocketReadError
,
"packet received on local loopback"
isc_throw
(
SocketReadError
,
"packet received on local loopback"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment