X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fdhcp.c;h=e6d5735e80c251432d49d0de831a79dabb3b2a89;hb=3d92fe960c9ad10fab3978623e4f77045340c36b;hp=a8f024482b3a8a62eec3d3baf51a4a53730cf091;hpb=691556222cadce47c117134ac1584b75a294367e;p=openvswitch diff --git a/lib/dhcp.c b/lib/dhcp.c index a8f02448..e6d5735e 100644 --- a/lib/dhcp.c +++ b/lib/dhcp.c @@ -24,10 +24,10 @@ #include #include "dynamic-string.h" #include "ofpbuf.h" - -#define THIS_MODULE VLM_dhcp #include "vlog.h" +VLOG_DEFINE_THIS_MODULE(dhcp) + /* Information about a DHCP argument type. */ struct arg_type { const char *name; /* Name. */ @@ -497,7 +497,7 @@ dhcp_option_equals(const struct dhcp_option *a, const struct dhcp_option *b) { return ((a->data != NULL) == (b->data != NULL) && a->n == b->n - && !memcmp(a->data, b->data, a->n)); + && (!a->data || !memcmp(a->data, b->data, a->n))); } /* Replaces 'ds' by a string representation of 'msg'. If 'multiline' is