<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        color:black;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:windowtext">Hi Alex,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">You can send it to <a href="mailto:dev@openvswitch.org">
dev@openvswitch.org</a> or create a new pull request via github. <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext">Alin.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:windowtext"><o:p>&nbsp;</o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="color:windowtext">From:</span></b><span style="color:windowtext"> ovs-discuss-bounces@openvswitch.org [mailto:ovs-discuss-bounces@openvswitch.org]
<b>On Behalf Of </b>Alex Jones<br>
<b>Sent:</b> Tuesday, July 4, 2017 4:00 AM<br>
<b>To:</b> ovs-discuss@openvswitch.org<br>
<b>Subject:</b> [ovs-discuss] OVN DHCP implementation ignores broadcast bit<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p>Hi All,<o:p></o:p></p>
<p>&nbsp; I have OVN up and running (version 2.7), and it is working well except for one case. We have a VM which uses its own IP stack and does not accept unicast DHCP offers. After examining the OVN code, I found that it currently doesn't support the broadcast
 bit if set by the client.<o:p></o:p></p>
<p>&nbsp; I didn't see any bugs regarding this, so I did a patch myself. The patch modifies put_dhcp_options to return 2 if the broadcast bit was set in the DISCOVER/REQUEST, and 1 if not set (both indicate success). Then I modified the current logical flow to check
 if the return code is 1, then execute the current logical flow. I added a new logical flow to handle the broadcast bit set case. If the return value from put_dhcp_options is 2, the new flow is executed which sets the dest MAC and dest IP to broadcast.<o:p></o:p></p>
<p>&nbsp; I'd like to submit this. Do I just post it here?<o:p></o:p></p>
<p>Alex<o:p></o:p></p>
<p><o:p>&nbsp;</o:p></p>
</div>
</div>
</body>
</html>